SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 27/06/2012, 06:42 AM   #1
UnknownGamer's Avatar
Join Date: Apr 2012
Posts: 519
Reputation: 39
Default [PROBLEM] Kick Gun [HELP PLEASE!]

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....
╠ Ɽavens Roleplay → mySQL BlueG R41-4 ╣
╠ Ɽavens Vehicle System → Re-scripted to Y_Iterators & Y_Inline ╣
╠ Ɽavens Commands → STRCMP Re-scripted to Y_Commands ╣
╠ Ɽavens AntiCheat → Migrated over to F-Cleo ╣
╠ Ɽavens Password System → Changed to Whirlpool (WP_Hash) & SHA256_PassHash (Salt) ╣
╠ Ɽavens Jobs System → Entirely re-scripted ╣

╠ Ɽavens Library's Used → Ύ_Iterate, Ύ_Inline, Ύ_Timers, Ύ_Commands, Ύ_Master, Ύ_Dialog, Ύ_Groups, Ύ_Hooks, Ύ_Utils, Ύ_VehicleData, Ύ_Va, A_mySQLYInline, BlueG MySQL R41-4, FCLEO, OPVD, SSCANF2, Progress2, EVF, [MV]_Youtube, Whirlpool ╣
UnknownGamer is offline   Reply With Quote
Old 27/06/2012, 06:57 AM   #2
Join Date: Aug 2011
Posts: 1,252
Reputation: 504
Default Re: [PROBLEM] Kick Gun [HELP PLEASE!]

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.


pawn Code:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
    if(gunvariable[playerid] == 1)
    return 1;
Kindred is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kick problem MechaTech Scripting Help 2 26/05/2012 10:15 AM
kick problem.. vassilis Scripting Help 2 26/11/2011 05:43 PM
problem with /kick cmd Face9000 Help Archive 4 15/12/2010 09:34 AM
Kick and ban problem nicu90 Help Archive 3 07/10/2009 02:09 PM

All times are GMT. The time now is 06:48 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.