Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public CheckAccountUserName(extraid)
- {
- cache_get_data(rows, fields, handle);
- if(rows == 0)
- {
- new charCounts[5];
- GetPlayerName(extraid, szPlayerName, MAX_PLAYER_NAME);
- for(new n; n < MAX_PLAYER_NAME; n++)
- {
- switch(szPlayerName[n])
- {
- case '[', ']', '.', '$', '(', ')', '@', '=': charCounts[1]++;
- case '_': charCounts[0]++;
- case '0' .. '9': charCounts[2]++;
- case 'a' .. 'z': charCounts[3]++;
- case 'A' .. 'Z': charCounts[4]++;
- }
- if(charCounts[0] == 0 || charCounts[0] >= 3)
- {
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
- }
- else if(charCounts[1] >= 1)
- {
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
- }
- else if(charCounts[2] >= 1)
- {
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
- }
- else if(charCounts[3] == strlen(szPlayerName) - 1)
- {
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
- }
- else if(charCounts[4] == strlen(szPlayerName) - 1)
- {
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
- }
- else
- {
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_WHITE, "");
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
- }
- }
- }
- else
- {
- if(tempbanat[extraid] == 0)
- {
- InterpolateCameraPos(extraid, 1689.3907,-1732.2874,20.3228,1062.3051,-1732.3589,24.6772, 10000, CAMERA_MOVE);
- InterpolateCameraLookAt(extraid,1062.3051,-1732.3589,24.6772,1062.3051,-1732.3589,24.6772, 10000, CAMERA_MOVE);
- SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
- ShowPlayerDialog(extraid, 55, DIALOG_STYLE_PASSWORD, "Logare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB" !\n\nVa rugam sa scrieti parola mai jos pentru a va conecta pe server.", "Login", "Cancel");
- SetPlayerWeather(extraid, 0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement