Raised This Month: $51 Target: $400
 12% 

Creating My own menu


Post New Thread Reply   
 
Thread Tools Display Modes
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 08-18-2004 , 15:36  
Reply With Quote #11

Hey Wiz01. Ok I duno what its suppose to do, but here is how you would run the command on the user. Keep the code you got but when you check the key use something like this:

Code:
/*****************Checkpoint Menu Choice Switch*****************/ 
public MenuNameChoice(id, key) 
{ 
   switch(key) 
   { 
      case 0: 
      { 
	client_print(id, print_chat, "You have selected choice number 1") 
	client_cmd(id, "say /checkpoint")
      } 
      case 1: 
      { 
	client_print(id, print_chat, "You have selected choice number 2")
	client_cmd(id, "say /checkpoint") 
      } 
      case 2: 
      { 
	client_print(id, print_chat, "You have selected choice number 3") 
	client_cmd(id, "say /checkpoint")
      } 
      default: 
      { 
	return PLUGIN_HANDLED 
      } 
   } 
}
Cheers! Tell me more and I might be able to help. No promises thought! PM Plz
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
Wiz01
Junior Member
Join Date: Aug 2004
Old 08-18-2004 , 17:47  
Reply With Quote #12

Listen i'm trying to create a menu for kz_multiplugnin, now i used the Menu Generator to create the menu and its working but the thing it that i don't know how to make for example that the first option will do "say blaa" in console. almost forgot thanks for trying to help i'll check if what you said is working .

EDIT : YEY ITS FINALLY WORKING Zor YOU OWNZ!
Wiz01 is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 08-18-2004 , 18:45  
Reply With Quote #13

Your welcome...and luck!

Cheers!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
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 18:42.


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