Kann mir jemand helfen?
Habe bei OnPlayerShootPlayer 1 Hit mit der waffe Möchte aber, wenn Der jenige Rüstung hat, das der user nicht bei 1 Hit Stirbt, sondern das die Rüstung ganz normal weggeht.
Kann mir wer da helfen?
Mein Code ist so:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
new Float:Health,Float:Armour;
if(spawnkill[Target] == 1 && GetPlayerTeam(Shooter) != GetPlayerTeam(Target))
{
if(GetPlayerTeam(Shooter) == TEAM_RED && GetPlayerTeam(Target) == TEAM_BLUE && GetPlayerWeapon(Shooter) == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 ) HealthLost = Health-101; ArmourLost = Armour-5;
GetPlayerArmour(Target, Armour);
SetPlayerArmour(Target, ArmourLost+Armour);
SetPlayerHealth(Target, HealthLost+Health);
}
return 1;
}