Код:
if(dialogid == 1244)
{
if(response)
{
if (gPlayerNalog[playerid] != 0)
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"{157DEC}Dobrodosli, molimo Vas Ulogujte se","Ukucajte {FF0000}password {FFFFFF}da bi se {157DEC}ulogovali{FFFFFF}.","Log-in","Izadji");
}
else
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"{157DEC}Dobrodosli, molimo Vas registrujte se","Upisite vas {FF0000}password {FFFFFF}da bi {157DEC}registrovali novi Nalog{FFFFFF}.","Registruj_se","Izadji");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has accepted the terms and conditions.",d,m,y,h,mi,s,sendername);
LoginLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
Kick(playerid);
}
}
if(dialogid == 333)
{
if(response)
{
if(listitem == 0)
{
strmid(Kucajted[playerid], "////", 0, strlen("////"), 255);
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Potvrdite vas{FF0000} password{FFFFFF}","Upisite vas sadasnji {FF0000}password{FFFFFF} ponovo, iz sigurnosnih razloga.","Ok","Otkazi");
}
else if(listitem == 1)
{
if(PlayerInfo[playerid][pLevel] >= 0)
{
new nxtlevel = PlayerInfo[playerid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new infostring[128];
if (PlayerInfo[playerid][pExp] < expamount)
{
format(infostring, 128, "** Treba vam %d Respect Poena, trenutno imate [%d] !",expamount,PlayerInfo[playerid][pExp]);
SendClientMessage(playerid, COLOR_GRAD1, infostring);
return 1;
}
else
{
format(string, sizeof(string), "~g~LEVEL UP~n~~w~Sada ste level %d", nxtlevel);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(playerid);
/*SafeGivePlayerMoney(playerid, (-costlevel));*/
PlayerInfo[playerid][pLevel]++;
if(PlayerInfo[playerid][pRegularRank] > 0)
{
PlayerInfo[playerid][pExp] -= expamount;
new total = PlayerInfo[playerid][pExp];
if(total > 0)
{
PlayerInfo[playerid][pExp] = total;
}
else
{
PlayerInfo[playerid][pExp] = 0;
}
}
else
{
PlayerInfo[playerid][pExp] = 0;
}
PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
GameTextForPlayer(playerid, string, 5000, 1);
format(infostring, 128, "* Dobili ste novi Level %d Kucajte /Nalog i izaberite upgrades da bi uradili odredjena unapredjenja (/upgrade)", nxtlevel);
SendClientMessage(playerid, COLOR_GRAD1, infostring);
format(infostring, 128, "* Imate %d neiskoriscenih Upgrade Poena",PlayerInfo[playerid][gPupgrade]);
SendClientMessage(playerid, COLOR_GRAD2, infostring);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /levelup (%d)",d,m,y,h,mi,s,sendername,nxtlevel);
CommandLog(string);
}
}
}
if(listitem == 2)
{
strmid(Kucajted[playerid], "////", 0, strlen("////"), 255);
ShowPlayerDialog(playerid, 338, DIALOG_STYLE_INPUT,"Potvrdite vas{FF0000} password{FFFFFF}","Upisite vas trenurni password, provera iz sigurnosnih razloga.","Ok","Otkazi");
}
else if(listitem == 3)
{
new regularrank = PlayerInfo[playerid][pRegularRank];
new playerlevel = PlayerInfo[playerid][pLevel];
new money = ScriptMoney[playerid];
new bankmoney = PlayerInfo[playerid][pNalog];
new punished = PlayerInfo[playerid][pPunished];
new ptime = PlayerInfo[playerid][pConnectSeconds];
new playersip[24];
GetPlayerIp(playerid, playersip, sizeof(playersip));
new info[466];
new string1[256];
new string2[210];
format(string1, sizeof(string1),"Hello, %s. \n\n\nVas ID je: %d, Vas Regular Rank je %d, Vas level je %d. \n\n\nVas IP je %s \nPoslednji put ste vidjeni %s, Vasa IP adresa bila je %s. \nRegistrovali ste vas Nalog %s.",sendername, playerid, regularrank, playerlevel, playersip, PlayerInfo[playerid][pLastSeen], PlayerInfo[playerid][pIP],PlayerInfo[playerid][pRegistredDate]);
format(string2, sizeof(string2),"\nBili ste kaznjavani %d puta od strane Administratora. \n\n\n Trenutno imate $%d u dzepu, i $%d u Banci. \n\n Vas ukupno provedeno vreme na serveru je: %d Sati | Total: %d Minuta | Total: %d Sekundi.",punished,money, bankmoney,(ptime / 3600), (ptime / 60), ptime);
format(info, 512,"%s%s",string1,string2);
ShowPlayerDialog(playerid, 337,DIALOG_STYLE_MSGBOX,"--------- Podaci o Nalog-u --------",info,"Ok","Otkazi");
}
else if(listitem == 4)
{
strmid(Kucajted[playerid], "////", 0, strlen("////"), 255);
ShowPlayerDialog(playerid, 340, DIALOG_STYLE_INPUT,"Potvrdite vas{FF0000} password{FFFFFF}","Upisite vas trenurni {FF0000}password{FFFFFF}, provera iz sigurnosnih razloga.","Ok","Otkazi");
}
else if(listitem == 5)
{
strmid(Kucajted[playerid], "////", 0, strlen("////"), 255);
ShowPlayerDialog(playerid, 343, DIALOG_STYLE_INPUT,"Potvrdite vas{FF0000} password{FFFFFF}","Upisite vas trenurni {FF0000}password{FFFFFF}, provera iz sigurnosnih razloga.","Ok","Otkazi");
}
else if(listitem == 6)
{
strmid(Kucajted[playerid], "////", 0, strlen("////"), 255);
ShowPlayerDialog(playerid, 350, DIALOG_STYLE_INPUT,"Potvrdite vas{FF0000} password{FFFFFF}","Upisite vas trenurni {FF0000}password{FFFFFF}, provera iz sigurnosnih razloga.","Ok","Otkazi");
}
else if(listitem == 7)
{
strmid(Kucajted[playerid], "////", 0, strlen("////"), 255);
ShowPlayerDialog(playerid, 351, DIALOG_STYLE_INPUT,"Potvrdite vas{FF0000} password{FFFFFF}","Upisite vas trenurni {FF0000}password{FFFFFF}, provera iz sigurnosnih razloga.","Ok","Otkazi");
}
}
}
if(dialogid == 334)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 334, DIALOG_STYLE_INPUT,"Probajte opet, molimo vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n Upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
}
if(dialogid == 10332)
{
if(response)
{
if(listitem == 0)
{
format(string, sizeof(string), " Imate $%d na vasem racunu.",PlayerInfo[playerid][pNalog]);
ShowPlayerDialog(playerid, 10335, DIALOG_STYLE_MSGBOX,"{157DEC}Stanje racuna",string,"Ok","");
}
else if(listitem == 1)
{
ShowPlayerDialog(playerid, 10333, DIALOG_STYLE_INPUT,"Podizanje Novca","Unesite sumu koju zelite da podignete sa vaseg racuna.","Podigni","Otkazi");
}
}
}
if(dialogid == 10336)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 10336, DIALOG_STYLE_INPUT,"Pogresan kod, pokusajte opet.","Molimo vas upisite vas {FF0000}PIN kod{FFFFFF}!","Ok","Nazad");
}
else
{
new pinkod = strval(inputtext);
if(PlayerInfo[playerid][pCardPin] == pinkod)
{
new info[] = "Stanje na racunu\nPodizanje novca";
ShowPlayerDialog(playerid, 10332, DIALOG_STYLE_LIST,"ATM Bankomat - Komercijalna Banka A.D.",info,"Ok","Otkazi");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"**Pogresan {FF0000}pin kod{FFFFFF}!");
}
}
}
}
if(dialogid == 10337)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 10337, DIALOG_STYLE_INPUT,"Pogresan kod, pokusajte opet.","Molimo vas upisite vas {FF0000}PIN kod{FFFFFF}!","Ok","Nazad");
}
else
{
new pinkod = strval(inputtext);
if(PlayerInfo[playerid][pCardPin] == pinkod)
{
format(string, sizeof(string), " Imate $%d na vasem racunu.",PlayerInfo[playerid][pNalog]);
ShowPlayerDialog(playerid, 10335, DIALOG_STYLE_MSGBOX,"{157DEC}Stanje racuna",string,"Ok","");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"**Pogresan {FF0000}pin kod{FFFFFF}!");
}
}
}
}
if(dialogid == 10334)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 10334, DIALOG_STYLE_INPUT,"Pogresan kod, pokusajte opet.","Molimo vas upisite vas {FF0000}PIN kod{FFFFFF}!","Ok","Nazad");
}
else
{
new pinkod = strval(inputtext);
if(PlayerInfo[playerid][pCardPin] == pinkod)
{
ShowPlayerDialog(playerid, 10333, DIALOG_STYLE_INPUT,"Podizanje Novca","Unesite sumu koju zelite da podignete sa vaseg racuna.","Podigni","Otkazi");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"**Pogresan {FF0000}pin kod{FFFFFF}!");
}
}
}
}
if(dialogid == 10333)
{
if(response)
{
new cashdeposit = strval(inputtext);
if(!strlen(inputtext))
{
format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo[playerid][pNalog]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pNalog] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "**Nemate toliko novca na racunu.");
return 1;
}
SafeGivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pNalog]=PlayerInfo[playerid][pNalog]-cashdeposit;
format(string, sizeof(string), " Podigao si $%d za svog racuna Ukupno: $%d ", cashdeposit,PlayerInfo[playerid][pNalog]);
SendClientMessage(playerid, COLOR_YELLOW, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /atmwithdraw ($%d)",d,m,y,h,mi,s,sendername, cashdeposit);
PayLog(string);
}
}
if(dialogid == 335)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
ShowPlayerDialog(playerid, 336, DIALOG_STYLE_PASSWORD,"Izaberite vas novi {FF0000}password{FFFFFF}","Upisite u polje ispod vas novi {FF0000}password{FFFFFF}","Ok","Nazad");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 336)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
ShowPlayerDialog(playerid, 342, DIALOG_STYLE_PASSWORD,"Izaberite vas novi {FF0000}password{FFFFFF}","Upisite vas novi {FF0000}password{FFFFFF} u polje i ispod","Ok","Nazad");
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 337)
{
if(response)
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 338)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete koristiti vase upgrade-e! (/upgrade)");
CanUseUpgrade[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 339)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete koristiti vase upgrade-e! (/upgrade)");
CanUseUpgrade[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 340)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete koristiti opciju za promenu imena! (/changename)");
CanChangeName[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 341)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete koristiti opciju za promenu imena! (/changename)");
CanChangeName[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 342)
{
if(response)
{
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
if(strcmp(Kucajted[playerid],inputtext, true ) == 0 )
{
new password2 = num_hash(inputtext);
PlayerInfo[playerid][pKey] = password2;
format(string, sizeof(string),"* Vas novi {FF0000}password{FFFFFF} je %s, uspesno ste promenili {FF0000}password{FFFFFF}",inputtext);
SendClientMessage(playerid, TEAM_GROVE_COLOR,string);
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 343)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete izaci iz organizacije! (/quitfaction)");
CanLeaveFaction[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 350)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete prodati kucu! (/sellhouse)");
SendClientMessage(playerid, COLOR_NICERED,"* Zapamtite, prodajom vase kuce gubite sve sto ste u njoj ostavili! Koristite opciju /uzmi i uzmite sve pre prodaje!!!");
CanSellHouse[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije.\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 351)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 335, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, Molimo Vas potvrdite","Niste upisali {FF0000}password{FFFFFF}! \n upisite {FF0000}password{FFFFFF} u polje ispod da bi potvrdili vas identitet.","Ok","Nazad");
}
else
{
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR,"* Sada mozete prodati vas biznis! (/sellbiz)");
CanSellBizz[playerid] = 1;
SetTimerEx("ResetUpgradeUse", 60000, true, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Pogresan {FF0000}password{FFFFFF}!");
}
}
}
else
{
ShowPlayerDialog(playerid, 333, DIALOG_STYLE_LIST,"Nalog","1\t Promenite {FF0000}password{FFFFFF} \n2\t Povecajte vas level \n3\t Omogucite koriscenje Upgrade poena \n4\t Informacije o vasem Nalogu \n5\t Omogucite promenu imena \n6\t Omogucite izlazak iz organizacije(Cena:50.000$)\n7\t Omogucite prodaju kuce\n8\t Omogucite prodaju biznisa","Izaberite","Otkazi");
}
}
if(dialogid == 1245)
{
if(response)
{
strmid(Kucajted[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Kucajted[playerid], "////", true))
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, molimo vas ulogujte se","Niste upisali {FF0000}password{FFFFFF}!\nUpisite vas {FF0000}password {FFFFFF}u polje ispod da bi se {157DEC}ulogovali","Log-in","Izadji");
}
else
{
OnPlayerLogin(playerid, inputtext);
}
}
else
{
Kick(playerid);
}
}
if(dialogid == 1246)
{
if(response == 1)
{
if(strlen(inputtext) < 3)
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, molimo vas registrujte se","{FF0000}Password{FFFFFF} koji ste uneli je previse {FF0000}kratak{FFFFFF}!\nUpisite vas {FF0000}password{FFFFFF} ispod i {157DEC}registrujte vas nalog{FFFFFF}.","Registruj se","Izadji");
return 1;
}
if(strlen(inputtext) > 20)
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"Pokusajte ponovo, molimo vas registrujte se","{FF0000}Password{FFFFFF} koji ste uneli je suvise {FF0000}dugacak{FFFFFF}!\nUpisite vas {FF0000}password{FFFFFF} ispod i {157DEC}registrujte vas nalog{FFFFFF}.","Registruj se","Izadji");
return 1;
}