Jump to content
  • 0

Question

Posted

Salut , cum as putea face la Masinile cu pPcarkey3 sa iti trebuieasca donate rank

if(listitem==1)
				{
                    if (GetPlayerMoney(playerid) >= 90000)
				    {
					    GivePlayerMoney(playerid,-90000); //bullet
					    new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z);
                        new thiscar = CreateVehicle(541,X,Y,Z,1,0,0,99999999);
			            if(PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = thiscar; }
                        else if(PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = thiscar; }
                        else if(PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = thiscar; }
			            else { return 1; }
			            CarInfo[thiscar][cOwned] = 1; CarInfo[thiscar][cModel] = 541; CarInfo[thiscar][cColorOne] = 0; CarInfo[thiscar][cColorTwo] = 0;
			            CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1;
                        CarInfo[thiscar][cValue] = 90000; CarInfo[thiscar][cLock] = 0; CarInfo[thiscar][paintjob] = -1;
			            PutPlayerInVehicle(playerid,thiscar,0); GetPlayerName(playerid, sendername, sizeof(sendername));
			            strmid(CarInfo[thiscar][cOwner], sendername, 0, strlen(sendername), 999); PlayerPlayMusic(playerid);
				        GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3);
				        SendClientMessage(playerid, COLOR_GRAD2, "Felicitari ti-ai cumparat o masina noua!");
				        SendClientMessage(playerid, COLOR_GRAD2, "Scrie /v pentru manualul masini!");
				        format(CarInfo[thiscar][cDescription], 32, "Bullet"); OnCarUpdate(); SavePlayerData(playerid);
				    }
				    else { SendClientMessage(playerid, COLOR_WHITE, "   Nu ai suficienti bani pentru a cumpara masina aceasta !"); }
				}

2 answers to this question

Recommended Posts

Posted

Mai adaugi un if(PlayerInfo[playerid][pDonateRank] > 0) la tot ce tine de pCarKey3

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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.