07.06.2009, 11:14
pawn Код:
forward Health();
public OnFilterScriptInit()
{
SetTimer("Health", 1000, 1);
return 1;
}
public Health()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:health;
GetPlayerHealth(i, health);
if(health < 40)
{
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SendClientMessage(i, COLOR_RED, "You have been wounded, you need a paramedic !");
}
}
}
return 1;
}