.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   GrogBot (http://forums.bots-united.com/forumdisplay.php?f=54)
-   -   GrogBot Admin [AMXX plugin] (http://forums.bots-united.com/showthread.php?t=4471)

MadKat 14-09-2005 03:41

GrogBot Admin [AMXX plugin]
 
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.

Akz 14-09-2005 16:29

Re: GrogBot Admin [AMXX plugin]
 
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.

MadKat 15-09-2005 11:54

Re: GrogBot Admin [AMXX plugin]
 
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.


All times are GMT +2. The time now is 18:17.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.