Dialogs when the player connects.
#3

Keep in mind that returning 0 prevents the player from spawning in OnPlayerRequestSpawn.

pawn Код:
// global variable:
new
    bool: Logged_In[ MAX_PLAYERS char ]
;

// OnPlayerConnect:
Logged_In{ playerid } = false;

// When a player logins:
Logged_In{ playerid } = true;

// OnPlayerRequestSpawn
if( !Logged_In{ playerid} )
{
    SendClientMessage(playerid, -1, "Please login first!");
    return 0;
}
Reply


Messages In This Thread
Dialogs when the player connects. - by Stinged - 11.11.2013, 17:37
Re: Dialogs when the player connects. - by -Prodigy- - 11.11.2013, 17:55
Re: Dialogs when the player connects. - by Konstantinos - 11.11.2013, 18:06
Re: Dialogs when the player connects. - by Stinged - 11.11.2013, 18:21
Re: Dialogs when the player connects. - by Konstantinos - 11.11.2013, 20:19

Forum Jump:


Users browsing this thread: 2 Guest(s)