09.11.2012, 01:29
Either use OnPlayerUpdate
Or use a timer (highly recommend y_timers include)
https://sampforum.blast.hk/showthread.php?tid=321092
PHP код:
public OnPlayerUpdate(playerid)
{
If(IsPlayerAdmin(playerid)
{
SetPlayerHealth(playerid, 9999);
}
return 1;
}
https://sampforum.blast.hk/showthread.php?tid=321092
PHP код:
#include <YSI\y_timers>
ptask healadmin[10000](playerid)
{
If(IsPlayerAdmin(playerid)
{
SetPlayerHealth(playerid, 9999);
}
return 1;
}