Help me please
#1

public Health()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gPlayerSpawned[i] == 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);
}
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(i, "~r~Voce esta morrendo chame um medico !", 5000, 3);
}
}
}
}
return 1;
}

i create this command for if the player have 30 or - on life he go to anim crack but he take 20 on life and dont go =X i need help please
Reply


Messages In This Thread
Help me please - by igorpk13 - 21.02.2010, 05:19
Re: Help me please - by Born2die - 21.02.2010, 07:43
Re: Help me please - by igorpk13 - 21.02.2010, 17:14

Forum Jump:


Users browsing this thread: 1 Guest(s)