Wait 10 seconds to connect to my server
#1

Hello guys.

I want to do so when someone connect to my server it's says ''Please Wait''(10 sec) . Player must wait 10 sec to connect and see the request class section.


Thanks for help.
Reply
#2

I don't think you can stop them from connecting, but you can stop them from moving after spawn if you'd like.

I don't see the point in this though.
Reply
#3

It's possible. You can start a Timer on connecting and set a variable to false.
Timer to 10 seconds, after 10 seconds set the variable to true.
Then check in OnPlayerRequestSpawn if the variable is true, if it's not:
return false;
Then he is not able to spawn.
Reply
#4

Can you make me this script please? I need this. I don't know good how to make it.
Reply
#5

Dialogs perhaps? OnPlayerConnect make a dialog. IDK...
Reply
#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
#7

I don't want any dialog.
This 10 sec i will show player the welcome message that i will make soon.
Thanks dex123 i will try this and let you know if it's working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)