08.01.2011, 14:05
So this is correct?
Код:
public OnPlayerShootPlayer(shooter,target,Float:damage) { new Float:H[2]; GetPlayerHealth(target, H[0]); GetPlayerArmour(target,H[1]); if(GetPlayerWeapon(shooter) == 34) { if(H[1] > 0) return SetPlayerArmour(target,0); SetPlayerHealth(target, H[0]-100); } if(GetPlayerWeapon(shooter) == 33) { if(H[1] > 0) return SetPlayerArmour(target,0); SetPlayerHealth(target, H[0]-75); } return 1; }