27.10.2011, 01:36
Alguйm sabe, por gentileza como tira aquele bug no GameMod Advanced RP, que quando atira ou bate em um player para ele aparece um dialog chato?
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { new Float:health, Float:armour; GetPlayerHealth(Target,health); GetPlayerArmour(Target,armour); if(ArmourLost > 0.0) SetPlayerArmour(Target,floatadd(armour,ArmourLost)); if(HealthLost > 0.0) SetPlayerHealth(Target,floatadd(health,HealthLost)); new Damage; switch(GetPlayerWeapon(Shooter)) { case 24: Damage = DEAGLEDANO; case 31: Damage = M4DANO case 28: Damage = SMGDANO case 29: Damage = MP5DANO case 0: Damage = SOCODANO case 22: Damage = NOVEDANO case 23: Damage = SILENCEDDANO case 5,3,6,7,2: Damage = 1 case 4: Damage = FACADANO case 25: Damage = SHOTGUNDANO case 26: Damage = SAWNDANO case 30: Damage = AK47DANO case 33,34: Damage = COUNTRYDANO } armour = armour - Damage; if(armour < 0.0) { health += armour; if(health <= 0.0) { health = 0.0; } armour = 0.0; } SetPlayerHealth(Target, health); SetPlayerArmour(Target, armour); return 1; }