Oh alright thanks, the example there taught me on how to use one of ava's functions xD. but I'm stuck again :S
PHP Code:
public DepositFireArm(id)
{
if(!is_user_alive(id)) return PLUGIN_HANDLED
new menu[256]
new key = (1<<0|1<<1|1<<9)
new len = format(menu,sizeof(menu),"Deposit Firearm^n^n")
new weapons[35], num = 0
for(new i=1;i>ts_get_user_weapons(id,weapons,num);i++)
{
len += format(menu[len],sizeof(menu)-len,"%i. %s^n",i,weapon_names[i])
}
show_menu(id,key,menu,-1,"Deposit Firearm")
return PLUGIN_HANDLED
}
public DepositFireArm_Action(id,key)
{
switch(key)
{
// How do get on how many cases there are??