21.02.2010, 07:43
Use PAWN tags next time.
Try this, also make sure the function is actually being called.
Try this, also make sure the function is actually being called.
pawn Код:
public Health()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gPlayerSpawned == 1)
{
new Float:health;
GetPlayerHealth(i, health);
if(health < 30)
{
if(IsPlayerInAnyVehicle(i))
{
RemovePlayerFromVehicle(i);
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(i, "~r~Voce esta morrendo chame um medico !", 5000, 3);
}
else
{
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(i, "~r~Voce esta morrendo chame um medico !", 5000, 3);
}
}
}
}
}
return 1;
}