17.03.2012, 06:04
so when I connect i go straight to the class selection...
pawn Код:
public OnPlayerConnect( playerid )
{
new
name[ MAX_PLAYER_NAME ]
;
GetPlayerName( playerid, name, sizeof( name ) );
if ( BUD::IsNameRegistered( name ) == true )
{
SendClientMessage(playerid, 0xFFFFFFAA, " Welcome back to FFS GTA'S Classic TDM ");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Login","Welcome to FFS Tactical TDM please register","Login","Cancel");
}
else
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD,"Register","You are NOT registered.\r\nPlease type your desired password below:","Login","Cancel");
}
return 1;
}