26.12.2010, 16:38
pawn Код:
//Top of script
forward HungerTimer(playerid, Float:health);
pawn Код:
public OnPlayerSpawn(playerid)
{
SetTimerEx("HungerTimer", 10000, 1, "i", playerid);
return 1;
}
pawn Код:
public HungerTimer(playerid, Float:health)
{
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health - 5);
return 1;
}