A short explanation for my idea:
you have two textfiles under addons/adminmod/config:
admin_maincmds.txt and admin_subcmds.txt
You set up in admin_maincmds.txt for example (structure is very very important!):
Code:
admin_live:64:admin_live: makes restarts and messages
admin_tax:64:admin_tax: sets freezetime to 60 and restarts with messages
admin_sub:64:admin_sub: pause the game with messages
as you see: new admin_command:Accesslevel:Description of command
and now the structure of admin_subcmds.txt:
Code:
0:admin_restart 1
0:admin_tsay red The Game Is ON !
0:admin_restart 2
0:admin_tsay red The Game Is ON !
0:admin_restart 2
0:admin_say GL & HF
0:admin_say GL & HF
1:admin_freezetime 60
1:admin_restart 1
1:admin_tsay red Tactives and Positions !
1:admin_tsay red Tactives and Positions !
1:admin_say Tactives and Positions !
1:admin_say Tactives and Positions !
2:admin_pause 1
2:pause
2:admin_pause 0
2:admin_say Admin Paused The Game.
2:admin_say Admin Paused The Game.
Ident-Number:normal Adminmod_Command
The plugin does:
loades admin_maincmds.txt and registers new commands
loades admin_subcmds.txt
the plugin knows now:
the first maincmd is admin_live. And all sub commands starting with 0 are belong to this maincmd and are executed one after another (delay must still be tested)
Perhaps i give the maincommand an additional paramater, that everyone can decide, how long the delay between each subcommand will be. Or i have to set in admin_subcmds.txt itself for each subcmd
Ok. Everybody has also to think about, how to set up the correct order of admin_subcmds.txt
But everybody can design his own simple plugin
_________________
Fehleranalyse: Poste den Inhalt Deiner liblist.gam, (listen)server.cfg, adminmod.cfg, users.ini, vault.ini, plugin.ini von adminmod und plugins.ini von metamod. Benutze auch die
Such-Funktion