View Full Version : Reconnect Bots?
jason
08-10-2006, 01:24 AM
So I was wondering if its possible to get plugin made so bots will reconnect themselves after they hit the 200 kill range. I have a plugin already so humans reconnect after 200 kills so the server doesnt crash. Late in the mourning around 4-5am the server will crash and reboot because their are only a few people on and bots will get high kills.
_________
Cya on the BattleField!!!!
Wilson [29th ID]
08-10-2006, 03:55 AM
Look inside the plugin for the humans reconnecting. Where it has the line client_cmd(id, "reconnect") (or whatever causes the human to reconnect) you can add the following code:
if (is_user_bot(id))
{
dod_set_user_kills(id, 0, 1)
dod_set_user_score(id, 0, 1)
dod_set_pl_deaths(id, 0, 1)
}
else
{
// Whatever normally caused the human to reconnect
}
jason
08-10-2006, 02:10 PM
Thanks for the quick reply....I will try to mess with it and see where I can get!
vBulletin® v3.8.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.