28.10.2012, 19:19
Hi,
Whats bad in this code? when i shoot to player he is invinsible? player level is 1.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if( issuerid != INVALID_PLAYER_ID ) { GetPlayerHealth( playerid, HealthSave[ issuerid ] ); SetPlayerHealth( playerid, HealthSave[ issuerid ]-floatround( LEVEL[ issuerid ]/2 ) ); } return 1; }