16.12.2011, 15:11
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"o urGame Roleplay","Welcome to ourGame Roleplay \n For pertient general information type /help \n Register or login to start playing. \n Default chat is local. Type /ooc [message] to talk globally \n Use /report to contact admins \n Forums: www.f.ourgames.ro","Close","");
/*
TextDrawShowForPlayer(playerid, TextNextGen);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
*/
KillTimer(OnPlayerConnectTimer[playerid])
OnPlayerConnectTimer[playerid] = SetTimerEx("HideConnectMessage", 10000, 0, "i", playerid); // 10 seconds
// REGISTRATION
if (!udb_Exists(PlayerName(playerid))) // If player is not registered
{
GetPlayerName(playerid, pname, sizeof(pname));
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) {FFFFFF} You are not registered, please take some of your time to do so.");
format(prpstring, sizeof(prpstring), "{FAFAFA}Name: {FF0000}%s\n{FAFAFA}Enter your {FF0000}password {FAFAFA}below", pname);
ShowPlayerDialog(playerid,7000,DIALOG_STYLE_INPUT, "Registration",prpstring,"Register","Leave");
}else{ // If the player is registered
ForceClassSelection(playerid);
// format(prpstring, sizeof(prpstring), "{FAFAFA}Username: {FF0000}%s\n{FAFAFA}Enter your {FF0000}password {FAFAFA}below to login", pname);
// ShowPlayerDialog(playerid,7001,DIALOG_STYLE_INPUT, "Login into your account",prpstring,"Login","Leave"); // or login
}
/*
TextDrawShowForPlayer(playerid, TextNextGen);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
*/
KillTimer(OnPlayerConnectTimer[playerid])
OnPlayerConnectTimer[playerid] = SetTimerEx("HideConnectMessage", 10000, 0, "i", playerid); // 10 seconds
// REGISTRATION
if (!udb_Exists(PlayerName(playerid))) // If player is not registered
{
GetPlayerName(playerid, pname, sizeof(pname));
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) {FFFFFF} You are not registered, please take some of your time to do so.");
format(prpstring, sizeof(prpstring), "{FAFAFA}Name: {FF0000}%s\n{FAFAFA}Enter your {FF0000}password {FAFAFA}below", pname);
ShowPlayerDialog(playerid,7000,DIALOG_STYLE_INPUT, "Registration",prpstring,"Register","Leave");
}else{ // If the player is registered
ForceClassSelection(playerid);
// format(prpstring, sizeof(prpstring), "{FAFAFA}Username: {FF0000}%s\n{FAFAFA}Enter your {FF0000}password {FAFAFA}below to login", pname);
// ShowPlayerDialog(playerid,7001,DIALOG_STYLE_INPUT, "Login into your account",prpstring,"Login","Leave"); // or login
}