Raised This Month: $ Target: $400
 0% 

Bot in kz_dajrokan


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-06-2010 , 13:40   Re: Bot in kz_dajrokan
Reply With Quote #1

Edit: nevermind
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.

Last edited by GXLZPGX; 06-06-2010 at 13:43.
GXLZPGX is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-06-2010 , 13:52   Re: Bot in kz_dajrokan
Reply With Quote #2

Replace :

PHP Code:
public client_disconnect(id) {

    if (
kz_bot)
        if (
get_playersnum(1) == 2)
            
mi_bot_disconnect()

        return 
PLUGIN_CONTINUE

With :
PHP Code:
public client_disconnect(id)
{
    if (
kz_bot)
    {
        new 
iPlayers[32], iNum
        get_players
(iPlayersiNum"ch")
        
iNum-- // disconnected player is still counted, so decrement iNum
        
if(iNum >= 2)
        {
            
mi_bot_disconnect()
        }
    }

Also, you should set kz_bot to false or 0 in mi_bot_disconnect
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 05:24.


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