Ok, RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX,"\t", "{0DC013}Salut! Mai intai, trebuie sa raspunzi la cateva intrebari, deci: \n\n{77A3F0}1. Esti baiat sau fata? (Alege sexul).","Baiat", "Fata");
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1742.83, -1862.27, 13.57);
SetPlayerFacingAngle(playerid, 3.41);
SetPlayerCameraPos(playerid, 1230.90, -1287.72, 254.17);
SetPlayerCameraLookAt(playerid, 1227.04, -1289.05, 251.27);
SetPlayerVirtualWorld(playerid, (playerid + 1));
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}RedzMax: {FFFFFF}Ai fost dat afara pentru ca nu ai acceptat termenii si conditiile.");
Kick(playerid);
return 1;
}
if(dialogid == 700)
{
if(response)
{
PlayerInfo[playerid][pSex] = 1;
SetPlayerSkin(playerid, 29);
Update(playerid, pSexx);
PlayerInfo[playerid][pModel] = 29;
RegistrationStep[playerid] = 2;
ShowPlayerDialog(playerid,701,DIALOG_STYLE_INPUT," \t","{F9F7CE}OK, deci esti baiat.\n\n{77A3F0}2. Cati ani ai?(7-50)","OK","");
return 1;
}
else
{
PlayerInfo[playerid][pSex] = 2;
SetPlayerSkin(playerid, 193);
Update(playerid, pSexx);
RegistrationStep[playerid] = 2;
ShowPlayerDialog(playerid,701,DIALOG_STYLE_INPUT," \t","{F9F7CE}OK, deci esti fata. \n\n{77A3F0}2. Cati ani ai?(7-50)","OK","");
return 1;
}
}
if(dialogid == 720)
{
if(response)
{
PlayerInfo[playerid][pSex] = 1;
SetPlayerSkin(playerid, 170);
Language[playerid] = 2;
Update(playerid, pSexx);
ShowPlayerDialog(playerid,721,DIALOG_STYLE_INPUT," \t","{F9F7CE}Ok, deci esti baiat.\n\n{77A3F0}2. Cati ani ai(7-50)","OK","");
return 1;
}
PlayerInfo[playerid][pSex] = 2;
Update(playerid, pSexx);
SetPlayerSkin(playerid, 193);
Language[playerid] = 2;
ShowPlayerDialog(playerid,721,DIALOG_STYLE_INPUT," \t","{F9F7CE}Ok,deci esti fata.\n\n{77A3F0}2. Cati ani ai?(7-50)","OK","");
return 1;
}
if(dialogid == 721)
{
if(response)
{
new varsta = strval(inputtext);
if(varsta >6 && varsta<51)
{
format(string,256,"Ok, deci ai %d ani.",varsta);
SendClientMessage(playerid,Albui,string);
PlayerInfo[playerid][pAge] = varsta; Update(playerid, pAgex);
Language[playerid] = 3;
//OnPlayerUpdateEx(playerid);
format(string, 256, "{F9F7CE}Ok, deci ai %d ani.\n\n{77A3F0}Scrie mai jos in ce oras locuiesti.",varsta);
ShowPlayerDialog(playerid,722,DIALOG_STYLE_INPUT," \t",string,"OK","");
}
else
{
ShowPlayerDialog(playerid,721,DIALOG_STYLE_INPUT," \t","{77A3F0}2. Cati ani ai?(7-50)","OK","");
}
}
}
if(dialogid == 701)
{
if(response)
{
new varsta = strval(inputtext);
if(varsta >6 && varsta<51)
{
PlayerInfo[playerid][pAge] = varsta; Update(playerid, pAgex);
RegistrationStep[playerid] = 3;
//OnPlayerUpdateEx(playerid);
format(string, 256, "{F9F7CE}Ok, deci ai %d ani.\n\n{77A3F0}Scrie mai jos in ce oras locuiesti.",varsta);
ShowPlayerDialog(playerid,702,DIALOG_STYLE_INPUT," \t",string,"OK","");
}
else return ShowPlayerDialog(playerid,701,DIALOG_STYLE_INPUT," \t","{77A3F0}2. Cati ani ai?(7-50)","OK","");
}
}
if(dialogid == 702)
{
if(response)
{
if(strlen(inputtext) < 3 || strlen(inputtext) > 70)
{
SendClientMessage(playerid, COLOR_GRAD4, "Numele orasului nu poate fi mai lung de 70 litere sau mai mic de 3 litere!");
ShowPlayerDialog(playerid,702,DIALOG_STYLE_INPUT," \t","3. Unde locuiesti? Scrie mai jos in ce oras locuiesti:","OK","");
return 1;
}
strmid(PlayerInfo[playerid][pOrigin], inputtext, 0, strlen(inputtext), 999);
Update(playerid, pOriginx);
format(string, 256, "{F9F7CE}OK, deci esti din %s. Care este EMail-ul tau?",inputtext);
ShowPlayerDialog(playerid, 711, DIALOG_STYLE_INPUT,"\t", string,"OK", "");
}
}
if(dialogid == 711)
{
if(response)
{
if(strlen(inputtext) < 3 || strlen(inputtext) > 59)
{
SendClientMessage(playerid, COLOR_GRAD4, "EMail-ul nu poate fi mai lung de 59 litere sau mai mic de 3 litere!");
ShowPlayerDialog(playerid,711,DIALOG_STYLE_INPUT," \t","4. Care este EMail-ul tau? Scrie mai jos EMail-ul tau:","OK","");
return 1;
}
strmid(PlayerInfo[playerid][pEmail], inputtext, 0, strlen(inputtext), 999);
mysql_query(inputtext); // saving email
format(string, 256, "{F9F7CE}OK, deci EMail-ul tau este %s. Apasa 'OK' pentru a termina inregistrarea.",inputtext);
ShowPlayerDialog(playerid, 710, DIALOG_STYLE_MSGBOX,"\t", string,"OK", "");
}
}
if(dialogid == 710)
{
if(response)
{
RegistrationStep[playerid] = 0; // 14332