ToX1c Posted February 7, 2014 Posted February 7, 2014 Salut , cum as putea face la Masinile cu pPcarkey3 sa iti trebuieasca donate rankif(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 !"); } }
Gireada Posted February 14, 2014 Posted February 14, 2014 Mai adaugi un if(PlayerInfo[playerid][pDonateRank] > 0) la tot ce tine de pCarKey3
Question
ToX1c
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