Würe es so klappen, dass das Opfer mehr schaden bekommt?
SQL
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
new Waffe;
Waffe=GetPlayerWeapon(playerid);
if(Waffe==34)//Sniper
{
SetPlayerHealth(damagedid,-60);
}
else if(Waffe==24)//Shotgun
{
SetPlayerHealth(damagedid,-15);
}
else if(Waffe==16)//Granate
{
SetPlayerHealth(damagedid,-55);
}
else if(Waffe==39)//C4
{
SetPlayerHealth(damagedid,-70);
}
else if(Waffe==27)//Combat Shotgun
{
SetPlayerHealth(damagedid,-5);
}
else if(Waffe==31)//M4
{
SetPlayerHealth(damagedid,-5);
}
else if(Waffe==30)//AK
{
SetPlayerHealth(damagedid,-7);
}
else if(Waffe==4)//Messer
{
SetPlayerHealth(damagedid,-6);
}
return 1;
}
Alles anzeigen