Raised This Month: $ Target: $400
 0% 

wpn_rocketlauncher_admin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Drak
Veteran Member
Join Date: Jul 2005
Old 08-31-2008 , 23:41   Re: wpn_rocketlauncher_admin
Reply With Quote #5

Code:
public wpn_event_post(player,wpnid,wpn_event:event,params[]) {     new bool:Check = false     switch(wpn_event)     {         case event_draw:             Check = true         case event_pickup:             Check = true         default:             Check = false     }     if(Check)     {         if((get_user_flags(player) & ADMINLEVEL))             return PLUGIN_CONTINUE         else             return PLUGIN_HANDLED     }     return PLUGIN_CONTINUE }

Add this somewhere, and compile it. I never used weaponmod, but I think this should work. (Anytime a user equips/picks up a weapon, it checks if you have the correct admin rights)
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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

Forum Jump


All times are GMT -4. The time now is 03:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode