Wait 10 seconds to connect to my server
#6

example:
pawn Код:
new NOCONNECT[MAX_PLAYERES];
public OnPlayerConnect( playerid )
{
    NOCONNECT[playerid] = 1;
    SetTimer( "Allow_Connect", 10000, 0, "i", playerid );
}
forward public Allow_Connect( playerid );
public Allow_Connect( playerid ) NOCONNECT[ playerid] = 0;
public OnPlayerRequestSpawn( playerid )
{
    if( NOCONNECT[ playerid ] )
    {
        SendClientMessage( playerid, 0xFF0000AA, "* JUST KEEP QUIET AND WAIT, DUDE");
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Wait 10 seconds to connect to my server - by Cypress - 21.08.2010, 21:57
Re: Wait 10 seconds to connect to my server - by Scenario - 21.08.2010, 22:17
Re: Wait 10 seconds to connect to my server - by r0b - 21.08.2010, 22:49
Re: Wait 10 seconds to connect to my server - by Cypress - 22.08.2010, 07:45
Re: Wait 10 seconds to connect to my server - by ViruZZzZ_ChiLLL - 22.08.2010, 07:50
Re: Wait 10 seconds to connect to my server - by dax123 - 22.08.2010, 08:00
Re: Wait 10 seconds to connect to my server - by Cypress - 22.08.2010, 08:06

Forum Jump:


Users browsing this thread: 7 Guest(s)