How kick clients-bots (no show for SCORE-MENU) have ping: ZMBI (status)?
Ty)
Printable View
How kick clients-bots (no show for SCORE-MENU) have ping: ZMBI (status)?
Ty)
free_slot(<clientnum>)
Module: libcod
Summary:
Sets the client's state to CS_FREE (only works for bots).
Required Args:
1 : <clientnum> The bot's client number.
CAPTAIN OBVIOUS? :)
I dont know GetEntityNumber() bots.
I want to iterate over the array players and kick bots where ping: ZMBI
p.s if(players[i] getping()... no job(
then kick the damn bots BEFORE changing map...
Izno, I did so)
Mitch added if (player getAddressType() == 0): http://killtube.org/showthread.php?1...ll=1#post10374
Probably if (player getClientState() == 1) would work too:
Code:typedef enum {
0 = CS_FREE, // can be reused for a new connection
1 = CS_ZOMBIE, // client has been disconnected, but don't reuse connection for a couple seconds
2 = CS_CONNECTED, // has been assigned to a client_t, but no gamestate yet
3 = CS_PRIMED, // gamestate has been sent, but client hasn't sent a usercmd
4 = CS_ACTIVE // client is fully in game
} clientState_t;
Doesnt work, zmbi players arent script ents. Would require getaddresstype to take a slot number as argument
I wanted to do well, but the game does not see these players :( and the place they occupy! :( :( :( :( :(
I did EndMap () array bulkhead and the exclusion of certain parameters of the players!
Yes, I did, but occasionally writes to me that something like this:
From terminal server:
Code:Client 2 is not player.
Show your code
PHP Code:
EndMap()
{
kickbots();
/*
....
*/
}
kickbots() //call in EndMap
{
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
player=players[i];
if((player.name=="^9nL^4.^2[^7Anti-Cheat^2]" || player.name=="^9nL^4.^2[^7Control-Chat^2]") && player.boty)
{
getid = player getEntityNumber();
kick(getid);
free_slot(getid);
}
}
}
Even your || && is shitty. It will kick ANY player with anti-cheat name, not just the bots.
Maybe makePHP Code:
Connect()
{
self.boty=false;
}
addbots()
{
bot.boty=true;
}
PHP Code:
if(self getPing()=="999")