02.12.2009, 14:23
Quote:
Originally Posted by [WsR
RyDeR ]
Код:
#include <a_samp> forward DeathCheck(playerid); new CheckTimer[MAX_PLAYERS]; public DeathCheck(playerid) { new Float:Health; do { ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.1,1,1,1,1,1); } while(GetPlayerHealth(playerid, Health) <5); return 1; } public OnPlayerConnect(playerid) { CheckTimer[playerid] = SetTimerEx("DeathCheck", 1000, true, "i", playerid); return 1; } public OnPlayerDisconnect(playerid) { KillTimer(CheckTimer[playerid]); return 1; } |