Raised This Month: $ Target: $400
 0% 

Menu problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tlch0324
Senior Member
Join Date: Jan 2007
Old 05-17-2009 , 06:40   Menu problem
Reply With Quote #1

PHP Code:
register_menucmd(register_menuid("WEAPONS_MENU"), 1023"weapons_menu");
 
if(
is_user_connected(id))
           return 
PLUGIN_HANDLED;
 new 
menu[192];
 new 
keys = (1<<0)|(1<<1)|(1<<2)|(1<<3);
 
format(menu191"\y( Weapons ):^n^n^n\y1. \rAK47^n\y2. \rM4A1^n\y3. \rAWP^n^n\y4. \rI Random!");
 
show_menu(idkeysmenu, -1"WEAPONS_MENU");
 return 
PLUGIN_HANDLED;
 
public 
weapons_menu(idkeys)
{
 switch(
keys
 {
  case 
0:
  {
   
fm_strip_user_weapons(id);
   
fm_give_item(id"weapon_ak47");
 
   
color_print(id"^x01GET^x04AK47.");
  }
  case 
1:
  {
   
fm_strip_user_weapons(id);
   
fm_give_item(id"weapon_m4a1");
 
   
color_print(id"^x01GET^x04M4A1.");
  }
  case 
2:
  {
   
fm_strip_user_weapons(id);
   
fm_give_item(id"weapon_awp");
 
   
color_print(id"^x01GET ^x04AWP.");
  }
  case 
3:
  {
  
What should write here For random weapon?
  }
 }
 return 
0;


Last edited by tlch0324; 05-17-2009 at 06:43.
tlch0324 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-17-2009 , 07:51   Re: Menu problem
Reply With Quote #2

PHP Code:
weapons_menuidrandom_num0) ); 
__________________
xPaw is offline
tlch0324
Senior Member
Join Date: Jan 2007
Old 05-17-2009 , 11:40   Re: Menu problem
Reply With Quote #3

thank you
tlch0324 is offline
Reply



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 01:26.


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