Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == D_REGISTRACIJA)
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- new string[300];
- if(strlen(inputtext) >= 5 && strlen(inputtext) <= 25)
- {
- new INI:File = INI_Open(Korisnici(playerid));
- INI_WriteInt(File, "Admin", 0);
- INI_WriteInt(File, "Ubistava", 0);
- INI_WriteInt(File, "Smrti", 0);
- INI_WriteInt(File, "Novac", 0);
- INI_WriteInt(File, "Skor", 0);
- INI_WriteInt(File, "Mutiran", 0);
- INI_WriteInt(File, "Warn", 0);
- INI_WriteInt(File, "Vip", 0);
- INI_Close(File);
- UlogovanProvera[playerid] = 1;
- SpawnPlayer(playerid);
- format(string,sizeof(string),""SPLAVA"IS:RP | "SIVA"Registracija uspesna | Registrovali ste se sa imenom "CRVENA"%s "SIVA"i passwordom "ZUTA"%s!",ImeIgraca(playerid),inputtext);
- SCM(playerid,-1,string);
- }
- else
- {
- format(string, sizeof(string), ""ZUTA"|------------------ Ime Servera v0.1 ------------------|\n\n"BELA"Dobrodosao "CRVENA"%s "BELA"na server\n"BELA"Upisite vas password da se registrujete!\n\n"ZUTA"|----------------------------------------------------------------------------|",ImeIgraca(playerid));
- SPD(playerid, D_REGISTRACIJA, DIALOG_STYLE_PASSWORD, ""SPLAVA"Registracija", string, "Registracija", "Izlaz");
- SCM(playerid,-1,""CRVENA"[IS:RP] "SIVA"Lozinka mora sadrzati minimum 5 znakova, a maximum 25!");
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////
- if(dialogid == D_LOGIN)
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- {
- INI_ParseFile(Korisnici(playerid), "UcitavanjeIgraca", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid,PlayerInfo[playerid][pNovac]);
- SetPlayerScore(playerid,PlayerInfo[playerid][pSkor]);
- UlogovanProvera[playerid] = 1;
- SpawnPlayer(playerid);
- }
- new string[300];
- {
- format(string, sizeof(string), ""ZUTA"|------------------ Ime Servera v0.1 ------------------|\n\n"BELA"Dobrodosao "CRVENA"%s "BELA"na server\n"BELA"Upisite vas password da se ulogujete!\n\n"ZUTA"|----------------------------------------------------------------------------|",ImeIgraca(playerid));
- SPD(playerid, D_LOGIN, DIALOG_STYLE_PASSWORD, ""SPLAVA"Login", string, "Login", "Izlaz");
- SCM(playerid,-1,""CRVENA"[IS:RP] "SIVA"Pogresili ste password, unesite tacan password!");
- SCM(playerid,-1,""CRVENA"[IS:RP] "SIVA"Ukoliko pogresite password 4 puta bicete kikovani!");
- PLogin[playerid] ++;
- if(PLogin[playerid] == 4) { SCM(playerid,-1,""ZUTA"Kikovani ste zbog pogresne lozinke!"); Kick(playerid); }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment