24.09.2012, 03:12
Hey there. I need a kick gun for fun but I do not know how to script the command to give yourself one but that's not the question. The question is when ANYONE fires a shotgun with this public variable in, it kicks them, not the person they fired it at. If you can help me create a command and or fix the variable it will be appreciated with a rep. Thanks!
Public Variable:
Public Variable:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(GetPlayerWeapon(issuerid) == 25) return Kick(issuerid);
return 1;
}