Question: how do i use the
get_user_weapons() function?
Code:
loop thru all 32 players
weap = get_user_weapons(iplayer,x,y)
check_primaryweap()
{
//i'll use a case insted of the "if" below for removing m4a1, ak47,.....
if (prim_weapon == 28) //is ak47?
client_print(llama,print_center,"Request Denied.")
client_cmd(llama,"weapon_ak47;wait;wait;wait;drop")
end-if
return PLUGIN_CONTINUE
}
public plugin_init(){
register_plugin("Drop Non-LRRifle","0.1","SuicideDog")
register_event("WeapPickup","check_primaryweap","b","1=28")
register_cvar("sv_lrrifle","0")
return PLUGIN_CONTINUE
}