SA-MP Forums Archive
Wait 10 seconds to connect to my server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wait 10 seconds to connect to my server (/showthread.php?tid=170088)



Wait 10 seconds to connect to my server - Cypress - 21.08.2010

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.


Re: Wait 10 seconds to connect to my server - Scenario - 21.08.2010

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.


Re: Wait 10 seconds to connect to my server - r0b - 21.08.2010

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.


Re: Wait 10 seconds to connect to my server - Cypress - 22.08.2010

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


Re: Wait 10 seconds to connect to my server - ViruZZzZ_ChiLLL - 22.08.2010

Dialogs perhaps? OnPlayerConnect make a dialog. IDK...


Re: Wait 10 seconds to connect to my server - dax123 - 22.08.2010

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;
}



Re: Wait 10 seconds to connect to my server - Cypress - 22.08.2010

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.