22.08.2010, 08:00
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;
}