evo citav dialog
case DIALOG_LOGIN:
{
if(!response) return Kick(playerid);
if(response)
{
new imeigraca;
GetPlayerName(playerid, imeigraca, sizeof (imeigraca));
new datoeka;
format(datoeka, 64, UCITAJ_VOZILA,imeigraca);
if(fexist(datoeka))
{
INI_ParseFile(datoeka, "UcitajVozilo", false, true, playerid);
if(PlayerInfo == 1)
{
DestroyVehicle(COVozilo);
COVozilo = CreateVehicle(VInfo, VInfo, VInfo, VInfo, VInfo, VInfo, VInfo, -1);
Vozila[COVozilo] = true;
SetVehicleNumberPlate(COVozilo, VInfo);
strmid(Vozila[COVozilo], imeigraca, 0, strlen(imeigraca), 255);
}
}
//------------------------------------------------------------------------------
new pname;
GetPlayerName(playerid, pname, sizeof (pname));
new datoteka;
format(datoteka, 64, UCITAJ_MOTORE, pname);
if(fexist(datoteka))
{
INI_ParseFile(datoteka, "UcitajMotore", false, true, playerid);
if(PlayerInfo == 1)
{
DestroyVehicle(MotoVozilo);
MotoVozilo = CreateVehicle(MI, MI, MI, MI, MI, MI, MI, -1);
Vozila[MotoVozilo] = true;
strmid(Vozila[MotoVozilo], pname, 0, strlen(pname), 255);
}
}
//--------------------------------------------------------------------------
new pname2;
GetPlayerName(playerid, pname2, sizeof (pname2));
new datotek;
format(datotek, 64, UCITAJ_BICIKLE, pname2);
if(fexist(datotek))
{
INI_ParseFile(datotek, "UcitajBicikle", false, true, playerid);
if(PlayerInfo == 1)
{
DestroyVehicle(BicVozilo);
BicVozilo = CreateVehicle(BI, BI, BI, BI, BI, BI, BI, -1);
Vozila[BicVozilo] = true;
strmid(Vozila[BicVozilo], pname2, 0, strlen(pname2), 255);
}
}
//----------------------------------------------------------------------
new pname3;
GetPlayerName(playerid, pname3, sizeof (pname3));
new datotek2;
format(datotek2, 64, UCITAJ_PLOVILA, pname3);
if(fexist(datotek2))
{
INI_ParseFile(datotek2, "UcitajPlovila", false, true, playerid);
if(PlayerInfo == 1)
{
DestroyVehicle(PloVozilo);
PloVozilo = CreateVehicle(PL, PL, PL, PL, PL, PL, PL, -1);
Vozila[PloVozilo] = true;
strmid(Vozila[PloVozilo], pname3, 0, strlen(pname3), 255);
}
}
//----------------------------------------------------------------------
new pname4;
GetPlayerName(playerid, pname4, sizeof (pname4));
new datotek3;
format(datotek3, 64, UCITAJ_LETJELICE, pname3);
if(fexist(datotek3))
{
INI_ParseFile(datotek3, "UcitajLetjelice", false, true, playerid);
if(PlayerInfo == 1)
{
DestroyVehicle(LetVozilo);
LetVozilo = CreateVehicle(LE, LE, LE, LE, LE, LE, LE, -1);
Vozila[LetVozilo] = true;
strmid(Vozila[LetVozilo], pname4, 0, strlen(pname4), 255);
}
}
//------------------------------------------------------------------------------
if(!strcmp (inputtext, PlayerInfo, false))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
AC_BS_GivePlayerMoney(playerid, PlayerInfo);
SetPlayerScore(playerid, PlayerInfo);
SetPlayerSkin(playerid, PlayerInfo);
SetPlayerFightingStyle(playerid, PlayerInfo);
ProvjeraSpawna(playerid);
SetPlayerColor(playerid, -1);
SetTimerEx("PayDayBod", 60000, true, "i", playerid);
new string2;
new mtext;
new year, month, day;
getdate(year, month, day);
if(month == 1) { mtext = "1.2013"; }
else if(month == 2) { mtext = "2.2013"; }
else if(month == 3) { mtext = "3.2013"; }
else if(month == 4) { mtext = "4.2013"; }
else if(month == 5) { mtext = "5.2013"; }
else if(month == 6) { mtext = "6.2013"; }
else if(month == 7) { mtext = "7.2013"; }
else if(month == 8) { mtext = "8.2013"; }
else if(month == 9) { mtext = "9.2013"; }
else if(month == 10) { mtext = "10.2013"; }
else if(month == 11) { mtext = "11.2013"; }
else if(month == 12) { mtext = "12.2013"; }
new hour,minuite,second;
gettime(hour,minuite,second);
FixHour(hour);
hour = shifthour;
new Ime;
ImeIgraca2(playerid, Ime);
new Izbacen = 0;
if(PlayerInfo <= 5) PlayerInfo = 0;
if(PlayerInfo >= 6) PlayerInfo = 6;
SetPlayerWantedLevel(playerid, PlayerInfo);
if(PlayerInfo > 0 && PlayerInfo == 0)
{
if(PlayerInfo == 1 && strcmp(PDInfo[PlayerInfo], Ime, false)) Izbacen = 1;
else if(PlayerInfo == 2 && strcmp(CNNInfo[PlayerInfo], Ime, false)) Izbacen = 1;
else if(PlayerInfo == 3 && strcmp(GSFInfo[PlayerInfo], Ime, false)) Izbacen = 1;
else if(PlayerInfo == 4 && strcmp(FYBInfo[PlayerInfo], Ime, false)) Izbacen = 1;
else if(PlayerInfo == 5 && strcmp(SCNInfo[PlayerInfo], Ime, false)) Izbacen = 1;
else if(PlayerInfo == 6 && strcmp(HITInfo[PlayerInfo], Ime, false)) Izbacen = 1;
if(PlayerInfo < 1 || PlayerInfo > 6) Izbacen = 1;
}
if(PlayerInfo > 0)
{
if(PlayerInfo == 1 && strcmp(PDInfo, Ime, false) && strcmp(PDInfo, Ime, false)) Izbacen = 1;
else if(PlayerInfo == 2 && strcmp(CNNInfo, Ime, false) && strcmp(CNNInfo, Ime, false)) Izbacen = 1;
else if(PlayerInfo == 3 && strcmp(GSFInfo, Ime, false) && strcmp(GSFInfo, Ime, false)) Izbacen = 1;
else if(PlayerInfo == 4 && strcmp(FYBInfo, Ime, false) && strcmp(FYBInfo, Ime, false)) Izbacen = 1;
else if(PlayerInfo == 5 && strcmp(SCNInfo, Ime, false) && strcmp(SCNInfo, Ime, false)) Izbacen = 1;
else if(PlayerInfo == 6 && strcmp(HITInfo, Ime, false) && strcmp(HITInfo, Ime, false)) Izbacen = 1;
if(Izbacen == 0)
{
if(PlayerInfo == 1) PlayerInfo = 288;
else if(PlayerInfo == 2) PlayerInfo = 227;
else if(PlayerInfo == 3) PlayerInfo = 270;
else if(PlayerInfo == 4) PlayerInfo = 115;
else if(PlayerInfo == 5) PlayerInfo = 113;
else if(PlayerInfo == 6) PlayerInfo = 299;
}
}
new posaotext;
if(PlayerInfo == 1) { posaotext = "Diler droge"; }
else if(PlayerInfo == 2) { posaotext = "Farmer"; }
else if(PlayerInfo == 3) { posaotext = "Odvjetnik"; }
else if(PlayerInfo == 4) { posaotext = "Vozac busa"; }
else if(PlayerInfo == 5) { posaotext = "Postar"; }
else if(PlayerInfo == 6) { posaotext = "Vlakovodja"; }
else if(PlayerInfo == 7) { posaotext = "Diler oruzja"; }
else if(PlayerInfo == 8) { posaotext = "Kosac trave"; }
else if(PlayerInfo == 9) { posaotext = "Mehanicar"; }
else if(PlayerInfo == 10) { posaotext = "Komunalac"; }
else if(PlayerInfo == 11) { posaotext = "Taxi vozac"; }
else if(PlayerInfo == 12) { posaotext = "Bolnicar"; }
else if(PlayerInfo == 13) { posaotext = "Detektiv"; }
else if(PlayerInfo == 14) { posaotext = "Gradjevinar"; }
else if(PlayerInfo == 15) { posaotext = "Pilot"; }
else if(PlayerInfo == 16) { posaotext = "Kamiondija"; }
else if(PlayerInfo == 17) { posaotext = "Pizza Boy"; }
else { posaotext = "Nezaposlen"; }
new stats = 2;
new nxtlevel = PlayerInfo;
new expamount = nxtlevel*stats;
Logiran = 1;
SCM(playerid, GREEN, ""SIVA"________________________________________________________________________");
SCM(playerid, GREEN, ""SPLAVA"Reborn Roleplay RP/DM (www.reborn-roleplay.info)");
format(string2, sizeof(string2), ""SPLAVA"Dobrodosao "CRVENA"%s"BIJELA", lijepo te je opet vidjeti na serveru!",ImeIgraca(playerid));
SCM(playerid, -1,string2);
format(string2, sizeof(string2), ""BIJELA"Level [%d] | Novac [%d$] | Respekti [%d/%d] | Sati igranja [%dh] | Posao [%s]",PlayerInfo,PlayerInfo,PlayerInfo,expamount,PlayerInfo,posaotext);
SCM(playerid, -1,string2);
if(PlayerInfo > 1)
{
format(string2, sizeof(string2), ""CRVENA"(ADMIN)"BIJELA" Vas admin level je "SPLAVA" %d!",PlayerInfo);
SCM(playerid, -1, string2);
}
if(PlayerInfo > 1)
{
format(string2, sizeof(string2), ""CRVENA"(gh)"BIJELA" Vas gh level je "SPLAVA" %d!",PlayerInfo);
SCM(playerid, -1, string2);
}
SCM(playerid, GREEN, ""SIVA"________________________________________________________________________");
if(Izbacen == 1)
{
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
if(PlayerInfo == 1) { PlayerInfo = 0; SetPlayerSkin(playerid, 0); }
else if(PlayerInfo == 2) { PlayerInfo = 211; SetPlayerSkin(playerid, 211); }
SCM(playerid, -1, ""SPLAVA"Izbaceni ste iz svoje organizacije/mafije/bande!");
SacuvajIgraca(playerid);
}
if(PlayerInfo == 1)
{
ResetPlayerWeapons(playerid);
new rand = random(sizeof(Zatvor));
AC_BS_SetPlayerPos(playerid, Zatvor, Zatvor, Zatvor);
PlayerInfo = 1;
PlayerInfo = 1800;
PlayerInfo = 0;
SCM(playerid, -1, ""CRVENA"Zbog izlaska sa servera kad ste bili zavezani, dobijate kaznu zatvora 30 minuta od Anti Cheat-a");
new ime, string;
RPIme(playerid, ime);
format(string, sizeof string, "Komanda: /zatvor | Izvrsio: Uspijesno | Igrac: %s | Razlog: Izalzak sa server dok je vezan", ime);
UpisiLog(FAJL_KAZNELOG, string);
SacuvajIgraca(playerid);
AC_BS_SetPlayerInterior(playerid, 0);
AC_BS_SetPlayerVirtualWorld(playerid, 0);
}
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""SCRVENA"PRIJAVA KORISNIKA ~Ucitavanje~"BIJELA" - "SPLAVA" Pogresna lozinka",""SIVA"_________________________________________"SPLAVA"\n\nDobrodosao na Roleplay !\n\n"BIJELA" Upisali ste "ZUTA"krivu "BIJELA"lozinku, upisite "ZUTA"ponovno!\n"BIJELA"Ako pogrjesite 3 puta bit cete izbaceni sa servera\n\n"SIVA"_________________________________________","Prijavi se","Izadji");
gPlayerLogTries += 1;
if(gPlayerLogTries == 3)
{
SCM(playerid, GREEN, ""CRVENA"(izbacen)"SIVA" Izbacen si sa servera, jer si 3 puta pogrjesio lozinku!");
Kick(playerid);
}
return 1;
}
}
}
}