Scripting Help
#2

Here you go
Код:
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;
}
Replace CMD:Heal with
Код:
if(!strcmp(cmdtext, "/heal", true, 4))
If you are using Strcmp
Reply


Messages In This Thread
Scripting Help - by KingJohny - 30.03.2013, 18:20
Re: Scripting Help - by Pawnie - 30.03.2013, 18:28
Re: Scripting Help - by KingJohny - 30.03.2013, 18:31
Re: Scripting Help - by Pawnie - 30.03.2013, 18:34
Re: Scripting Help - by KingJohny - 30.03.2013, 18:38
Re: Scripting Help - by KingJohny - 30.03.2013, 18:50
Re: Scripting Help - by MrTinder - 30.03.2013, 19:01
Re: Scripting Help - by KingJohny - 30.03.2013, 19:09
Re: Scripting Help - by Pawnie - 30.03.2013, 19:12
Re: Scripting Help - by KingJohny - 30.03.2013, 19:14

Forum Jump:


Users browsing this thread: 2 Guest(s)