Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerRegister(playerid, password[])
- {
- if(IsPlayerConnected(playerid))
- {
- MySQLCheckConnection();
- new playername3[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername3, sizeof(playername3));
- new newaccountsqlid = MySQLCreateAccount(playername3, password);
- if (newaccountsqlid != 0)
- {
- PlayerInfo[playerid][pSQLID] = newaccountsqlid;
- strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
- OnPlayerDataSave(playerid);
- ShowPlayerDialog(playerid,5,DIALOG_STYLE_PASSWORD,"{EE7575}Autentificare","{FFFFFF}Contul a fost inregistrat !\nVa rugam sa va introduceti parola in casuta de login\n\n\n\n\t\t\t\t{FFFF9E}LinkMania's SA:MP Lands","Logare","Iesire");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "S-a produs o eroare in timpul crearii contului. Veti fi deconectat de la server.");
- Kick(playerid);
- return 0;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment