SA-MP Forums Archive
Command help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Command help (/showthread.php?tid=137987)



Command help - Steven82 - 30.03.2010

How to make command to not work if you have over 150$? I have the whole command scripted.


Re: Command help - ScottCFR - 30.03.2010

pawn Код:
if(GetPlayerMoney >= 150)
{
    SendClientMessage(playerid, COLOR, "You don't have enough money!");
}
*NOTE: Not tested xD


Re: Command help - Steven82 - 31.03.2010

Dang didn't work.

Nevermind this is the code.

Код:
    if(GetPlayerMoney(playerid) >= 150)
	{
    SendClientMessage(playerid,COLOR\, "You don't have enogh money.");
	}
EDIT AGAIN:

But once i do it it say that i do not have enough but then the command still works


Re: Command help - -Rebel Son- - 31.03.2010

Код:
if(!strcmp(cmdtext,"/name",true))
{
  if(GetPlayerMoney(playerid) > 150 ) return SendClientMessage(playerid,COLOR,"You got to much cash");

  SendClientMessage(playerid,COLOR,"Oh look ...");
  return 1;}
try this