[PROBLEM] Kick Gun [HELP PLEASE!] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [PROBLEM] Kick Gun [HELP PLEASE!] (
/showthread.php?tid=354547)
[PROBLEM] Kick Gun [HELP PLEASE!] -
UnknownGamer - 27.06.2012
Hey People,
Anyone know how to make a kick gun, that only level 1338 ADMINS Can get on "/aduty"?
IE: You shoot them in there AFK, and it kicks them from server....
Re: [PROBLEM] Kick Gun [HELP PLEASE!] -
Kindred - 27.06.2012
Sure, simply make a variable that is set when you do the command. Also give yourself a weapon. Then, when you use the weapon, under OnPlayerGiveDamage.
Example:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(gunvariable[playerid] == 1)
{
Kick(damagedid);
}
return 1;
}