09.05.2011, 00:04
PHP код:
public ChecarLife( playerid )
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
#define Knight_Armour 5
new Float: kArmour;
GetPlayerArmour( i, kArmour );
if( IsPlayerAttachedObject( playerid, Knight_Armour ) && !kArmour) return RemovePlayerAttachedObject( i, Knight_Armour );
else if( kArmour ) return SetPlayerAttachedObject( i, Knight_Armour, 19142, 1, 0.1, 0.05, 0.0 );
}
return true;
}