/Buylevel command problem.
#3

No it doeasnt work. It still buys all 3 of them.

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;
    }
Please, please help.
Reply


Messages In This Thread
/Buylevel command problem. - by FreЉ - 11.02.2011, 01:12
Re: /Buylevel command problem. - by Memoryz - 11.02.2011, 01:16
Re: /Buylevel command problem. - by FreЉ - 11.02.2011, 01:23
Re: /Buylevel command problem. - by Zack9764 - 11.02.2011, 01:53
Re: /Buylevel command problem. - by California - 11.02.2011, 02:07
Re: /Buylevel command problem. - by Unknown123 - 11.02.2011, 02:08
Re: /Buylevel command problem. - by FreЉ - 11.02.2011, 02:17
Re: /Buylevel command problem. - by Antonio [G-RP] - 11.02.2011, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)