12.02.2012, 00:25
Tambйm podes usar isto , nгo resolve mas ajuda um pouco !
Retira a arma a quem estб a fazer DB e nao causa dano ao player que sofre o DB....
Retira a arma a quem estб a fazer DB e nao causa dano ao player que sofre o DB....
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GetPlayerState(issuerid) == PLAYER_STATE_DRIVER) { new Float:armour; new Float:hp; GetPlayerHealth(playerid, hp); GetPlayerArmour(playerid, armour); SetPlayerArmour(playerid,armour); SetPlayerHealth(playerid,hp); SetPlayerArmedWeapon(issuerid, 0); } return 1; }