Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- gQuery[0] = EOS;
- if(playertextid == DSTdsP[playerid][0])
- {
- if(APlayerData[playerid][PlayerLevel] < 6) return true;
- switch(APlayerData[playerid][pLimba])
- {
- case 0: format(gQuery, 45, "Modify price\nModify stock");
- case 1: format(gQuery, 45, "Modifica pret\nModifica stock");
- }
- ShowPlayerDialog(playerid, DIALOG_EDITDEALER, DIALOG_STYLE_LIST, "Dealer options", gQuery, "Choose", "Cancel");
- CancelSelectTextDraw(playerid);
- return true;
- }
- if(playertextid == RegisterPTD[playerid][0])
- {
- if(RegisterStep[playerid] > 1) return true;
- switch(GetPVarInt(playerid, "PlayerLanguage"))
- {
- case 0: format(gQuery, 425, ""W"You are not registered yet on this server.\n\
- Enter your password below to register.\n\
- By registering all your statistics will be saved in server database.\n\
- "RE"- "W"Your password must contain at least 6 characters.\n\
- "RE"- "W"Remember your password, you will need it for your next login.");
- case 1: format(gQuery, 425, ""W"Nu esti inregistrat pe acest server.\n\
- Introdu o parola pentru a te inregistra.\n\
- Dupa inregistrare, toate statisticile tale vor fi salvate in baza de date a serverului.\n\
- "RE"- "W"Parola ta trebuie sa contina minim 6 caractere.\n\
- "RE"- "W"Retine parola, vei avea nevoie de ea pentru a te conecta.");
- }
- ShowPlayerDialog(playerid, DialogRegister, DIALOG_STYLE_INPUT, "Account password", gQuery, "Submit", "Cancel");
- return true;
- }
- if(playertextid == RegisterPTD[1][playerid])
- {
- switch(GetPVarInt(playerid, "PlayerLanguage"))
- {
- case 0: ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Character Gender", "Please select your character gender:", "Male", "Female");
- case 1: ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Character Gender", "Te rugam sa selectezi sexul caracterului tau:", "Masculin", "Feminin");
- }
- return true;
- }
- if(playertextid == RegisterPTD[2][playerid])
- {
- if(RegisterStep[playerid] > 2) return true;
- switch(GetPVarInt(playerid, "PlayerLanguage"))
- {
- case 0: format(gQuery, 175, "Please type in below your account email.\nPlease type in a valid email, you'll need it for further informations, such as password recovery.");
- case 1: format(gQuery, 175, "Introdu mai jos adresa ta de email.\nTe rugam sa introduci o adresa valida, vei avea nevoie de ea pentru informatii viitoare, precum recuperarea parolei.");
- }
- ShowPlayerDialog(playerid, DIALOG_MAIL, DIALOG_STYLE_INPUT, "Account email", gQuery, "Submit", "Cancel");
- return true;
- }
- if(playertextid == RegisterPTD[3][playerid])
- {
- if(RegisterStep[playerid] > 3) return true;
- RegisterStep[playerid] = 4;
- switch(GetPVarInt(playerid, "PlayerLanguage"))
- {
- case 0: ShowPlayerDialog(playerid, DIALOG_REFFERAL, DIALOG_STYLE_INPUT, "Account Refferal", ""W"Please type in your refferal id or name if a player has brought you on the server.\nIf no one brought you press {FF0000}Skip"W".", "Submit", "Skip");
- case 1: ShowPlayerDialog(playerid, DIALOG_REFFERAL, DIALOG_STYLE_INPUT, "Account Refferal", ""W"Introdu numele sau id-ul jucatorului care te-a adus pe server.\nDaca nu te-a adus nimeni apasa {FF0000}Skip"W".", "Submit", "Skip");
- }
- return true;
- }
- if(playertextid == RegisterPTD[8][playerid])
- {
- if(RegisterStep[playerid] < 3)
- {
- switch(GetPVarInt(playerid, "PlayerLanguage"))
- {
- case 0: SCM(playerid, COLOR_ERROR, "(Warning) "W"Password, gender and email fields are required.");
- case 1: SCM(playerid, COLOR_ERROR, "(Warning) "W"Campurile parola, sex si email sunt obligatorii.");
- }
- return true;
- }
- OnPlayerRegister(playerid, RegisterPass[playerid]);
- HideRegisterTextdraw(playerid);
- DestroyRegisterTextdraw(playerid);
- switch( APlayerData[playerid][ pLimba ] )
- {
- case 0: format(gQuery, 144, "{FFFFFF}Welcome back, {008000}%s{FFFFFF}!\n\
- Type in your password account:\n", GetName(playerid));
- case 1: format(gQuery, 144, "{FFFFFF}Bine ai revenit, {008000}%s{FFFFFF}!\n\
- Tasteaza in casuta de mai jos parola contului tau:\n", GetName(playerid));
- }
- ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_INPUT, "Account Login", gQuery, "Submit", "Cancel");
- return true;
- }
- return false;
- }
Add Comment
Please, Sign In to add comment