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

Go Back   .:: Bots United ::. > Cyborg Factory > GrogBot
GrogBot A bot for Pirates, Vikings and Knights by Akz Pirates, Vikings and Knights

Reply
 
Thread Tools
GrogBot Admin [AMXX plugin]
Old
  (#1)
MadKat
Member
 
Status: Offline
Posts: 2
Join Date: Sep 2005
Default GrogBot Admin [AMXX plugin] - 14-09-2005

Hey Akz, I'm wondering if there is any proper way to remove the bots from the server. I know that they can be kicked like any normal player, but that's not really an easy thing to deal with while writing an AMX plugin. I want it operate correctly with all the GrogBot tags.

Currently, I'm kicking all players with 0 ping to get rid of bots, but it's not entirely reliable, and it kicks idle players who haven't joined teams.

AMX features the ability to look up fake players, but for some reason it's not returning GrogBots, so I've ruled out that option.

Any ideas would be most appreciated.
   
Reply With Quote
Re: GrogBot Admin [AMXX plugin]
Old
  (#2)
Akz
Creator of GrogBot
 
Akz's Avatar
 
Status: Offline
Posts: 91
Join Date: Jan 2004
Default Re: GrogBot Admin [AMXX plugin] - 14-09-2005

Honestly said, I know nothing about AMX scripting, but if I had to do the same with a MetaMod plugin, I would check if the fakeclient flag is set for the player entity or not. I think that is exactly what AMX does to detect bots though, since that is the only proper way to do it. I don't know why it wouldn't work with GrogBots however.


GrogBot - A bot for Pirates, Vikings and Knights HL modification.

http://grogbot.bots-united.com
   
Reply With Quote
Re: GrogBot Admin [AMXX plugin]
Old
  (#3)
MadKat
Member
 
Status: Offline
Posts: 2
Join Date: Sep 2005
Default Re: GrogBot Admin [AMXX plugin] - 15-09-2005

Well, having looked into it some more, I found a function that does what I want, but there is an anomaly happening that I cannot explain. The function is_user_bot( index ) checks to see if the player (index) is a fakeclient. If they are, then it returns true.

Well, I'm using it to check through the player index list (along with a function to make sure the player is currently online) to find the bots and kick them. It works for the most part, but there will be an occassional bot that will not get kicked. If I execute the command again, the same player will still get skipped over.

I'm wondering if there is any possibility that the actual bot code could be producing this problem. If you'd look into it, I'd most appreciate it, Akz.
   
Reply With Quote
Reply


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

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 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com