Command help
#1

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

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

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
Reply
#4

Код:
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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)