AdminMod.de https://www.adminmod.de/ |
|
admin_live, admin_sub, admin_tax https://www.adminmod.de/viewtopic.php?t=9432 |
Seite 1 von 2 |
Autor: | lala [ 05.06.2005, 20:36 ] |
Betreff des Beitrags: | admin_live, admin_sub, admin_tax |
Hello, I don't have enought time and i don't know scripting.. would someone plz be able to make this one ? only admin permitions ! admin_live to execute this commands : admin_restart 1 admin_restart 3 admin_restart 5 admin_tsay red The Game Is ON ! admin_tsay red The Game Is ON ! admin_say GL & HF admin_say GL & HF admin_tax : admin_freezetime 60 admin_restart 1 admin_tsay red Tactives and Positions ! admin_tsay red Tactives and Positions ! admin_say Tactives and Positions ! admin_say Tactives and Positions ! admin_sub : admin_pause 1 pause admin_pause 0 admin_say Admin Paused The Game. admin_say Admin Paused The Game. thx in advance |
Autor: | Sir Drink a lot [ 05.06.2005, 23:54 ] |
Betreff des Beitrags: | |
hm... and you can't use own config files which contain these commands? (the config file must be stored in each admins cstrike folder) Admin can for example: bind p "exec admin_live.cfg" admin_live.cfg contains: admin_restart 1 admin_restart 3 admin_restart 5 admin_tsay red The Game Is ON ! admin_tsay red The Game Is ON ! admin_say GL & HF admin_say GL & HF Hm...i don't know atm, if u need to set admin_cmd before each admin_ in this admin_live.cfg. |
Autor: | lala [ 06.06.2005, 07:39 ] |
Betreff des Beitrags: | |
I know.. i have already done it, but it would be better if it was like the exam i gave you thx. |
Autor: | [WING] Black Knight [ 06.06.2005, 07:40 ] |
Betreff des Beitrags: | |
Think, SDal! |
Autor: | lala [ 07.06.2005, 20:14 ] |
Betreff des Beitrags: | |
Anyone to help ? |
Autor: | Sir Drink a lot [ 08.06.2005, 17:15 ] |
Betreff des Beitrags: | |
okok just in this second, i got a nice idea for this kind of plugins, which only cumulate existing admin_commands to one admin_cmd i will try it today. |
Autor: | Sir Drink a lot [ 08.06.2005, 19:45 ] |
Betreff des Beitrags: | |
the basic structure for my plugin "plugin_creator" works. But if u use restarts, it is useless to make tsays. They are displayed to short. I will build a delay between each "subcommand" in my plugin. If i finished testing, i will post it here. *as i start writing the plugin, it seems, that i have already written it long long time ago * |
Autor: | lala [ 08.06.2005, 21:03 ] |
Betreff des Beitrags: | |
You are the expert, You know Thx in andvance man |
Autor: | Sir Drink a lot [ 08.06.2005, 21:24 ] |
Betreff des Beitrags: | |
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 messagesas 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 |
Autor: | lala [ 09.06.2005, 07:10 ] |
Betreff des Beitrags: | |
thxxxxxxxxxxxxxxxx !! |
Autor: | lala [ 09.06.2005, 07:36 ] |
Betreff des Beitrags: | |
Unknown command: admin_live doesn't work.. i also tryed to load it to plugins.ini but still nothing it mean it can't load.. what to do now ?;) |
Autor: | Sir Drink a lot [ 09.06.2005, 15:22 ] |
Betreff des Beitrags: | |
lol... i explained only my idea how to do it. I will write the plugin and post it here |
Autor: | Sir Drink a lot [ 10.06.2005, 02:56 ] |
Betreff des Beitrags: | |
ok..first ALPHA version. and now it is up to you, how to build the admin_subcmd.ini. First of all, i have to say, that after game is paused, adminmod is paused too. So you can't send commands after pause. Normally, the admin needs for executing this new main-command the accesslevel of highest admin_subcommand!!! Example: new command = admin_live -> Level = 64 (in example file) subcommands: admin_restart = Level 2 admin_tsay = Level 64 admin_say = Level 64 admin_freezetime = Level 512 So normally, admin needs at least accesslevel 2+64+512=578 to execute admin_live with all subcommands! (i put freezetime in admin_live too...otherwise, if u use admin_tax and after that admin_live, freezetime still stands at 60! So u really have to think about how to set up admin_subcmd.ini. And of course the order of subcommands! It is your exame!) But I made an override and i don't know, if it works. So please think about not to set accesslevels too low in admin_maincmds.ini! The delay can made in new admin_command. Default delay between executing each subcommand is 1 second. For example: admin_live 2 will execute each subcommand after 2 seconds. If 1 second delay is ok you don't need a number after admin_live. So test it and let me know, if it is ok or needs some improvements! Installation: - adminmod.cfg: file_access_read 1 !!! - admin_maincmds.ini and admin_subcmds.ini must be saved to addons/adminmod/config MAX new commands in admin_maincmds.ini = 100 MAX subcommands in admin_subcmds.ini = 1000 **new version available** |
Autor: | lala [ 10.06.2005, 11:30 ] |
Betreff des Beitrags: | |
Doesn't work :~( it also says Unknown command: admin_live |
Autor: | Sir Drink a lot [ 10.06.2005, 13:35 ] |
Betreff des Beitrags: | |
you have compiled the plugin_sdal_plugincreator.sma to plugin_sdal_plugincreator.amx? you have copied the plugin_sdal_plugincreator.amx to addons/adminmod/scripts? you added addons/adminmod/scripts/plugin_sdal_plugincreator.amx to addons/adminmod/config/plugin.ini? |
Autor: | lala [ 10.06.2005, 16:36 ] |
Betreff des Beitrags: | |
Yes.. but still this ] admin_live Unknown command: admin_live ] admin_tax Unknown command: admin_tax ] admin_sub Unknown command: adm |
Autor: | Sir Drink a lot [ 10.06.2005, 17:25 ] |
Betreff des Beitrags: | |
what does admin_version in console say? what stands in log files? |
Autor: | lala [ 10.06.2005, 17:34 ] |
Betreff des Beitrags: | |
Admin Mod version 2.50.60 (MM) * Plugin # 1: Admin Anti-Flood Plugin (v. 2.50.05) Auto kicks flooders * Plugin # 2: Admin Base Plugin (v. 2.50.13) Basic Admin Mod commands. * Plugin # 3: Admin Chat Plugin (v. 2.50.06) Commands for responding to chat. * Plugin # 4: Admin Cheating Plugin (v. 2.50.04) Commands for noclip, teleporting, godmode, etc. * Plugin # 5: Admin hlds_ld-style Map Vote Plugin (v. 2.50.04) Runs a chat-based interface map vote, similar to hlds_ld. * Plugin # 6: Auto-Messaging Plugin (v. 2.50.05) Shows message on connect, as well as a message every x minutes. * Plugin # 7: Admin Retribution Plugin (v. 2.50.08) Commands for getting back at llamas and cheaters. * Plugin # 8: Fun Plugin (v. 2.50.05) Does silly stuff. * Plugin # 9: Plugin Creator (v. 0. Create your own adminmod commands |
Autor: | Sir Drink a lot [ 10.06.2005, 18:26 ] | ||
Betreff des Beitrags: | |||
ok. then it didn't load the admin_maincmds.ini or file_access_read is not set to 1. Here a new version which checks for all settings first and give hints why it is not loaded in log files. I also added a new command: admin_list_main to display all new main commands with their subcommands.
|
Autor: | lala [ 10.06.2005, 19:37 ] |
Betreff des Beitrags: | |
works but i had to set the file_access_read 1 at adminmod.cfg :D:D i don't know how to thank you thx a lot |
Seite 1 von 2 | Alle Zeiten sind UTC+01:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |