Raised This Month: $ Target: $400
 0% 

get_players in client_disconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-06-2012 , 04:59   get_players in client_disconnect
Reply With Quote #1

So I'm trying to reset the server password when everyone lefts the server. The problem is it doesn't work for some reason.

PHP Code:
public client_disconnectid )
{
    new 
Players32 ], iNum
    get_players
PlayersiNum"ch" )
    
    if( !
iNum )
        
_e_AllPlayersLeftid )
}

public 
_e_AllPlayersLeftLastConnectedPlayer )
{
    
server_cmd"sv_password fuckoff" )

Nothing happens, the password still remains unchanged. What could be wrong?

Edit: Is the player still "in server" when get_players() gets called? I know you cannot execute anything on him though.

Last edited by Backstabnoob; 05-06-2012 at 05:01.
Backstabnoob 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 00:27.


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