SA-MP Forums Archive
/heal - 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: /heal (/showthread.php?tid=91908)



/heal - Eazy_E214 - 17.08.2009

hi

i need a heal filterscript

/heal = give player 100 hp

pls a Filterscript







Re: /heal - The_Tough - 17.08.2009

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 5) == 0)
	{
	SendClientMessage(playerid,0xFF33FFAA,"You have been healed !");
       SetPlayerHealth(playerid,100.0);
	return 1;
	}
	return 0;
}



Re: /heal - xCoder - 17.08.2009

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 5) == 0)
	{
	SendClientMessage(playerid,0xFF33FFAA,"You have been healed !");
       SetPlayerHealth(playerid,100.0);
       GivePlayerMoney(playerid, -1000);
	return 1;
	}
	return 0;
}
Added news