11.02.2011, 02:07
pawn Код:
if(strcmp(cmdtext,"/buylevel",true)==0)
{
if(GetPlayerMoney(playerid) < 100000 && GetPlayerScore(playerid) != 0)
return SendClientMessage(playerid, COLOR_BRIGHTRED, "You don't have enough money.");
SetPlayerRank(playerid, 1);
SetPlayerScore(playerid, 1);
GivePlayerMoney(playerid, -100000);
SendClientMessage(playerid, COLOR_GREEN,"Gratz! You bought level 1.");
return 1;
}