30.03.2013, 18:28
Here you go
Replace CMD:Heal with
If you are using Strcmp
Код:
CMD:heal(playerid, params[]) { if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "<!>You need atleast 10000$ in order to heal!"); GivePlayerMoney(playerid, -10000); //taking 10k from them SetPlayerHeatlh(playerid, 100); //Setting HP return 1; }
Код:
if(!strcmp(cmdtext, "/heal", true, 4))