Jump to content
  • 0

[GF/RP] Cum fac sa detin 2 masini


Question

Posted

Deci pot sa detin doar 1 masina pe server

Si io am

pPcarkey,

pPcarkey2,

pPcarkey3,

dar merge doar una

Si sa fac si la stats sa-mi arate a doua masina

nu vreau 3 doar 2 :D

uitati locu de stats

cum maitrebui sa pun sa arate si a doua masina cu detali

si cu id langa cealalta

?

		format(coordsstring, sizeof(coordsstring),"____________________| %s |____________________",name);
		SendClientMessage(playerid, COLOR_GREEN,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Cash:[$%d] Bank:[$%d] Ph:[%d] DonateRank:[%s] MarriedTo:[%s]", level,atext,age,cash,account,pnumber,drank,married);
		SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
		format(coordsstring, sizeof(coordsstring), "PlayingHours:[%d] BiggestFish:[%d] TimesArrested:[%d] Job:[%s] Respect:[%d/%d] NextLevel:[$%d] Rob:[%d/15]", ptime,bigfish,arrests,jtext,exp,expamount,costlevel,robstat);
		SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Drugs:[%d] Materials:[%d] Team:[%s] Organisation:[%s] Rank:[%s] Wanted: [%d/10]",drugs,mats,ttext,ftext,rtext,wanted);
		SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring,sizeof(coordsstring), "Admin-Level:[%d] Helper-Level: [%d] Warns:[%d/3] FactionWarns:[%d/5] FactionPunish[%d/20] ",admin,helperl,warns,fwarns,punish);
		SendClientMessage(playerid,COLOR_GRAD5,coordsstring);
		if (PlayerInfo[targetid][pPcarkey] != 999)
		{
		    format(coordsstring, sizeof(coordsstring), "VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);
		    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
		}
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			format(coordsstring, sizeof(coordsstring), "House key [%d] Business key [%d] Vehicle [%d] HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey,HireCar[targetid],intir,virworld,local);
			SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
		}
		SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________");
	}
}

5 answers to this question

Recommended Posts

Posted

Modifica si comanda /v buy

Ex:

[pawn]ifPlayerInfo[targetid][pPcarkey]  == 999)

{

          // Code

}

else ifPlayerInfo[targetid][pPcarkey2]  == 999)

{

          // Code

}

else ifPlayerInfo[targetid][pPcarkey3]  == 999)

{

          // Code

}[/pawn]

Si la /stats

[pawn] if (PlayerInfo[targetid][pPcarkey] != 999)

{

    format(coordsstring, sizeof(coordsstring), "VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);

    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);

}

if (PlayerInfo[targetid][pPcarkey1] != 999)

{

    format(coordsstring, sizeof(coordsstring), "VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);

    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);

}

if (PlayerInfo[targetid][pPcarkey3] != 999)

{

    format(coordsstring, sizeof(coordsstring), "VehModel:[%s] VehValue:[%d] VehColor1:[%d] VehColor2:[%d] VehLocked:[%d]", CarInfo[carkey][cDescription], CarInfo[carkey][cValue], CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock]);

    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);

}[/pawn]

Nu stiu daca am facut bine da sper ca ai inteles cum ar veni .

i0418xcttya707ofg.jpg

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.