Raised This Month: $ Target: $400
 0% 

Menu Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bato
Junior Member
Join Date: Jul 2007
Old 07-04-2007 , 15:37   Menu Help
Reply With Quote #1

yeah.. im new to AMX i know next to nothing about it im trying to make a menu for creating bots in DoD 1.3 with shrikebot in AMX

it appears on the amxmodmenu main admin thingy

i dont want someone to do it for me just explain how to do it, if someone did it for me i would learn nothing =p

this is a example of what i want

amxmodmenu
blahblahblah
9. Bot menu
Bot Menu
1. Add bot
Team
1. Allies
2. British (ONLY on british maps)
3. Axis
Class
1-9 list classes
Skill
1-6 list diffrent skill settings
after all that it just send to the client this command
rest is blah

addbot %team %class %skill (%being variables that were set though the menu)
like a allied rifle men on random setting would send
addbot 1 1 6

like
selecting
3.axis (would set %team to 2)
3.Unteroffizier (would set %class to 3 the mp40 class)
5.reg. (would set %skill to 5 being the lowest skill and easy to kill)
sending
addbot 3 3 5

basicly utilizing both systems at once
i specified that menu concept because im not sure if thats at all possible in AMX

i dont want someone to do it for me i just want to know how to setup the menu set the variables and execute the command with the variables
__________________
[IMG]http://img507.**************/img507/4988/battagps7.png[/IMG]
Bato is offline
Bato
Junior Member
Join Date: Jul 2007
Old 07-06-2007 , 04:28   Re: Menu Help
Reply With Quote #2

well.. ive learned how to setup the menu right (hopefully) its only half done
no one helped me..

will someone please atleast tell me if its possible to execute a command with variables like
the server_exec() command
server_exec(addbot team class skill)
would not work because i know it sends whats exactly in the ()

how would i do this???
defining the variables thouhg the menu array and at the end it sends addbot and the 3 variable values to the client??
__________________
[IMG]http://img507.**************/img507/4988/battagps7.png[/IMG]
Bato is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 07-06-2007 , 06:22   Re: Menu Help
Reply With Quote #3

Code:
server_cmd("addbot team class skill");
mateo10 is offline
Bato
Junior Member
Join Date: Jul 2007
Old 07-07-2007 , 01:45   Re: Menu Help
Reply With Quote #4

hmmmm thanks man
__________________
[IMG]http://img507.**************/img507/4988/battagps7.png[/IMG]
Bato 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 21:30.


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