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



help me - pierhs - 18.07.2009

I have RP server and I want when a player is killed to spawn at hospital freezed and his life increased steadily and when it reach 50% he can leave


Re: help me - yom - 18.07.2009

Hello, please, thanks? Try to be more polite then maybe someone will waste time to help you.


Re: help me - pierhs - 18.07.2009

Please!!!


Re: help me - V1ceC1ty - 18.07.2009

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  new Float:health;
  GetPlayerHealth(playerid,health);
  if (health < 50.0)
  {
    SetPlayerPos(playerid, x, x, x);
  }
    return 1;
}
i dunno if that'll work


Re: help me - V1ceC1ty - 18.07.2009

oh that wont increase his life