03.04.2011, 02:36
A few things could be improved upon as well
pawn Код:
forward pAliveChecker( );
public pAliveChecker( )
{
new
Float:health;
for( new i; i < MAX_PLAYERS; ++i )
{
// samp has internal checks to see if players are connected
// no reason to have an array of health values if they are never compared
if ( GetPlayerHealth( i, health ) && health > 0 )
{
ChainsawEnder( );
break;
}
}
return 1;
}