Raised This Month: $ Target: $400
 0% 

Getting weapon of what user is holding


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 05-01-2007 , 20:23   Re: Getting weapon of what user is holding
Reply With Quote #5

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?? 
wonsae is offline
 



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 06:39.


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