Raised This Month: $ Target: $400
 0% 

possible bug in admin flags when player times out?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-22-2022 , 22:53   Re: possible bug in admin flags when player times out?
Reply With Quote #6

You can easily wait for both to be true like this:

PHP Code:
new Bool:g_bInServerBool:g_bAuthorized

public client_putinserver(id)
{
    
g_bInServer true;
    if( 
g_bInServer && g_bAuthorized )
    {
        
eventAuthorizedAndPutInServer(id)
    }
}

public 
client_authorized(id)
{
    
g_bAuthorized true;
    if( 
g_bInServer && g_bAuthorized )
    {
        
eventAuthorizedAndPutInServer(id)
    }
}

eventAuthorizedAndPutInServer(id)
{
    
// Your code here

Regarding the order of plugin configuration files, plugins.ini will always load first.
__________________

Last edited by fysiks; 09-22-2022 at 22:54.
fysiks is offline
 


Thread Tools
Display Modes

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 20:06.


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