AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu Help (https://forums.alliedmods.net/showthread.php?t=57434)

Bato 07-04-2007 15:37

Menu Help
 
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

Bato 07-06-2007 04:28

Re: Menu Help
 
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??

mateo10 07-06-2007 06:22

Re: Menu Help
 
Code:
server_cmd("addbot team class skill");

Bato 07-07-2007 01:45

Re: Menu Help
 
hmmmm thanks man


All times are GMT -4. The time now is 21:30.

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