12.06.2010, 14:58
-RESOLVED-
forward DeathSystem();
public DeathSystem()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:health;
GetPlayerHealth(i, health);
if(health < 10)
{
if(IsPlayerInAnyVehicle(i))
{
RemovePlayerFromVehicle(i);
}
TogglePlayerControllable(i, 0);
ApplyAnimation( i, "INT_HOUSE", "BED_Loop_R", 4.0, 1, 0, 0, 0, 0 );
ApplyAnimation( i, "INT_HOUSE", "BED_Loop_R", 4.0, 1, 0, 0, 0, 0 );
PulseSystem[i] = 1;
}
}
}
return 1;
}
new Float:health;
if(GetPlayerHealth(i, health) < 10)
{...
new Float:health;
GetPlayerHealth(i, health);
if(health < 10)
{...
Originally Posted by yeswecanchange09
How is DeathSystem being called? Have you added a timer for it?
|
OnGameModeInit() { SetTimer("DeathSystem",2000,1); return 1; }