Raised This Month: $ Target: $400
 0% 

Kick a random bot.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
althor
New Member
Join Date: Oct 2012
Old 01-18-2013 , 20:32   Kick a random bot.
Reply With Quote #1

Hello everyone. I am trying to kick a bot The first one it finds is fine. It does work how ever. It kicks the bot and If a player try's to connect to the server it wants to kick them no matter how many times they try to connect. Any help would be appreciated.

Here is the code I am using
Code:
public kickrandombot(id)
{
    //bots
    new Players[32]
    new playerCount, userid
    get_players(Players, playerCount, "d")
    
    for (new i=0; i<playerCount; i++)
    {    
        userid = get_user_userid(Players[i])
        
        server_cmd("kick #%d", userid)
        break;
    }
}

Last edited by althor; 01-18-2013 at 21:28.
althor is offline
 



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


All times are GMT -4. The time now is 13:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode