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)
__________________