11.02.2011, 01:23
No it doeasnt work. It still buys all 3 of them.
Translation:
Please, please help.
Translation:
Код:
if(strcmp(cmdtext,"/buylevel",true)==0) { if(GetPlayerMoney(playerid) >= 100000 && GetPlayerScore(playerid) == 0) { SetPlayerRank(playerid, 1); SetPlayerScore(playerid, 1); GivePlayerMoney(playerid, -100000); SendClientMessage(playerid, COLOR_GREEN,"Gratz! You bought level 1."); } else { if(GetPlayerMoney(playerid) < 100000 && GetPlayerScore(playerid) == 0) { SendClientMessage(playerid, COLOR_BRIGHTRED, "You don't have enough money."); } return 1; }