.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > General Forum
General Forum Follow progress, give suggestions, reply to bug report threads here.

Reply
 
Thread Tools
New AMX Plug In For RealBot
Old
  (#1)
|3FX| Bliss
Member
 
Status: Offline
Posts: 13
Join Date: Feb 2004
Default New AMX Plug In For RealBot - 08-03-2004

Hello Everyone,
I have just completed a plugin for AMX that maks a AMX List of all the RealBot WIP Commands.
I found this plugin useful for adminstring felow clans men with the power to control the bots without having to have rcon access.

Your Free to download this file it is missing a few things i think but i will have the full version out in a few days.
This is a working plugin for AMX and RealBot WIP.

To Install:
MUST HAVE AMX INSTALLED AND WORKING!
------------------------------------------
Extract the zip file to your "cstrike" directory.

Open you AMX plugin.ini located in your addons\amx\plugins\ folder and add the lines:
amx_rbmm.amx ; RealBot Manager Menu
amx_quick.amx ; Realbot Manager Menu
amx_endround.amx ; Realbot Manager Menu
amx_t_menu.amx ; Realbot Manager Menu
amx_ct_menu.amx ; Realbot Manager Menu
amx_remove.amx ; Realbot Manager Menu
amx_random.amx ; Realbot Manager Menu
amx_settings.amx ; Realbot Manager Menu

To activate the menu type "amx_rbmm" in the console with out the quotes.
Restart your server and enjoy.
-------------------------------------------------------------------------

Thanks,
Yo Momma's MHOS
Or
Bliss

P.S.
If anyone has some helpful scripting advice i would like to hear what you think.
Im not a a pro at this and it's my first time writing a complete plugin for Amx Mod and its BIG AND BULKE!
Attached Files
File Type: zip AMX RealBot Manager v0.1.zip (101.2 KB, 524 views)

Last edited by |3FX| Bliss; 08-03-2004 at 05:22..
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#2)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: New AMX Plug In For RealBot - 08-03-2004

Why did you spilt your plugin in that many files, one for each command?

I've written some AMX plugins for different bots too, and solved this problem at a different way. Instead of many commands I made ONE command, everything else goes as arguments to this command, e.g. "amx_realbot add".
This command was introduced in bot_control v0.4. But this version is broken in some ways and the fillslots function shouldn't be used.

Currently I'm developing a multibot management plugin which can handle multiple bots at the same time .
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#3)
|3FX| Bliss
Member
 
Status: Offline
Posts: 13
Join Date: Feb 2004
Default Re: New AMX Plug In For RealBot - 08-03-2004

Hey Terran,
Well Like I said in my post this is my first time scripting a plugin and i really have know idea of waht half the commands are for amx scripts.
I do know that the way the files are is a good idea if you want to limit control of the bots to your admins. Im sure that there are other ways to do this but thats the only thing i could come up with.
I would be more than happy with some advice about making a final version.
I dont know much about it and this is the biggest one i have wrote.

Thanks,
Bliss
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#4)
Willem
Guest
 
Status:
Posts: n/a
Default Re: New AMX Plug In For RealBot - 09-03-2004

Hello, if you want to use the fillslots function too, start Terrans second amxplugin ( called playertrack ) also.
After change this part of his realbot_control :
public checkSlots() {

// new players[32]
new snum = 0
new fnum = get_cvar_num("tn_bc_fillslots")
new tcount = get_cvar_num("tn_pt_terror")
new ctcount = get_cvar_num("tn_pt_ct")
new speccount = get_cvar_num("tn_pt_spec")
new ucount = get_cvar_num("tn_pt_unknown")
// log_message("[TN-BC] number of taken slots: %d/%d",snum,fnum)

snum = tcount + ctcount + ucount + speccount

// trivial approach without further checks:
if (snum < fnum) server_cmd("realbot add")
if (snum > fnum) server_cmd("realbot remove 1")
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#5)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: New AMX Plug In For RealBot - 09-03-2004

Well, I've integrated those counters into the current versions of my plugins for joebot, yapb and into the multibot plugin .

What I wanna do next is enhancing the multibot plugin that it no longer depends on other plugins. It will read all neccessary informations at runtime from a configuration file and no more editing of the plugin will be required. That way it should be easier to be adopted to other bots .
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#6)
Hacker Harry
Guest
 
Status:
Posts: n/a
Default Re: New AMX Plug In For RealBot - 09-03-2004

Quote:
Originally Posted by |3FX| Bliss
Hello Everyone,
I have just completed a plugin for AMX that maks a AMX List of all the RealBot WIP Commands.
[...]
hi and thank you for writing this nice script.

i've taken a look at the sources and found that
one only needs "u" accesslevel, then he/she should be
able to use the Realbot commands... is that correct?

Best Bytes®,
Harry
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#7)
|3FX| Bliss
Member
 
Status: Offline
Posts: 13
Join Date: Feb 2004
Default Re: New AMX Plug In For RealBot - 09-03-2004

Yes it is set for "u" menu access.

Bliss
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#8)
Hacker Harry
Guest
 
Status:
Posts: n/a
Default Re: New AMX Plug In For RealBot - 10-03-2004

thank you.

hmm.... i'll have to fiddle a bit more with this.
since i cant get the menuitems work...
(some grayed out, some menus empty...still don't get it)

thanx anyway!

Best Bytes®,
Harry
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#9)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: New AMX Plug In For RealBot - 10-03-2004

Grayed out menu items are caused by the "\d" sequence in the menu text.
You also have to enable the keys for each menu item...
  
Reply With Quote
Re: New AMX Plug In For RealBot
Old
  (#10)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: New AMX Plug In For RealBot - 10-03-2004

I've re-ported my plugin to realbot. Download it at my homepage (as usual).
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com