Is there..
#5

pawn Код:
//Top of script
forward HungerTimer(playerid, Float:health);
then
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetTimerEx("HungerTimer", 10000, 1, "i", playerid);
    return 1;
}
then...
pawn Код:
public HungerTimer(playerid, Float:health)
{
    GetPlayerHealth(playerid, health);
    SetPlayerHealth(playerid, health - 5);
    return 1;
}
Not what you wanted, but this FS takes a player 5 HP every 10 seconds, so he dies when he looses all HP
Reply


Messages In This Thread
Is there.. - by Jack_Blade - 26.12.2010, 15:25
Re: Is there.. - by Jack_Blade - 26.12.2010, 16:13
Re: Is there.. - by Leeroy. - 26.12.2010, 16:15
Re: Is there.. - by TouR - 26.12.2010, 16:17
Re: Is there.. - by Mean - 26.12.2010, 16:38
Re: Is there.. - by admantis - 26.12.2010, 21:43
Re: Is there.. - by Mean - 27.12.2010, 09:36

Forum Jump:


Users browsing this thread: 3 Guest(s)