Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------<[ OnDialogResponse ]>--------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new sendername[MAX_PLAYER_NAME];
- if(dialogid == 100)
- {
- if(!response)
- {
- PlayerData[playerid][pSex] = 2;
- PlayerData[playerid][pChar] = 56;
- SetPlayerSkin(playerid, 56);
- SendClientMessage(playerid, COLOR_LIGHTBROWN, "In regula, deci esti {FFFFFF}femeie{F5DEB3}.");
- new query[MAX_PLAYERS];
- format(query, sizeof(query), "UPDATE players SET Sex='%d' WHERE id=%d", PlayerData[playerid][pSex], PlayerData[playerid][pSQLID]);
- mysql_query(query);
- format(query, sizeof(query), "UPDATE players SET Chara='%d' WHERE id=%d", PlayerData[playerid][pChar], PlayerData[playerid][pSQLID]);
- mysql_query(query);
- ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"{F06464}Varsta","{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- return 1;
- }
- if(response)
- {
- PlayerData[playerid][pSex] = 1;
- PlayerData[playerid][pChar] = 23;
- SetPlayerSkin(playerid, 23);
- SendClientMessage(playerid, COLOR_LIGHTBROWN, "In regula, deci esti {FFFFFF}barbat{F5DEB3}.");
- new query[MAX_PLAYERS];
- format(query, sizeof(query), "UPDATE players SET Sex='%d' WHERE id=%d", PlayerData[playerid][pSex], PlayerData[playerid][pSQLID]);
- mysql_query(query);
- format(query, sizeof(query), "UPDATE players SET Chara='%d' WHERE id=%d", PlayerData[playerid][pChar], PlayerData[playerid][pSQLID]);
- mysql_query(query);
- ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"{F06464}Varsta","{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- }
- }
- if(dialogid == 1993)
- {
- if(!response)
- {
- new nume[64], string[256];
- GetPlayerName(playerid, nume, sizeof(nume));
- format(string, sizeof(string), "%s a luat ban de la AdmBot (motiv: Incercare de spargere a parolei)", nume);
- SendClientMessageToAll(COLOR_GREEN, string);
- SendClientMessage(playerid, COLOR_GREEN, "Incercare de spargere a parolei");
- BanEx(playerid, "Incercare de spargere a parolei");
- return 1;
- }
- else
- {
- new ebine[64];
- format(ebine, sizeof(ebine), "secret");
- if(strcmp(inputtext, ebine, true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Raspuns Corect!");
- ARaspunsDeja[playerid] = true;
- }
- else
- {
- new nume[64], string[256];
- GetPlayerName(playerid, nume, sizeof(nume));
- format(string, sizeof(string), "%s a luat ban de la AdmBot (motiv: Incercare de spargere a parolei)", nume);
- SendClientMessageToAll(COLOR_GREEN, string);
- SendClientMessage(playerid, COLOR_GREEN, "Imi pare rau, parola introdusa este gresita!");
- BanEx(playerid, "Incercare de spargere a parolei");
- }
- }
- }
- if(dialogid == 101)
- {
- new year, month,day;
- new ziua,luna,an;
- new DateInfo[3][20];
- split(inputtext, DateInfo, ' ');
- getdate(year, month, day);
- ziua = strval(DateInfo[0]);
- an = strval(DateInfo[2]);
- if(strcmp(DateInfo[1],"ianuarie") && strcmp(DateInfo[1],"februarie") && strcmp(DateInfo[1],"martie") &&
- strcmp(DateInfo[1],"aprilie") && strcmp(DateInfo[1],"mai") && strcmp(DateInfo[1],"iunie") &&
- strcmp(DateInfo[1],"iulie") && strcmp(DateInfo[1],"august") && strcmp(DateInfo[1],"septembrie") &&
- strcmp(DateInfo[1],"octombrie") && strcmp(DateInfo[1],"noiembrie") && strcmp(DateInfo[1],"decembrie"))
- luna = strval(DateInfo[1]);
- else
- {
- if(!strcmp(DateInfo[1],"ianuarie")) luna = 1;
- else if(!strcmp(DateInfo[1],"februarie")) luna = 2;
- else if(!strcmp(DateInfo[1],"martie")) luna = 3;
- else if(!strcmp(DateInfo[1],"aprilie")) luna = 4;
- else if(!strcmp(DateInfo[1],"mai")) luna = 5;
- else if(!strcmp(DateInfo[1],"iunie")) luna = 6;
- else if(!strcmp(DateInfo[1],"iulie")) luna = 7;
- else if(!strcmp(DateInfo[1],"august")) luna = 8;
- else if(!strcmp(DateInfo[1],"septembrie")) luna = 9;
- else if(!strcmp(DateInfo[1],"octombrie")) luna = 10;
- else if(!strcmp(DateInfo[1],"noiembrie")) luna = 11;
- else if(!strcmp(DateInfo[1],"decembrie")) luna = 12;
- else return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Nume de luna incorect !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- }
- if(luna < 1 || luna > 12) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Luna incorecta !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- if(ziua > 31 && luna == 1) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Ianuarie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 29 && luna == 2) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Februarie nu poate avea mai mult de 29 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 31 && luna == 3) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Martie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 30 && luna == 4) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Aprilie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 31 && luna == 5) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Mai nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 30 && luna == 6) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Iunie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 31 && luna == 7) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Iulie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 31 && luna == 8) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}August nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 30 && luna == 9) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Septembrie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 31 && luna == 10) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Octombrie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 30 && luna == 11) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Noiembrie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- else if(ziua > 31 && luna == 12) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Decembrie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- if((year - an) > 100 || (an < 1) || (an >= (year - 8))) // 14 Years old
- {
- ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}ATENTIE ! Trebuie sa ai minim 14 ani !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
- return 1;
- }
- new check = year - an;
- if((luna > month) || (luna == month && ziua > day)) check -= 1;
- PlayerData[playerid][pAge] = check;
- new string[256];
- new const size_string = sizeof(string);
- format(string, size_string, "In regula, deci esti nascut pe {FFFFFF}%d %s %d {F5DEB3}si ai {FFFFFF}%i ani{F5DEB3}.",ziua,DateInfo[1],an,PlayerData[playerid][pAge]);
- SendClientMessage(playerid, COLOR_LIGHTBROWN, string);
- RegistrationStep[playerid] = 3;
- new query[MAX_STRING];
- new nume[64];
- GetPlayerName(playerid, nume, sizeof(nume));
- new mysqlaccountstatus = MySQLCheckAccount(nume);
- PlayerData[playerid][pSQLID] = mysqlaccountstatus;
- format(query, sizeof(query), "UPDATE players SET Age='%d' WHERE id=%d", PlayerData[playerid][pAge], PlayerData[playerid][pSQLID]);
- mysql_query(query);
- ShowPlayerDialog(playerid,102,DIALOG_STYLE_LIST,"{FFFFFF}Spawn - Oras","{5D80F0}Los Santos","Alege","Cancel");
- return 1;
- }
- if(dialogid == 102)
- {
- if(!response)
- {
- Kick(playerid);
- return 1;
- }
- switch(listitem)
- {
- case 0: // Los Santos
- {
- PlayerData[playerid][pOrigin] = 1;
- new query[MAX_STRING];
- format(query, sizeof(query), "UPDATE players SET Origin='%d' WHERE id=%d", PlayerData[playerid][pOrigin], PlayerData[playerid][pSQLID]);
- mysql_query(query);
- SendClientMessage(playerid,COLOR_LIGHTBROWN,"In regula, spawn-ul tau va fi in orasul {FFFFFF}Los Santos{F5DEB3}.");
- RegistrationStep[playerid] = 0;
- TutTime[playerid] = 1;
- }
- }
- }
- if(dialogid == 152)
- {
- switch(IsValidMail(inputtext))
- {
- case 1: // Valid Mail
- {
- SendFormattedMessage(playerid,COLOR_LIGHTBROWN,"Bine, e-mail-ul tau ({FFFFFF}%s{F5DEB3}) a fost inregistrat in baza noastra de date !", inputtext);
- new string[256];
- new nume[64];
- GetPlayerName(playerid, nume, sizeof(nume));
- new sqlaccountstatus = MySQLCheckAccount(nume);
- PlayerData[playerid][pSQLID] = sqlaccountstatus;
- strmid(PlayerData[playerid][pEmail], inputtext, 0, strlen(inputtext), 64);
- format(string, sizeof(string), "UPDATE players SET Email='%s' WHERE id = %d", PlayerData[playerid][pEmail], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- return 1;
- }
- case 0:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}E-mail-ul tau nu poate fi mai mic de 8 caractere !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- case -1:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}E-mail-ul tau nu poate fi mai lung de 36 caractere !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- case -2:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu ai folosit around-ul ( @ ) !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- case -3:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu poti folosi mai multe around-uri ( @ ) !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- case -4:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu poti folosi caractere speciale !\nPoti folosi doar litere,numere,liniuta pe jos ( _ ) si punctul ( . ) !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- case -5:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu ai folosit nicio adresa de mail !\nAdrese valide:{F06464}\n\nyahoo.com\nhotmail.com\nymail.com\nrocketmail.com\ngmail.com\nmsn.com\nrdslink.ro\nyahoo.ro\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- case -6:
- {
- ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Adresa de mail invalida !\nAdrese valide:{F06464}\n\nyahoo.com\nhotmail.com\nymail.com\nrocketmail.com\ngmail.com\nmsn.com\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
- return 1;
- }
- }
- }
- if(dialogid == 224)
- {
- return 1;
- }
- if(dialogid == 9991)
- {
- new cpid = GetPlayerVehicleID(playerid);
- if(!response)
- {
- SendClientMessage(playerid, COLOR_GREY, "Ai inchis radioul.");
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- StopAudioStreamForPlayer(i);
- Listening[i] = false;
- }
- }
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://stream.profm.ro:8012/profm.mp3");
- Listening[i] = true;
- }
- }
- }
- case 1:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://stream.profm.ro:8252/hot.mp3");
- Listening[i] = true;
- }
- }
- }
- case 2:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://radiotaraf.com/live.m3u");
- Listening[i] = true;
- }
- }
- }
- case 3:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://www.radiotraditional.ro/hip-hop.m3u");
- Listening[i] = true;
- }
- }
- }
- case 4:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://live.radiotequila.ro:7000/listen.pls");
- Listening[i] = true;
- }
- }
- }
- case 5:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://www.dibiradio.ro/asculta.pls");
- Listening[i] = true;
- }
- }
- }
- case 6:
- {
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == cpid)
- {
- PlayAudioStreamForPlayer(i, "http://stream.profm.ro:8142/rock.mp3");
- Listening[i] = true;
- }
- }
- }
- }
- }
- if(dialogid == 2000)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu iti place stats-ul cu dialog? Foloseste {FF0000}/stats2");
- return 1;
- }
- if(dialogid == 140)// DealerShip
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai anulat.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 141, DIALOG_STYLE_LIST, "Masini Normale:", "Bravura = $1.500.000\nSentinel = $1.300.000\nManana = $1.100.000\nPremier = $1.500.000\nPrevion = $900.000\nAdmiral = $1.650.000\nSolair = $1.700.000\nSandking = $1.810.000\nBlista Compact = $1.780.000\nSlamvan = $1.820.000\nSultan = $1.920.000\nElegy = $2.000.000\n", "Cumpara", "Anulare");
- }
- case 1:
- {
- new text[512];
- format(text, sizeof(text),"Buffalo = $2.100.000\nAlpha = $1.700.000\nBanshee = $2.400.000\nBullet = $3.700.000\nCheetah = $2.720.000\nHotring Racer = $5.000.000\nInfernus = $4.600.000\nJester = 2.780.000\nPhoenix = $2.920.000\nSuper GT = $2.500.000\nTurismo = $3.400.000\nZR-350 = $2.920.000\nUranus = $2.250.000");
- ShowPlayerDialog(playerid,142,DIALOG_STYLE_LIST, "Masini Rapide (Sport)", text, "Cumpara","Anulare");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, 143, DIALOG_STYLE_LIST, "Motociclete/Scutere:", "Wayfarer = $920.000\nFCR-900 = $1.000.000\nFreeway = $780.000\nNRG-500 = $1.200.000\nFaggio = $750.000\nPCJ-600 = $1.100.000", "Cumpara", "Anulare");
- }
- case 3:
- {
- ShowPlayerDialog(playerid, 144, DIALOG_STYLE_LIST, "Elicoptere/Barci:", "Maverick-1.500.000\nLeviathan-1.200.000\nSparrow-1.000.000\nCropduster-800.000\nDodo-800.000\nSkimmer-600.000\nSquallo-700.000\nSpeeder-1.000.000\nReefer-800.000\nDinghy-300.000", "Cumpara", "Anulare");
- }
- }
- }
- if((dialogid == 141) || (dialogid == 142) || (dialogid == 143) || (dialogid == 144))
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai anulat.");
- return 1; // We processed it
- }
- if(dialogid == 141)
- {
- if(PlayerData[playerid][pPcarkey] != 999)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai deja o masina personala.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- VehDSmod[playerid]=401;
- VehDSpret[playerid]=1500000;
- }
- case 1:
- {
- VehDSmod[playerid]=405;
- VehDSpret[playerid]=1300000;
- }
- case 2:
- {
- VehDSmod[playerid]=410;
- VehDSpret[playerid]=1100000;
- }
- case 3:
- {
- VehDSmod[playerid]=529;
- VehDSpret[playerid]=400000;
- }
- case 4:
- {
- VehDSmod[playerid]=426;
- VehDSpret[playerid]=1500000;
- }
- case 5:
- {
- VehDSmod[playerid]=436;
- VehDSpret[playerid]=900000;
- }
- case 6:
- {
- VehDSmod[playerid]=445;
- VehDSpret[playerid]=1650000;
- }
- case 7:
- {
- VehDSmod[playerid]=458;
- VehDSpret[playerid]=1700000;
- }
- case 8:
- {
- VehDSmod[playerid]=495;
- VehDSpret[playerid]=1810000;
- }
- case 9:
- {
- VehDSmod[playerid]=496;
- VehDSpret[playerid]=1780000;
- }
- case 10:
- {
- VehDSmod[playerid]=535;
- VehDSpret[playerid]=1820000;
- }
- case 11:
- {
- VehDSmod[playerid]=560;
- VehDSpret[playerid]=1920000;
- }
- case 12:
- {
- VehDSmod[playerid]=562;
- VehDSpret[playerid]=2000000;
- }
- }
- }
- else if(dialogid == 142)
- {
- if(PlayerData[playerid][pPcarkey] != 999)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai deja o masina personala.");
- return 1; // We processed it
- }
- if(PlayerData[playerid][pPcarkey1] != 999)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai deja o masina personala.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- VehDSmod[playerid]=402;
- VehDSpret[playerid]=2100000;
- }
- case 1:
- {
- VehDSmod[playerid]=602;
- VehDSpret[playerid]=1700000;
- }
- case 2:
- {
- VehDSmod[playerid]=429;
- VehDSpret[playerid]=2400000;
- }
- case 3:
- {
- VehDSmod[playerid]=541;
- VehDSpret[playerid]=3700000;
- }
- case 4:
- {
- VehDSmod[playerid]=415;
- VehDSpret[playerid]=2720000;
- }
- case 5:
- {
- VehDSmod[playerid]=494;
- VehDSpret[playerid]=5000000;
- }
- case 6:
- {
- VehDSmod[playerid]=411;
- VehDSpret[playerid]=4600000;
- }
- case 7:
- {
- VehDSmod[playerid]=559;
- VehDSpret[playerid]=2780000;
- }
- case 8:
- {
- VehDSmod[playerid]=603;
- VehDSpret[playerid]=2920000;
- }
- case 9:
- {
- VehDSmod[playerid]=506;
- VehDSpret[playerid]=2500000;
- }
- case 10:
- {
- VehDSmod[playerid]=451;
- VehDSpret[playerid]=3400000;
- }
- case 11:
- {
- VehDSmod[playerid]=477;
- VehDSpret[playerid]=2920000;
- }
- case 12:
- {
- VehDSmod[playerid]=558;
- VehDSpret[playerid]=2250000;
- }
- }
- }
- else if(dialogid == 143)
- {
- if(PlayerData[playerid][pPcarkey2] != 999)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai deja o motoclicleta personala.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- VehDSmod[playerid]=586;
- VehDSpret[playerid]=920000;
- }
- case 1:
- {
- VehDSmod[playerid]=521;
- VehDSpret[playerid]=1000000;
- }
- case 2:
- {
- VehDSmod[playerid]=463;
- VehDSpret[playerid]=780000;
- }
- case 3:
- {
- VehDSmod[playerid]=522;
- VehDSpret[playerid]=1200000;
- }
- case 4:
- {
- VehDSmod[playerid]=462;
- VehDSpret[playerid]=750000;
- }
- case 5:
- {
- VehDSmod[playerid]=461;
- VehDSpret[playerid]=1100000;
- }
- }
- }
- else if(dialogid == 144)
- {
- if(PlayerData[playerid][pPcarkey3] != 999)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Ai deja un avion sau barca personala.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- VehDSmod[playerid]=487; //heli
- VehDSpret[playerid]=1500000;
- }
- case 1:
- {
- VehDSmod[playerid]=417; //heli
- VehDSpret[playerid]= 1200000;
- }
- case 2:
- {
- VehDSmod[playerid]=469; //heli
- VehDSpret[playerid]= 1000000;
- }
- case 3:
- {
- VehDSmod[playerid]=512; //avion
- VehDSpret[playerid]= 800000;
- }
- case 4:
- {
- VehDSmod[playerid]=593; //avion
- VehDSpret[playerid]= 800000;
- }
- case 5:
- {
- VehDSmod[playerid]=460; //avion apa
- VehDSpret[playerid]= 600000;
- }
- case 6:
- {
- VehDSmod[playerid]=446;
- VehDSpret[playerid]= 700000;
- }
- case 7:
- {
- VehDSmod[playerid]=452;
- VehDSpret[playerid]= 1000000;
- }
- case 8:
- {
- VehDSmod[playerid]=453;
- VehDSpret[playerid]= 800000;
- }
- case 9:
- {
- VehDSmod[playerid]=473;
- VehDSpret[playerid]= 300000;
- }
- }
- }
- if(GetPlayerCash(playerid) > VehDSpret[playerid])
- {
- new string[512];
- new idd;
- mysql_query("SELECT * FROM `cars`");
- mysql_store_result();
- idd = mysql_num_rows()+1;
- mysql_free_result();
- format(string, sizeof(string), "%s",ArIsim[VehDSmod[playerid]-400]);
- strmid(CarData[idd][cDescription], string, 0, strlen(string), 255);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- strmid(CarData[idd][cOwner], sendername, 0, strlen(sendername), 999);
- if(dialogid == 141)
- {
- CarData[idd][cModel] = VehDSmod[playerid];
- CarData[idd][cValue] = VehDSpret[playerid];
- CarData[idd][cLocationx] = 282.6803+random(5);
- CarData[idd][cLocationy] = -1530.9879+random(5);
- CarData[idd][cLocationz] = 24.3208+random(1);
- }
- if(dialogid == 142)
- {
- CarData[idd][cModel] = VehDSmod[playerid];
- CarData[idd][cValue] = VehDSpret[playerid];
- CarData[idd][cLocationx] = 300.7446+random(5);
- CarData[idd][cLocationy] = -1503.4188+random(5);
- CarData[idd][cLocationz] = 24.3286+random(1);
- }
- if(dialogid == 143)
- {
- CarData[idd][cModel] = VehDSmod[playerid];
- CarData[idd][cValue] = VehDSpret[playerid];
- CarData[idd][cLocationx] = 295.4376+random(2);
- CarData[idd][cLocationy] = -1534.7640+random(3);
- CarData[idd][cLocationz] = 24.5938+random(1);
- }
- if(dialogid == 144)
- {
- CarData[idd][cModel] = VehDSmod[playerid];
- CarData[idd][cValue] = VehDSpret[playerid];
- if((CarData[idd][cModel]==460) || (CarData[idd][cModel]==452) || (CarData[idd][cModel]==453) || (CarData[idd][cModel]==473) || (CarData[idd][cModel]==446))
- {
- CarData[idd][cLocationx] = 540.1905+random(30);
- CarData[idd][cLocationy] = -1947.6304+random(30);
- CarData[idd][cLocationz] = 0.5787+random(5);
- }
- else
- {
- CarData[idd][cLocationx] = 1921.3323+random(50);
- CarData[idd][cLocationy] = -2427.3079+random(50);
- CarData[idd][cLocationz] = 13.7148+random(3);
- }
- }
- CarData[idd][cOwned] = 1;
- CarData[idd][cKM] = 0;
- AddStaticVehicle(CarData[idd][cModel],CarData[idd][cLocationx],CarData[idd][cLocationy],CarData[idd][cLocationz],0,0,0);
- format(string, sizeof(string),"INSERT INTO cars (id, Model) VALUES (%d, %d)", idd, CarData[idd][cModel]);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Locationx='%f' WHERE id=%d", CarData[idd][cLocationx], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Locationy='%f' WHERE id=%d", CarData[idd][cLocationy], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Locationz='%f' WHERE id=%d", CarData[idd][cLocationz], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Angle='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET SaLocationx='%f' WHERE id=%d", CarData[idd][cLocationx], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET SaLocationy='%f' WHERE id=%d", CarData[idd][cLocationy], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET SaLocationz='%f' WHERE id=%d", CarData[idd][cLocationz], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET SaAngle='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET ColorOne='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET ColorTwo='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Description='%s' WHERE id=%d", CarData[idd][cDescription], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Value='%d' WHERE id=%d", CarData[idd][cValue], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET License='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Owned='1' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Owner='%s' WHERE id=%d", CarData[idd][cOwner], idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Lockk='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Exploded='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Num='Pglr.ro' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component00='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component01='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component02='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component03='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component04='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component05='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component06='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component07='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component08='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component09='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component10='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component11='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component12='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET Component13='0' WHERE id=%d", idd);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE cars SET KM='0' WHERE id=%d", idd);
- mysql_query(string);
- if((dialogid == 141) || (dialogid == 142))
- {
- SwitchKey[playerid] = 1;
- PlayerData[playerid][pPcarkey] = idd;
- format(string, sizeof(string), "UPDATE players SET Car='%d' WHERE id=%d", PlayerData[playerid][pPcarkey], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- GivePlayerCash(playerid, - VehDSpret[playerid]);
- SendClientMessage(playerid,COLOR_WHITE,"Ai cumparat o masina, scrie /pozitiemasina pentru a o gasi.");
- }
- else if(dialogid == 143)
- {
- SwitchKey[playerid] = 2;
- PlayerData[playerid][pPcarkey2] = idd;
- format(string, sizeof(string), "UPDATE players SET Car2='%d' WHERE id=%d", PlayerData[playerid][pPcarkey2], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- GivePlayerCash(playerid, - VehDSpret[playerid]);
- SendClientMessage(playerid,COLOR_WHITE,"Ai cumparat un motor/scuter, scrie /pozitiemoto pentru a-l gasi.");
- }
- else
- {
- SwitchKey[playerid] = 3;
- PlayerData[playerid][pPcarkey3] = idd;
- format(string, sizeof(string), "UPDATE players SET Car3='%d' WHERE id=%d", PlayerData[playerid][pPcarkey3], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- GivePlayerCash(playerid, - VehDSpret[playerid]);
- SendClientMessage(playerid,COLOR_WHITE,"Ai cumparat un vehicul, scrie /pozitiebarca pentru a-l gasi.");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"Nu ai suficienti bani!");
- }
- }
- if(dialogid == 9876)
- {
- new string[ 1900 ];
- switch(dialogid)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:
- {
- strcat(string, "|•/stats |•/buylevel |•/changepass |•/leaders |\n");
- strcat(string, "|•/factions |•/medics |•/reporters |•/radio |\n");
- strcat(string, "|•/gps |•/admins |•/helpers |• |\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ACCOUNTS •·.·´¯`·.·•",string,"Inchide","");
- }
- case 1:
- {
- if (PlayerData[playerid][pDonateRank] >= 1)
- {
- strcat(string, "/tognews /togfam /togwhisper /togphone /tv /togsfaturi /togam /quitjob");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• DONATOR •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pDonateRank] >= 2)
- {
- strcat(string, "/weather /settv");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• DONATOR •·.·´¯`·.·•",string,"Inchide","");
- }
- }
- case 2:
- {
- if (PlayerData[playerid][pAdmin] >= 1)
- {
- strcat(string, "|•/goback |•/slap |•/goto |•/kick |\n");
- strcat(string, "|•/tognewbie |•/cc |•/warn |•/up |\n");
- strcat(string, "|•/ban |•/banip |•/check |•/o |\n");
- strcat(string, "|•/dn |•/unfreeze |•/tvspec |•/showmute |\n");
- strcat(string, "|•/undercovered |•/weatherall |•/setjob |•/auncuff |\n");
- strcat(string, "|•/am |•/a |•/cnn |•/setint |\n");
- strcat(string, "|•/jail |•/tv |•/areport |•/mute |\n");
- strcat(string, "|•/checkweapons |•/bigears |•/count |• |\n");
- strcat(string, "\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP•·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pAdmin] >= 2)
- {
- strcat(string, "|•/gethere |•/radaron |•/disarm |•/freeze |\n");
- strcat(string, "|•/gunshere |•/healhere |•/freezehere |•/unfreezehere |\n");
- strcat(string, "|•/unfreezeall |•/fly |•/lt |•/skydive |\n");
- strcat(string, "|•/showf |•/eventskin |•/gunshere |•/healhere |\n");
- strcat(string, "|•/disarmhere |•/armourohere |• |• |\n");
- strcat(string, "\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pAdmin] >= 3)
- {
- strcat(string, "|•/event |•/eventgg |•/togooc |•/oldcar |\n");
- strcat(string, "|•/vehcolor |•/gotols |•/gotolv |•/gotosf |\n");
- strcat(string, "|•/gotocar |•/getcar |•/rac |•/fuelcars |\n");
- strcat(string, "|•/gotol |•/gotom |•/gotop |•/gotoe |\n");
- strcat(string, "|•/gotoplaja |•/gotojet |•/gotostad |•/gotoin |\n");
- strcat(string, "|•/respawn |•/tod |•/mark |•/gotomark |\n");
- strcat(string, "\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pAdmin] >= 4)
- {
- strcat(string, "|•/cca |•/mole |•/edit |•/sbiz |\n");
- strcat(string, "|•/setstat |•/sethp |•/setarmor |•/setteam |\n");
- strcat(string, "|•/makeircadmin |•/hltp |•/fourdive |•/mk |\n");
- strcat(string, "|•/nos |•/flip |•/fixveh |•/hydra |\n");
- strcat(string, "|•/biz |•/houseo |•/house |•/asellhouse |\n");
- strcat(string, "|•/disarmall |•/setvw |•/healall |•/avindemasina |\n");
- strcat(string, "|•/setskin |•/agl |•/asellbiz |•/asellsbiz |\n");
- strcat(string, "|•/entercar |•/hq |•/destroycar |•/atl |\n");
- strcat(string, "\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pAdmin] >= 5)
- {
- strcat(string, "|•/setleader |•/takemoney |•/alawyer |•/weather |\n");
- strcat(string, "|•/startlotto |•/uninvite |•/agivedrugs(/agd) |•/agm |\n");
- strcat(string, "|•/unban |•/unbanip |•/unwarn |•/parolaseif |\n");
- strcat(string, "|•/givegun |•/exp |•/off(l)uninvite |•/lockkk |\n");
- strcat(string, "\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pAdmin] >= 6)
- {
- strcat(string, "|•/minigun |•/setadmin |•/stopmusicforall |•/giverpall |\n");
- strcat(string, "|•/editpricecar |•/givemoney |•/cmasina(dealer) |•/aspark |\n");
- strcat(string, "|•/intrarecasa |•/warzone |•/resetspassword |•/gotoxyz |\n");
- strcat(string, "|•/musicforall |•/payday |•/musichere |•/saveserver |\n");
- strcat(string, "|•/givelevelall |•/(un)banclass |•/givemoneyall |•/ShowPlayer |\n");
- strcat(string, "|•/sethelper |•/richlist |•/servername |•/serverpass |\n");
- strcat(string, "\n");
- ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
- }
- }
- }
- }
- }
- }
- if(dialogid == 987)
- {
- new string[ 1900 ];
- switch(dialogid)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:
- {
- strcat(string, "|•/stats |•/buylevel |•/changepass |•/leaders |\n");
- strcat(string, "|•/factions |•/medics |•/reporters |•/radio |\n");
- strcat(string, "|•/gps |•/admins |•/helpers |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ACCOUNTS •·.·´¯`·.·•",string,"Inchide","");
- }
- case 1:
- {
- strcat(string, "|•/pay |•/time |•/mutetime |•/buy |\n");
- strcat(string, "|•/lock |•/skill |•/lotto |•/spawnchange |\n");
- strcat(string, "|•/report |•/cancel |•/accept |•/eject |\n");
- strcat(string, "|•/id |•/contract |•/quitjob |•/instructors |\n");
- strcat(string, "|•/unrentcar |•/givekey |•/switchkey |•/showlicenses |\n");
- strcat(string, "|•/licenses |•/buletin |•/jobs |•/stopanim |\n");
- strcat(string, "|•/passport |•/aratapassport |•/clothes |•/centura |\n");
- strcat(string, "|•/comanda |•/usedrugs |•/fill |•/get fuel |\n");
- strcat(string, "|•/fillcar |•/service |•/number |•/givenumber |\n");
- strcat(string, "|•/afklist |•/ochelari |•/bandana |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• GENERAL •·.·´¯`·.·•",string,"Inchide","");
- }
- case 2:
- {
- strcat(string, "|•(/n)newbie |•(/w)hisper |•(/o)oc |•(/c)lose |\n");
- strcat(string, "|•(/l)ocal |•/b |•(/f)amily |•/me |\n");
- strcat(string, "|•/do |•(/ad)vertise |• |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• CHAT •·.·´¯`·.·•",string,"Inchide","");
- }
- case 3:
- {
- strcat(string, "|•/balance |•/withdraw |•/deposit |•/transfer |\n");
- strcat(string, "|•/imprumut |•/achitaimprumut |• |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• BANCA •·.·´¯`·.·•",string,"Inchide","");
- }
- case 4:
- {
- if(PlayerData[playerid][pJob] == 1)
- {
- strcat(string, "/find");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 2)
- {
- strcat(string, "/free");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 3)
- {
- strcat(string, "/sex");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 4)
- {
- strcat(string, "/selldrugs");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 5)
- {
- strcat(string, "/dropcar");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 7)
- {
- strcat(string, "/repair /refill /duty");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 8)
- {
- strcat(string, "/rdsgo");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 9)
- {
- strcat(string, "/materials /sellgun");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 12)
- {
- strcat(string, "/fight /boxstats");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 15)
- {
- strcat(string, "/milk");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 16)
- {
- strcat(string, "/truck");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 17)
- {
- strcat(string, "/farm");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 18)
- {
- strcat(string, "/gunoi");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- if(PlayerData[playerid][pJob] == 19)
- {
- strcat(string, "/carry");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
- }
- }
- case 5:
- {
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 1)
- {
- strcat(string, "|•(/r)adio |•(/d)epartments |•(/m)egaphone |•/su |\n");
- strcat(string, "|•/frisk |•/take |•/ticket |•(/gov)ernment |\n");
- strcat(string, "|•/cb |•/db |•/aratainsigna |•/door |\n");
- strcat(string, "|•/openlspddoor |•/openlspdgate |•/verificacentura |•/closedoor |\n");
- strcat(string, "|•/createstrip |•/removeallstrip |•/removestrip |•/alchooltest |\n");
- strcat(string, "|•/arrest |•/pduty |•/wanted |•/tazer |\n");
- strcat(string, "|•/jaillist |•/clear |•/armour |•/girofar |\n");
- strcat(string, "|•/ram |•/cuff |•/uncuff |•/mutadetinut |\n");
- strcat(string, "|•/radar |•/openlspdbarrier |•/mdc |•/som |\n");
- strcat(string, "|•/camera |• |• |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 2)
- {
- strcat(string, "|•(/r)adio |•(/d)epartments |•(/m)egaphone |•/su |\n");
- strcat(string, "|•/frisk |•/take |•/ticket |•(/gov)ernment |\n");
- strcat(string, "|•/cb |•/db |•/aratainsigna |•/door |\n");
- strcat(string, "|•/openlspddoor |•/openlspdgate |•/verificacentura |•/closedoor |\n");
- strcat(string, "|•/createstrip |•/removeallstrip |•/removestrip |•/alchooltest |\n");
- strcat(string, "|•/arrest |•/pduty |•/wanted |•/tazer |\n");
- strcat(string, "|•/jaillist |•/clear |•/armour |•/girofar |\n");
- strcat(string, "|•/ram |•/cuff |•/uncuff |•/mutadetinut |\n");
- strcat(string, "|•/radar |•/openlspdbarrier |•/mdc |•/som |\n");
- strcat(string, "|•/camera |• |• |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 3)
- {
- strcat(string, "|•(/r)adio |•(/d)epartments |•(/m)egaphone |•/su |\n");
- strcat(string, "|•/frisk |•/take |•/ticket |•(/gov)ernment |\n");
- strcat(string, "|•/cb |•/db |•/aratainsigna |•/door |\n");
- strcat(string, "|•/openlspddoor |•/openlspdgate |•/verificacentura |•/closedoor |\n");
- strcat(string, "|•/createstrip |•/removeallstrip |•/removestrip |•/alchooltest |\n");
- strcat(string, "|•/arrest |•/pduty |•/wanted |•/tazer |\n");
- strcat(string, "|•/jaillist |•/clear |•/armour |•/girofar |\n");
- strcat(string, "|•/ram |•/cuff |•/uncuff |•/mutadetinut |\n");
- strcat(string, "|•/radar |•/openlspdbarrier |•/mdc |•/som |\n");
- strcat(string, "|•/camera |• |• |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 4)
- {
- strcat(string, "/fires /instinctor (/r)adio (/d)epartments /heal /duty /som\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 6)
- {
- strcat(string, "(/f)amily /fare /som /turela\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 7)
- {
- strcat(string, "(/f)amily /givelicense /startlesson /stoplesson /som\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 8)
- {
- strcat(string, "(/f)amily /portable /som\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 9)
- {
- strcat(string, "/news /live /paper /papers (/f)amily /som\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 10)
- {
- strcat(string, "|•/towls |•/towsf |•/towlv |•/towrepair |\n");
- strcat(string, "|•/towrefil |• |• |• |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if(IsAMember(playerid))
- {
- strcat(string, "\n");
- strcat(string, "•/f)amily ---> •Vorbesti pe chatu-l Factiunii\n");
- strcat(string, "•/cabinet ---> •Iti iei lucruri din HQ!\n");
- strcat(string, "•/tie ---> •Legi un player\n");
- strcat(string, "•/untie ---> •Dezlegi un player\n");
- strcat(string, "•/seif ---> •Te conectezi la seifu Factiunii\n");
- strcat(string, "•/som ---> •Vezi playerii Online!\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- if (PlayerData[playerid][pLeader] >= 1)
- {
- strcat(string, "\n");
- strcat(string, "•/invite ---> •Invita un jucator in factiunea TA!\n");
- strcat(string, "•/uninvite ---> •Scoate un jucator din factiunea TA!\n");
- strcat(string, "•/setrank ---> •Setezi RANK-UL unui jucator!\n");
- strcat(string, "•/fwarn ---> •Acorzi unui jucator WARN/AVERTISMENT!\n");
- strcat(string, "•/offuninvite ---> •Scoti un jucator cand este Offline!\n");
- strcat(string, "•/rfc ---> •Respawnezi masinile factiunii!\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
- }
- }
- case 6:
- {
- strcat(string, "•/atmbalance ---> •Vezi suma ta din ATM.\n");
- strcat(string, "•/atmwithdraw ---> •Scoti bani din ATM.\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ATM •·.·´¯`·.·•",string,"Inchide","");
- }
- case 7:
- {
- strcat(string, "|•/irc join |•/irc admins |•/irc leave |•/i |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• IRC •·.·´¯`·.·•",string,"Inchide","");
- }
- case 8:
- {
- strcat(string, "•/call ---> •Apeleaza un player!\n");
- strcat(string, "•/call 112 ---> •Suna la Politie/Medici!\n");
- strcat(string, "•/sms ---> •Trimite un SMS unui player!\n");
- strcat(string, "•/pickup ---> •Raspunzi la Telefon!\n");
- strcat(string, "•/number ---> •Afla numarul de TEL unui jucator!\n");
- strcat(string, "•/givenumber ---> •Dai unui player numarul tau de Telefon!\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• TELEFON •·.·´¯`·.·•",string,"Inchide","");
- }
- case 9:
- {
- strcat(string, "|•/enter |•/exit |•/open |•/home |\n");
- strcat(string, "|•/housewithdraw |•/sellhouse |•/sleep |•/buyhouse |\n");
- strcat(string, "|•/cellphonehelp |•/help |•/businesshelp |•/leaderhelp |\n");
- strcat(string, "|•/heal |•/houseupgrade |•(/hu) |•/setrentable |\n");
- strcat(string, "|•/home |•/evictall |•/setrent |•/evict |\n");
- strcat(string, "|•/fishhelp |•/cookhelp |•/irchelp |•/tv (off/player) |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• HOUSE/CASA •·.·´¯`·.·•",string,"Inchide","");
- }
- case 10:
- {
- strcat(string, "|•/bizinfo |•/bizfee |•/bizname |•/prodprice |\n");
- strcat(string, "|•/enter |•/exit |•/open |•/sellbiz |\n");
- strcat(string, "|•/extortion |•/bizgunprice |•/bizbank |•/bizwithdraw |");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• BUSINESS •·.·´¯`·.·•",string,"Inchide","");
- }
- case 11:
- {
- strcat(string, "•/fish ---> •Try to catch a fish\n");
- strcat(string, "•/fishes ---> •Show the fishes you have caught\n");
- strcat(string, "•/throwback ---> •Throw the last fish you caught back\n");
- strcat(string, "•/releasefish ---> •Release one of your fishes\n");
- strcat(string, "•/throwbackall ---> •\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FISHING •·.·´¯`·.·•",string,"Inchide","");
- }
- case 12:
- {
- strcat(string, "•/cook ---> •See all the options available\n");
- strcat(string, "•/eat ---> •Eat something that you have Cooked\n");
- strcat(string, "•/cooked ---> •See everything that you have Cooked\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• COOKING •·.·´¯`·.·•",string,"Inchide","");
- }
- case 13:
- {
- strcat(string, "|•/fall |•/injured |•/push |•/handsup |\n");
- strcat(string, "|•/medic |•/robman |•/taichi |•/lookout |\n");
- strcat(string, "|•/deal |•/crack |•/smokem |•/smokef |\n");
- strcat(string, "|•/rollfall |•/bat |•/lifejump |•/lay2 |\n");
- strcat(string, "|•/gsign1 |•/gsign2 |•/gsign3 |•/gsign4 |\n");
- strcat(string, "|•/slapass |•/slapped |•/celebrate |•/follow |\n");
- strcat(string, "|•/hitch |•/bitchslap |•/cpr |•/rap |\n");
- strcat(string, "|•/dance |•/fsit |•/msit |•/relax |\n");
- strcat(string, "|•/yes |•/deal2 |•/thankyou |•/invite1 |\n");
- strcat(string, "|•/bomb |•/drunk |•/getarrested |•/laugh |\n");
- strcat(string, "|•/kiss |•/cellin |•/cellout |•/crossarms |\n");
- strcat(string, "|•/groundsit |•/chat |•/dance |•/fucku |\n");
- strcat(string, "|•/chant |•/aim |•/lowthrow |•/highthrow |\n");
- strcat(string, "|•/gsign5 |•/gift |•/sit |•/animsex |\n");
- strcat(string, "|•/greet |•/stand |•/injured2 |•/piss |\n");
- strcat(string, "|•/wankoff |•/crossarms2 |•/crossarms3 |•/vomit |\n");
- strcat(string, "|•/win |•/win2 |•/chairsit |•/reload |\n");
- strcat(string, "|•/invite2 |•/eatsit |•/celebrate2 |•/scratch |\n");
- strcat(string, "|•/lay |•/strip |•/lean |•/wave |\n");
- strcat(string, "|•/bj |•/shaken |•/hide |•/gangwalk |\n");
- ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ANIMATII •·.·´¯`·.·•",string,"Inchide","");
- }
- }
- }
- }
- }
- if(dialogid == 10)
- {
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- else
- {
- new bani = GetVehicleAsigurare(CarExploded[playerid] + PreVehicle);
- if(GetPlayerCash(playerid) >= bani)
- {
- new string[MAX_STRING];
- ConsumingMoney[playerid] = 1;
- GivePlayerCash(playerid, -bani);
- CarData[CarExploded[playerid]][cExploded] = 0;
- format(string, sizeof(string), "UPDATE cars SET Exploded='%d' WHERE id=%d",CarData[CarExploded[playerid]][cExploded], CarExploded[playerid]);
- mysql_query(string);
- new hour,minute,second;
- gettime(hour,minute,second);
- getdate(year, month, day);
- format(string, sizeof(string), "%s a platit (repair own car) -$%d (%d/%d/%d ora: %d:%d:%d )", PlayerData[playerid][pNume],bani, day, month, year, hour,minute,second);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu ai destui bani la tine.");
- }
- }
- }
- if(dialogid == 11)
- {
- if(!response)
- {
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- {
- new bani = GetVehicleAsigurare(CarExploded[playerid] + PreVehicle);
- if(GetPlayerCash(playerid) >= bani)
- {
- new string[MAX_STRING];
- ConsumingMoney[playerid] = 1;
- GivePlayerCash(playerid, 0 -bani);
- CarData[CarExploded[playerid]][cExploded] = 0;
- format(string, sizeof(string), "UPDATE cars SET Exploded='%d' WHERE id=%d",CarData[CarExploded[playerid]][cExploded], CarExploded[playerid]);
- mysql_query(string);
- new hour,minute,second;
- gettime(hour,minute,second);
- getdate(year, month, day);
- format(string, sizeof(string), "%s a platit (repair own car) -$%d (%d/%d/%d ora: %d:%d:%d )", PlayerData[playerid][pNume],bani, day, month, year, hour,minute,second);
- PayLog(string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu ai destui bani la tine.");
- }
- }
- }
- if(dialogid == 222)
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to normal!");
- }
- case 1:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to boxing!");
- }
- case 2:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to kungfu!");
- }
- case 3:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to kneehead!");
- }
- case 4:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to grabkick!");
- }
- case 5:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to elbow!");
- }
- }
- }
- if(dialogid == 1)
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
- return 1; // We processed it
- }
- switch(listitem)
- {
- case 0:
- {
- SetPlayerAttachedObject( playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 1:
- {
- SetPlayerAttachedObject( playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 2:
- {
- SetPlayerAttachedObject( playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 3:
- {
- SetPlayerAttachedObject( playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 4:
- {
- SetPlayerAttachedObject( playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 5:
- {
- SetPlayerAttachedObject( playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 6:
- {
- SetPlayerAttachedObject( playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
- }
- case 7:
- {
- RemovePlayerAttachedObject(playerid, 0);
- }
- }
- }
- if(dialogid == 666)
- {
- if(!response)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Ai anulat selectia");
- return 1;
- }
- else
- {
- new string[256];
- new nume[64];
- GetPlayerName(playerid, nume, sizeof(nume));
- new sqlaccountstatus = MySQLCheckAccount(nume);
- PlayerData[playerid][pSQLID] = sqlaccountstatus;
- strmid(string, inputtext, 0, strlen(inputtext), 64);
- format(string, sizeof(string), "UPDATE players SET %s WHERE id=%d", string, PlayerData[playerid][pSQLID]);
- mysql_query(string);
- format(string, sizeof(string), "%s", string);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- if(dialogid == 150)////////////
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid,1898, DIALOG_STYLE_LIST, "{F81414}GPS:Locuri Importante","1. Spawn Civil\n2. Primarie\n3. Primarie LV\n4. Banca LS\n5. LVPD\n6. GARA LS\n7. Examen Auto\n8. Dealership","Mark","Renunta");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,1900, DIALOG_STYLE_LIST, "{F81414}GPS:Locuri Primare","1. Aeroport LS\n2. Aeroport LV\n3. Magazin Arme LS\n4. Alhambra\n5. Cazino LS\n6. Binco Shop\n7. Magazin 24/7\n8. Cazino LV\n9. CNN Studio\n10. Chiosc de Materiale\n11. Chiosc de Materiale LV\n12. Burger Shot\n13. Victim","Mark","Renunta");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid,1901, DIALOG_STYLE_LIST, "{F81414}GPS:Tunning Car","1. Tunning Car LS\n2. Tunning Car Low Rider\n3. Tunning Car SF","Mark","Renunta");
- }
- }
- }
- if(dialogid == 79)////////////
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid,1902, DIALOG_STYLE_LIST, "{F81414}Job-uri Legale:","Detectiv\nAvocat\nMecanic\nAngajat RDS\nBoxer\nLucrator la animale\nCamionagiu\nFermier\nGunoier\n Transportor de bagaje","MARCHEAZA","Renunta");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,1903, DIALOG_STYLE_LIST, "{F81414}Job-uri Ilegale:","Prostituata\nDealer de Droguri\nSpargator de masini\nDealer de Arme","MARCHEAZA","Renunta");
- }
- }
- }
- if(dialogid == 1898)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,1643.2330,-2242.9656,13.4888,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid,1481.1647,-1750.3690,15.4453,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid,1968.3793,1622.9545,12.8638,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid,1464.9397,-1019.3941,24.7230,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid,2288.7671,2424.8879,10.8203,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid,1715.8816,-1863.1788,13.5754,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid,1600.7926,-2172.3123,13.5547,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 7)
- {
- SetPlayerCheckpoint(playerid,328.9902,-1513.3729,36.0391,5.0);
- CP[playerid] = 385;
- }
- }
- }
- if(dialogid == 1899)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,1557.7139,-1626.5482,13.3828,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid,2285.7959,2419.4863,10.8203,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid,88.8326,1920.7456,17.8977,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid,1998.4862,-1449.1925,13.5596,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid,1790.3000,-1900.9171,13.3969,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid,982.2626,1754.6533,8.6484,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid,1031.6426,-380.4761,72.3793,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 7)
- {
- SetPlayerCheckpoint(playerid,644.8242,-1359.5795,13.5824,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 8)
- {
- SetPlayerCheckpoint(playerid,906.4628,-1223.1034,16.9766,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 9)
- {
- SetPlayerCheckpoint(playerid,665.2108,-1276.0153,13.4609,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 10)
- {
- SetPlayerCheckpoint(playerid,1947.3896,1341.8748,9.1094,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 11)
- {
- SetPlayerCheckpoint(playerid,1481.3826,2776.0894,10.8203,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 12)
- {
- SetPlayerCheckpoint(playerid,1434.1664,737.6362,10.8203,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 13)
- {
- SetPlayerCheckpoint(playerid,2198.2581,1834.6288,10.8203,5.0);
- CP[playerid] = 385;
- }
- }
- }
- if(dialogid == 1900)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,1961.6449,-2180.4912,13.5469,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid,1728.3140,1600.1707,10.0969,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid,1791.2416,-1166.3087,23.8281,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid,1828.9137,-1682.3673,13.5469,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid,1291.4736,-1156.4912,23.8281,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 5)
- {
- SetPlayerCheckpoint(playerid,2243.6418,-1659.9858,15.2881,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 6)
- {
- SetPlayerCheckpoint(playerid,998.3435,-920.3079,42.1797,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 7)
- {
- SetPlayerCheckpoint(playerid,2026.9475,1007.9462,10.8203,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 8)
- {
- SetPlayerCheckpoint(playerid,844.9108,-1043.2010,25.4653,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 9)
- {
- SetPlayerCheckpoint(playerid,1410.3835,-1300.2887,13.5477,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 10)
- {
- SetPlayerCheckpoint(playerid,1712.7357,916.2137,10.8203,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 11)
- {
- SetPlayerCheckpoint(playerid,1198.8824,-920.7828,43.0318,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 12)
- {
- SetPlayerCheckpoint(playerid,455.6879,-1500.3929,31.0506,5.0);
- CP[playerid] = 385;
- }
- }
- }
- if(dialogid == 1901)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,1040.7679,-1032.7428,31.9769,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid,2644.5894,-2018.2365,13.5518,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid,-2708.5667,216.8702,4.1797,5.0);
- CP[playerid] = 385;
- }
- }
- }
- if(dialogid == 5)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid,1564.9440,-1666.0071,28.3956);
- SetPlayerInterior(playerid,0);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid,243.8464,66.4830,1003.6406);
- SetPlayerInterior(playerid,6);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid,1525.9102,-1677.9510,5.8906);
- SetPlayerInterior(playerid,0);
- }
- }
- }
- if(dialogid == 1902)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Job-ul {FF00FF}`Detectiv` {80FF80}se ia de la primarie !");
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am pus un CheckPoint pe harta !");
- SetPlayerCheckpoint(playerid,1481.0435,-1770.1893,18.7958,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Job-ul {FF00FF}`Avocat` {80FF80}se ia de la primarie !");
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am pus un CheckPoint pe harta !");
- SetPlayerCheckpoint(playerid,1481.0435,-1770.1893,18.7958,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Mecanic{80FF80}` !");
- SetPlayerCheckpoint(playerid,-1932.3859,276.2117,41.0391,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Angajat RDS{80FF80}` !");
- SetPlayerCheckpoint(playerid,700.9460,-1571.0916,14.2422,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Boxer{80FF80}` !");
- SetPlayerCheckpoint(playerid,766.0804,14.5133,1000.7004,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 5)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Lucrator la animale{80FF80}` !");
- SetPlayerCheckpoint(playerid,-354.2195,-1059.4678,59.2631,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 6)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Camionagiu{80FF80}` !");
- SetPlayerCheckpoint(playerid,-77.7288,-1136.3896,1.0781,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 7)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Fermier{80FF80}` !");
- SetPlayerCheckpoint(playerid,-395.7428,-1443.8876,25.7209,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 8)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Gunoier{80FF80}` !");
- SetPlayerCheckpoint(playerid,2179.9507,-2256.5168,14.77,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 9)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Transportor de bagaje{80FF80}` !");
- SetPlayerCheckpoint(playerid,2113.9436,-2416.5444,13.5469,5.0);
- CP[playerid] = 385;
- }
- }
- }
- if(dialogid == 1903)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Prostituata{80FF80}` !");
- SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
- SetPlayerCheckpoint(playerid,2421.7549,-1220.5667,25.4753,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Dealer de droguri{80FF80}` !");
- SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
- SetPlayerCheckpoint(playerid,2166.3772,-1675.3829,15.0859,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Hot de masini{80FF80}` !");
- SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
- SetPlayerCheckpoint(playerid,1109.3318,-1796.3042,16.5938,5.0);
- CP[playerid] = 385;
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
- SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Dealer de arme{80FF80}` !");
- SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
- SetPlayerCheckpoint(playerid,1366.4325,-1275.2096,13.5469,5.0);
- CP[playerid] = 385;
- }
- }
- }
- if(dialogid == 1904)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid,-761.0561,-107.6063,65.8785,5.0);
- CP[playerid] = 331;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid,-166.4153,-283.8017,3.1778,5.0);
- CP[playerid] = 332;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid,2425.7971,1916.4724,6.0156,5.0);
- CP[playerid] = 333;
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid,558.6860,-1267.8656,17.2422,5.0);
- CP[playerid] = 334;
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid,-1889.1088,-1715.0823,21.7500,5.0);
- CP[playerid] = 335;
- }
- }
- }
- if(dialogid == 12346 || dialogid == 12347)
- {
- if(!response)
- {
- Kick(playerid);
- return 1;
- }
- if(strlen(inputtext))
- {
- new ok = 1;
- for(new i=0;i<strlen(inputtext);i++)
- {
- if(!IsALetter(inputtext[i]))
- ok = 0;
- }
- if(ok == 1)
- {
- new tmppass[64];
- strmid(tmppass, inputtext, 0, sizeof ( tmppass ), 255);
- OnPlayerLogin(playerid,tmppass);
- }
- else
- {
- new loginstring[128];
- new loginname[64];
- GetPlayerName(playerid,loginname,sizeof(loginname));
- format(loginstring,sizeof(loginstring),"PAROLA GRESITA\nTe Rog Baga Parola Corecta:",loginname);
- ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
- gPlayerLogTries[playerid] += 1;
- if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
- }
- }
- else
- {
- new loginstring[128];
- new loginname[64];
- GetPlayerName(playerid,loginname,sizeof(loginname));
- format(loginstring,sizeof(loginstring),"PAROLA GRESITA\nTe Rog Baga Parola Corecta:",loginname);
- ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
- gPlayerLogTries[playerid] += 1;
- if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
- }
- }
- if(dialogid == 12345)
- {
- if(!response)
- {
- Kick(playerid);
- return 1;
- }
- if(strlen(inputtext))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new sqlaccountexists = MySQLCheckAccount(sendername);
- if (sqlaccountexists != 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Acel nume este deja luat, te rog alege altul.");
- return 1;
- }
- new tmppass[64];
- //if(strfind(inputtext, "|", true) != -1)
- new ok = 1;
- for(new i=0;i<strlen(inputtext);i++)
- {
- if(!IsALetter(inputtext[i]))
- ok = 0;
- }
- if(ok == 0)
- {
- gPlayerAccount[playerid] = 0;
- new regstring[512];
- new regname[64];
- GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),"{FFFFFF}Bine ai venit {8CBBF2}%s {FFFFFF}!\n\nVa rugam sa introduceti o parola in casuta pentru inregistrare !",regname);
- ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Inregistrare",regstring,"Register","Iesire");
- }
- else
- {
- strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
- OnPlayerRegister(playerid,tmppass);
- }
- }
- else
- {
- new regstring[512];
- new regname[64];
- GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),"{FFFFFF}Bine ai venit {8CBBF2}%s {FFFFFF}!\n\nVa rugam sa introduceti o parola in casuta pentru inregistrare !",regname);
- ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Inregistrare",regstring,"Register","Iesire");
- }
- }
- if(dialogid == 2)
- {
- if(!response)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Ai anulat selectia");
- return 1;
- }
- else
- {
- new string[256];
- switch(listitem)
- {
- case 0:
- {
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid,-5000);
- SBizzData[9][sbTill] += 5000;
- ExtortionSBiz(9, 500);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new randphone = 1000 + random(8999);//minimum 1000 max 9999
- PlayerData[playerid][pPnumber] = randphone;
- format(string, sizeof(string), " Ti-ai cumparat un nou telefon, numarul este %d", randphone);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- format(string, sizeof(string), "UPDATE players SET PhoneNr='%d' WHERE id=%d", PlayerData[playerid][pPnumber], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- case 1:
- {
- GivePlayerCash(playerid,-2000);
- SBizzData[9][sbTill] += 2000;
- ExtortionSBiz(9, 500);
- format(string, sizeof(string), "~r~-$%d", 1000);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new prize;
- new symb1[32]; new symb2[32]; new symb3[32];
- new randcard1 = random(10);//minimum 1000 max 9999
- new randcard2 = random(10);//minimum 1000 max 9999
- new randcard3 = random(10);//minimum 1000 max 9999
- if(randcard1 >= 5)
- {
- format(symb1, sizeof(symb1), "~b~]");
- randcard1 = 1;
- }
- else if(randcard1 <= 4 && randcard1 >= 2)
- {
- format(symb1, sizeof(symb1), "~g~]");
- randcard1 = 2;
- }
- else if(randcard1 < 2)
- {
- format(symb1, sizeof(symb1), "~y~]");
- randcard1 = 3;
- }
- if(randcard2 >= 5)
- {
- format(symb2, sizeof(symb2), "~b~]");
- randcard2 = 1;
- }
- else if(randcard2 <= 4 && randcard2 >= 2)
- {
- format(symb2, sizeof(symb2), "~g~]");
- randcard2 = 2;
- }
- else if(randcard2 < 2)
- {
- format(symb2, sizeof(symb2), "~y~]");
- randcard2 = 3;
- }
- if(randcard3 >= 5)
- {
- format(symb3, sizeof(symb3), "~b~]");
- randcard3 = 1;
- }
- else if(randcard3 <= 4 && randcard3 >= 2)
- {
- format(symb3, sizeof(symb3), "~g~]");
- randcard3 = 2;
- }
- else if(randcard3 < 2)
- {
- format(symb3, sizeof(symb3), "~y~]");
- randcard3 = 3;
- }
- if(randcard1 == randcard2 && randcard1 == randcard3)
- {
- if(randcard1 > 5)
- {
- prize = 25000;
- }
- if(randcard1 <= 4 && randcard1 >= 2)
- {
- prize = 10000;
- }
- if(randcard1 < 2)
- {
- prize = 2000;
- }
- GivePlayerCash(playerid,prize);
- if(prize > 0)
- {
- format(string, sizeof(string), "Felicitari, ai castigat %d$", prize);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Degamagire, nu ai castigat nimic.");
- }
- SBizzData[9][sbTill] -= prize;
- ExtortionSBiz(9, prize);
- format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
- }
- else
- {
- format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
- }
- GameTextForPlayer(playerid, string, 3000, 3);
- }
- case 2:
- {
- GivePlayerCash(playerid,-5000);
- SBizzData[9][sbTill] += 5000;
- ExtortionSBiz(9, 5000);
- format(string, sizeof(string), "~r~-$%d", 5000);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerData[playerid][pPhoneBook] = 1;
- format(string, sizeof(string), "Ti-ai cumparat carte de telefon, acum poti gasi numerele de telefon al playerilor!");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /number <playerid/PartOfName>.");
- format(string, sizeof(string), "UPDATE players SET Phonebook='%d' WHERE id=%d", PlayerData[playerid][pPhoneBook], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- case 3:
- {
- GivePlayerCash(playerid,-1000);
- SBizzData[9][sbTill] += 1000;
- ExtortionSBiz(9, 500);
- format(string, sizeof(string), "~r~-$%d", 500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- gDice[playerid] = 1;
- format(string, sizeof(string), "Ti-ai cumparat un zar.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /dice ");
- }
- case 4:
- {
- if (gLastCar[playerid] != 0)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Server: At this momentan, you cannont buy vehicle key.");
- return 1;
- }
- if(HireCar[playerid] != 299)
- {
- HireCar[playerid] = 299;
- }
- GivePlayerCash(playerid,-5000);
- SBizzData[9][sbTill] += 5000;
- ExtortionSBiz(9, 5000);
- format(string, sizeof(string), "~r~-$%d", 5000);
- GameTextForPlayer(playerid, string, 5000, 1);
- SBizzData[9][sbProducts]--;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- HireCar[playerid] = gLastCar[playerid];
- format(string, sizeof(string), "Ai cumparat key pentru ultima masina in care ai fost.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /lock ");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " Nu ai avut avut nici o masina!");
- }
- }
- case 5:
- {
- GivePlayerCash(playerid,-1000);
- SBizzData[9][sbTill] += 1000;
- ExtortionSBiz(9, 1000);
- format(string, sizeof(string), "~r~-$%d", 50);
- GameTextForPlayer(playerid, string, 5000, 1);
- Condom[playerid] ++;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Prezervativ cumparat.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- }
- case 6:
- {
- GivePlayerCash(playerid, - 3000);
- SBizzData[9][sbTill] += 3000;
- ExtortionSBiz(9, 3000);
- format(string, sizeof(string), "~r~-$%d", 3000);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Ti-ai cumparat radio portabil.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /radio");
- PlayerData[playerid][pCDPlayer] = 1;
- format(string, sizeof(string), "UPDATE players SET CDPlayer='%d' WHERE id=%d", PlayerData[playerid][pCDPlayer], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- case 7:
- {
- if(Groceries[playerid][pChickens] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, " Ai deja pui, mai intai trebuie sa il prepari!");
- return 1;
- }
- GivePlayerCash(playerid, - 100);
- SBizzData[9][sbTill] += 100;
- ExtortionSBiz(9, 100);
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Pui cumparat.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- format(string, sizeof(string), "~r~-$%d", 10);
- GameTextForPlayer(playerid, string, 5000, 1);
- new rand = random(15);
- Groceries[playerid][pChickens] += 1;
- Groceries[playerid][pChicken] += rand;
- }
- case 8:
- {
- GivePlayerCash(playerid, - 2500);
- SBizzData[9][sbTill] += 2500;
- ExtortionSBiz(9, 2500);
- format(string, sizeof(string), "~r~-$%d", 2500);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerData[playerid][pCigars] += 10;
- format(string, sizeof(string), "Ai cumparat 10 tigari la pretul de 50$. Acum detii %d tigari.Foloseste /smoke", PlayerData[playerid][pCigars]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "UPDATE players SET Cigars='%d' WHERE id=%d", PlayerData[playerid][pCigars], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- case 9:
- {
- if(Groceries[playerid][pHamburgers] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "Ai prea multi hamburghezi, mai intai preparai si manancai!");
- return 1;
- }
- GivePlayerCash(playerid, - 100);
- format(string, sizeof(string), "~r~-$%d", 100);
- SBizzData[9][sbTill] += 100;
- ExtortionSBiz(9, 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Hamburger Cumparat.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- new rand = random(15);
- Groceries[playerid][pHamburgers] += 1;
- Groceries[playerid][pHamburger] += rand;
- }
- case 10:
- {
- if(Groceries[playerid][pPizzas] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "Prea multe pizza ai, mai intai incearca sa le prepari!");
- return 1;
- }
- GivePlayerCash(playerid, - 100);
- format(string, sizeof(string), "~r~-$%d", 100);
- SBizzData[9][sbTill] += 100;
- ExtortionSBiz(9, 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Frozen Pizza Cumparata.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- new rand = random(15);
- Groceries[playerid][pPizzas] += 1;
- Groceries[playerid][pPizza] += rand;
- }
- case 11:
- {
- format(string, sizeof(string), "~r~-$%d", 3500);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid,-3500);
- SBizzData[9][sbTill] += 3500;
- ExtortionSBiz(9, 3500);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "Ti-ai cumparat o camera foto");
- GivePlayerWeapon(playerid, 43, 20);
- }
- case 12:
- {
- GivePlayerCash(playerid, - 10000);
- SBizzData[9][sbTill] += 10000;
- ExtortionSBiz(9, 10000);
- format(string, sizeof(string), "~r~-$%d", 10000);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Ti-ai cumparat canistra pentru benzina.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /get fuel");
- PlayerData[playerid][pCanistra] = 1;
- format(string, sizeof(string), "UPDATE players SET Canistra='%d' WHERE id=%d", PlayerData[playerid][pCanistra], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment