URGENT HELP, NOT LOGGED = KICK
#2

pawn Код:
new
    bool: User_Logged_In[ MAX_PLAYERS char ]
;

// OnPlayerConnect:
User_Logged_In{ playerid } = false;

// When they are logged in to their account:
User_Logged_In{ playerid } = true;

// When it's time to login:
SetTimerEx( "OnPlayerLoginTime", 10000, false, "i", playerid );

forward OnPlayerLoginTime( playerid );
public OnPlayerLoginTime( playerid )
{
    if( !User_Logged_In{ playerid } ) Kick( playerid );
}
EDIT: pds2k12, none of them will work. It does not matter what value you're going to return. Neither continue; would work since there's not any loop to skip.
Reply


Messages In This Thread
URGENT HELP, NOT LOGGED = KICK - by Alex_Obando - 19.10.2013, 14:45
Re: URGENT HELP, NOT LOGGED = KICK - by Konstantinos - 19.10.2013, 14:50
Re: URGENT HELP, NOT LOGGED = KICK - by Patrick - 19.10.2013, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)