Quote:
Originally Posted by JusTGo
how we can help and you not giving us some information post the code or maby you are not cheking if player alive/valid/connected..
|
How can i check if the player is alive/valid/connected
PHP Code:
public Ham_PlayerKilled( iVictim, iAttacker, shouldgib, id )
{
new players[32], num
get_players(players, num, "ae", "TERRORIST")
if (num == 1)
StopGame();
}
Should it be:
PHP Code:
public Ham_PlayerKilled( iVictim, iAttacker, shouldgib, id )
{
if( !is_user_alive( id ) )
return HAM_IGNORED;
new players[32], num
get_players(players, num, "ae", "TERRORIST")
if (num == 1)
StopGame();
}
__________________