Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new string[182];
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
- {
- PlayerInKart[playerid] = 0;
- KartingPlayers --;
- }
- if(TransportDuty[playerid] > 0)
- {
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- TransportDuty[playerid] = 0;
- format(string, sizeof(string), "* Acum nu mai esti la servici si ai castigat $%d pentru cat ai lucrat.", TransportMoney[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, TransportMoney[playerid]);
- ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
- }
- if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
- {
- if(IsPlayerConnected(TransportDriver[playerid]))
- {
- TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
- TransportTime[TransportDriver[playerid]] = 0;
- TransportCost[TransportDriver[playerid]] = 0;
- format(string, sizeof(string), "~w~Calatoria a costat:~n~~r~$%d",TransportCost[playerid]);
- GameTextForPlayer(playerid, string, 5000, 1);
- format(string, sizeof(string), "~w~Pasagerul a iesit din taxi~n~~g~Ai castigat $%d",TransportCost[playerid]);
- GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
- GivePlayerCash(playerid, -TransportCost[playerid]);
- TransportCost[playerid] = 0;
- TransportTime[playerid] = 0;
- TransportDriver[playerid] = 999;
- }
- }
- }
- /*if(IsABike(GetPlayerVehicleID(playerid)))
- {
- switch(GetPlayerSkin(playerid))
- {
- #define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, SLOT, 18645, 2, (%0), (%1), (%2), (%3), (%4), (%5));
- case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
- case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
- case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
- case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
- case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
- case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- }
- }*/
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- new vehicleid = GetPlayerVehicleID(playerid);
- foreach(Player, i)
- {
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0)
- {
- if(GetPlayerCash(playerid) < TransportValue[i])
- {
- format(string, sizeof(string), "* Ai nevoie de $%d ca sa intri.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- if(TransportDuty[i] == 1)
- {
- format(string, sizeof(string), "* Ai platit $%d taximetristului.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Pasagerul %s a intra in Taxi-ul tau.", name);
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- TransportTime[i] = 1;
- TransportTime[playerid] = 1;
- TransportCost[playerid] = TransportValue[i];
- TransportCost[i] = TransportValue[i];
- TransportDriver[playerid] = i;
- }
- GivePlayerCash(playerid, - TransportValue[i]);
- TransportMoney[i] += TransportValue[i];
- }
- }
- }
- if(newstate == PLAYER_STATE_WASTED)
- {
- if(WantedLevel[playerid] >= 1)
- {
- new price = WantedLevel[playerid] * 600;
- new count;
- foreach(Player, i)
- {
- if(gTeam[i] == 2 && CrimInRange(20.0, playerid,i))
- {
- count = 1;
- format(string, sizeof(string), "~w~Suspectul~r~Mort~n~Bonus~g~$%d", price);
- GameTextForPlayer(i, string, 5000, 1);
- ConsumingMoney[i] = 1;
- GivePlayerCash(i, price / 2);
- PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
- }
- }
- if(count == 1)
- {
- new celula = random(3);
- GivePlayerCash(playerid, - price);
- PlayerData[playerid][pWantedDeaths] += 1;
- if(celula == 1)
- {
- PlayerData[playerid][pJailed] = 2;
- }
- else if(celula == 2)
- {
- PlayerData[playerid][pJailed] = 3;
- }
- else
- {
- PlayerData[playerid][pJailed] = 1;
- }
- format(string, sizeof(string), "UPDATE players SET Jailed='%d' WHERE id=%d", PlayerData[playerid][pJailed], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- PlayerData[playerid][pJailTime] = (WantedLevel[playerid])*(60);
- format(string, sizeof(string), "* Esti la puscarie pentru %d secunde si ai pierdut $%d deoarece ai murit iar in apropiere era un politai.", PlayerData[playerid][pJailTime], price);
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- WantedPoints[playerid] = 0;
- WantedLevel[playerid] = 0;
- PlayerData[playerid][pWantedPoints] = WantedPoints[playerid];
- format(string, sizeof(string), "UPDATE players SET WantedLevel='%d' WHERE id=%d", WantedLevel[playerid], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[playerid][pWantedPoints], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE players SET WantedDeaths='%d' WHERE id=%d", PlayerData[playerid][pWantedDeaths], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- format(string, sizeof(string), "UPDATE players SET JailTime='%d' WHERE id=%d", PlayerData[playerid][pJailTime], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- //CarLabel[playerid] = CreateDynamic3DTextLabel(" ", -1, 0, 0, 0.9, 10.0, INVALID_PLAYER_ID, GetPlayerVehicleID(playerid), 0, -1, -1, playerid, 100.0);
- //UpdateBar(playerid);
- new newcar = GetPlayerVehicleID(playerid);
- new oldcar = gLastCar[playerid];
- new housecar = PlayerData[playerid][pPhousekey]+1;
- if(newcar > PreVehicle)
- {
- if(CarData[newcar-PreVehicle][cExploded] == 1 &&(PlayerData[playerid][pPcarkey] == newcar-PreVehicle || PlayerData[playerid][pPcarkey2] == newcar-PreVehicle || PlayerData[playerid][pPcarkey3] == newcar-PreVehicle))
- {
- format(string,sizeof(string),"{FFFFFF}Masina ta a fost distrusa , plateste reparatia de {228B22}${FFFFFF}%d pentru a mai putea folosi masina.",GetVehicleAsigurare(newcar));
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"{1E90FF}Repair Car",string,"Platesc", "Close");
- CarExploded[playerid] = newcar-PreVehicle;
- return 1;
- }
- if(CarData[newcar-PreVehicle][cExploded] == 2 &&(PlayerData[playerid][pPcarkey] == newcar-PreVehicle || PlayerData[playerid][pPcarkey2] == newcar-PreVehicle || PlayerData[playerid][pPcarkey3] == newcar-PreVehicle))
- {
- format(string,sizeof(string),"{FFFFFF}Masina ta a fost distrusa , plateste reparatia de {228B22}${FFFFFF}%d pentru a mai putea folosi masina.",GetVehicleAsigurare(newcar));
- ShowPlayerDialog(playerid,11,DIALOG_STYLE_MSGBOX,"{1E90FF}Repair Car",string,"Platesc", "Close");
- CarExploded[playerid] = newcar-PreVehicle;
- return 1;
- }
- }
- /*/ if(newcar > PreVehicle)
- {
- format(string, sizeof(string), "KM: %d", CarData[newcar-PreVehicle][cKM]);
- TextDrawSetString(TextDrawSpeed[playerid][4], string);
- TextDrawShowForPlayer(playerid, TextDrawSpeed[playerid][4]);
- /}*/
- AsADriver[playerid] = 1;
- /* if(newcar > PreVehicle)
- {
- format(string, sizeof(string), "KM:~r~ %d", CarData[newcar-PreVehicle][cKM]);
- TextDrawSetString(TextDrawSpeed[playerid][4], string);
- TextDrawShowForPlayer(playerid, TextDrawSpeed[playerid][4]);
- TextDrawShowForPlayer(playerid, TextDrawSpeed[playerid][2]);
- TextDrawShowForPlayer(playerid, TextDrawSpeed[playerid][3]);
- }
- if(IsABike(GetPlayerVehicleID(playerid)))
- {
- switch(GetPlayerSkin(playerid))
- {
- #define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, SLOT, 18645, 2, (%0), (%1), (%2), (%3), (%4), (%5));
- case 0, 65, 74, 149, 208, 273: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
- case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
- case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
- case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
- case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
- case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
- case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
- case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
- case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
- }
- }*/
- if(GetPlayerDrunkLevel(playerid) >= 25000)
- {
- if(WantedLevel[playerid] >= 6)
- {
- WantedLevel[playerid] = 6;
- }
- else
- {
- WantedLevel[playerid] += 1;
- format(string, sizeof(string), "UPDATE players SET WantedLevel='%d' WHERE id=%d", WantedLevel[playerid], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,sendername,sizeof(sendername));
- SendClientMessage(playerid, COLOR_LIGHTRED, "Ai comis o crima ( Condus in stare de ebrietate ). Reporter: Necunoscut.");
- format(string, sizeof(string), "Current Wanted Level: %d", WantedLevel[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- foreach(Player, i)
- {
- if(PlayerData[i][pMember] == 1||PlayerData[i][pLeader] == 1||PlayerData[i][pMember] == 2||PlayerData[i][pLeader] == 2||PlayerData[i][pMember] == 3||PlayerData[i][pLeader] == 3)
- {
- SendClientMessage(i, TEAM_BLUE_COLOR, "HQ: Toate unitatile APB: Reporter: Unknown");
- format(string, sizeof(string), "HQ: Crima: Condus in stare de ebrietate, Suspect: %s",sendername);
- SendClientMessage(i, TEAM_BLUE_COLOR, string);
- }
- }
- }
- if((PlayerData[playerid][pCarLic] == 0 || PlayerData[playerid][pCarLic] == 2 || PlayerData[playerid][pCarLic] == 4 || PlayerData[playerid][pCarLic] == 1) && !IsPlayerNPC(playerid))
- {
- if(PlayerDrunk[playerid] >= 5)
- {
- WantedPoints[playerid] += 1;
- SetPlayerCriminal(playerid,255, "Condus in stare de ebrietate");
- PlayerData[playerid][pWantedPoints] = WantedPoints[playerid];
- format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[playerid][pWantedPoints], PlayerData[playerid][pSQLID]);
- mysql_query(string);
- }
- if(TakingLesson[playerid] == 1 || IsABmx(newcar) || IsSpawnCar(newcar) || Isferma(newcar))
- {
- }
- else
- {
- if(PlayerData[playerid][pCarLic] == 0)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_GRAD1,"Nu ai licenta de condus.");
- if(PlayerData[playerid][pOrigin] == 1)
- CP[playerid] = 1000;
- SetPlayerCheckpoint(playerid,1413.3684,-1700.7410,13.5423,7.0);
- }
- else if(PlayerData[playerid][pOrigin] == 2)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Ti-am pus un checkpoint pe harta.");
- if(PlayerData[playerid][pCarLic] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Dute la el pentru a da un examen pentru Carnetul de Conducere.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Dute la el pentru a da un examen pentru a primi mai repede permisul inapoi.");
- }
- }
- }
- }
- //nume masina cand intrii
- {
- format(string,sizeof(string), "~b~%s",ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- GameTextForPlayer(playerid, string, 2000, 1);
- }
- if(newcar == Rentcar[1] || newcar == Rentcar[2] || newcar == Rentcar[3] || newcar == Rentcar[4])
- {
- format(string,sizeof(string),"{DB8E12}Model: {C4C4C4}%s \n\n{DB8E12}Pret: {D21938}${C4C4C4}5000 \n\n{DB8E12}Apasa: {C4C4C4}Rent pentru a inchiria \n",ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- ShowPlayerDialog(playerid, 967, DIALOG_STYLE_MSGBOX, "{C4C4C4}Rent Car LS:", string, "Rent", "Cancel");
- }
- if(newcar == Rentcar[5] ||newcar == Rentcar[6] || newcar == Rentcar[7] || newcar == Rentcar[8] || newcar == Rentcar[9] || newcar == Rentcar[10] || newcar == Rentcar[11] || newcar == Rentcar[12] || newcar == Rentcar[13])
- {
- format(string,sizeof(string),"{DB8E12}Model: {C4C4C4}%s \n\n{DB8E12}Pret: {D21938}${C4C4C4}5000 \n\n{DB8E12}Apasa: {C4C4C4}Rent pentru a inchiria \n",ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- ShowPlayerDialog(playerid, 968, DIALOG_STYLE_MSGBOX, "{C4C4C4}Rent Car SF:", string, "Rent", "Cancel");
- }
- if(vehicleid == TruckJob[1] || vehicleid == TruckJob[2] || vehicleid == TruckJob[3] || vehicleid == TruckJob[4] || vehicleid == TruckJob[5] || vehicleid == TruckJob[6] || vehicleid == TruckJob[7] || vehicleid == TruckJob[8] || vehicleid == TruckJob[9] || vehicleid == TruckJob[10] || vehicleid == TruckJob[11] || vehicleid == TruckJob[12])
- {
- if(PlayerData[playerid][pJob] == 12) // LS
- {
- if(JobTruckCP[playerid] == 0)
- {
- CP[playerid] = 770;
- SetPlayerCheckpoint(playerid, -83.4907,-1126.2679,1.0847,7.0);
- JobTruckCP[playerid] = 1;
- }
- }
- }
- if(vehicleid == TruckJob[20] || vehicleid == TruckJob[21] || vehicleid == TruckJob[22] || vehicleid == TruckJob[23] || vehicleid == TruckJob[24] || vehicleid == TruckJob[25])
- {
- if(PlayerData[playerid][pJob] == 12) // LV
- {
- if(JobTruckCP[playerid] == 0)
- {
- CP[playerid] = 772;
- SetPlayerCheckpoint(playerid, 1607.7528,2294.6724,10.8203,7.0);
- JobTruckCP[playerid] = 1;
- }
- }
- }
- if(vehicleid == TruckJob[13] || vehicleid == TruckJob[14] || vehicleid == TruckJob[15] || vehicleid == TruckJob[16] || vehicleid == TruckJob[17] || vehicleid == TruckJob[18] || vehicleid == TruckJob[19])
- {
- if(PlayerData[playerid][pJob] == 12) // SF
- {
- if(JobTruckCP[playerid] == 0)
- {
- CP[playerid] = 771;
- SetPlayerCheckpoint(playerid, -2123.0281,-220.3708,35.3203,7.0);
- JobTruckCP[playerid] = 1;
- }
- }
- }
- if(vehicleid == buscar[1] || vehicleid == buscar[2] || vehicleid == buscar[3] || vehicleid == buscar[4] || vehicleid == buscar[5])
- {
- if(PlayerData[playerid][pJob] == 11)
- {
- new str2[182];
- TextDrawShowForPlayer(playerid, TextBusJob[playerid][2]);
- format(str2,sizeof(str2),"~w~Checkpoints: ~y~0~w~/~r~41");
- TextDrawSetString(TextBusJob[playerid][2], str2);
- CP[playerid] = 2000;
- SetPlayerRaceCheckpoint(playerid, 0,1690.1359,-2197.4102,13.4788,270.6487,133,3,3);
- GameTextForPlayer(playerid, "~g~Urmeaza CheckPointurile de Map~n~~w~Succes", 5000, 3);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti Sofer de autobuz.");
- RemovePlayerFromVehicle(playerid);
- }
- return 1;
- }
- if(IsACopCar(newcar))
- {
- if(IsACop(playerid)) { }
- else
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_GRAD1,"Nu poti conduce o masina de politie.");
- }
- }
- else if(IsAnAmbulance(newcar))
- {
- if(PlayerData[playerid][pMember] == 4 || PlayerData[playerid][pLeader] == 4) { }
- else
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_GRAD1,"Nu poti conduce o ambulanta.");
- }
- }
- if(IsATruck(newcar))
- {
- format(string, sizeof(string), "Produse: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
- SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
- SendClientMessage(playerid, COLOR_WHITE, "INFO: Poti sa livrezi produse la afaceri.");
- SendClientMessage(playerid, COLOR_WHITE, "INFO: Comenzile sunt /load /buyprods /sellprods");
- }
- if(newcar == RobCar)
- {
- if(PlayerData[playerid][pLevel] >= 5)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Tasteaza {FFFFFF}/rob{FFFFFF} pentru a jefui Banca!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai nevoie de Level 5 pentru a conduce aceasta Duba !");
- RemovePlayerFromVehicle(playerid);
- }
- if(IsACop(playerid))
- {
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Politistii nu pot conduce aceasta duba pentru rob.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(PlayerKarting[playerid] != 0)
- {
- new kart2 = GetPlayerVehicleID(playerid);
- if(kart2==kart[1]||kart2==kart[2]||kart2==kart[3]||kart2==kart[4]||kart2==kart[5]||kart2==kart[6])
- {
- PlayerInKart[playerid] = 1;
- KartingPlayers ++;
- }
- }
- if(newcar==kart[1]||newcar==kart[2]||newcar==kart[3]||newcar==kart[4]||newcar==kart[5]||newcar==kart[6])
- {
- if(PlayerKarting[playerid] != 1)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_GRAD1,"Nu ai inchiriat un kart.");
- }
- }
- if(newcar>PreVehicle)
- {
- if(CarData[newcar - PreVehicle][cOwned] == 0 && CarData[newcar - PreVehicle][cModel] >= 400 && CarData[newcar - PreVehicle][cModel] <= 611 && PreVehicle < newcar)
- {
- TextDrawShowForPlayer(playerid, GireadaV4[playerid]);
- TextDrawShowForPlayer(playerid, GireadaV7[playerid]);
- TextDrawShowForPlayer(playerid, GireadaV1[playerid]);
- TextDrawShowForPlayer(playerid, GireadaV2[playerid]);
- TextDrawShowForPlayer(playerid, GireadaV3[playerid]);
- TextDrawShowForPlayer(playerid, GireadaV5[playerid]);
- TextDrawShowForPlayer(playerid, GireadaV6[playerid]);
- new str2[182];
- format(str2, sizeof(str2), "Vehicul:~y~%s",ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- TextDrawSetString(GireadaV2[playerid], str2);
- format(str2, sizeof(str2), "Pret:~y~%d~g~$",CarData[newcar- PreVehicle][cValue]);
- TextDrawSetString(GireadaV3[playerid], str2);
- //format(string,sizeof(string),"~w~Vehicul: %s~n~Pret: ~g~%d~n~~w~/buyvehicle pentru a cumpara sau apasa~n~~r~ENTER ~w~ca sa cobori",CarData[newcar- PreVehicle][cDescription],CarData[newcar- PreVehicle][cValue]);
- //GameTextForPlayer(playerid,string,5000,5);
- }
- if(CarData[newcar - PreVehicle][cOwned] == 1 && CarData[newcar - PreVehicle][cModel] >= 400 && CarData[newcar - PreVehicle][cModel] <= 611 && PreVehicle < newcar)
- {
- format(string, sizeof(string), "{FFFFFF}Acest vehicul: {A5FA26}%s {FFFFFF} ii apartine lui:{FAA404} %s", ArIsim[GetVehicleModel(GetPlayerVehicleID(playerid))-400],CarData[newcar- PreVehicle][cOwner]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- if(Radio[vehicleid] == 0)
- {
- {
- StopAudioStreamForPlayer(playerid);
- }
- }
- if(Radio[vehicleid] == 1)
- {
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://live1.radiovip.ro:8969");// Radio Vip Romania
- }
- }
- if(Radio[vehicleid] == 2){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.radiotequila.ro/hiphop.m3u");// Radio Tequila Hip-Hop
- }
- }
- if(Radio[vehicleid] == 3){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3.radiohot.ro:8000/listen.pls");// Radio Hot
- }
- }
- if(Radio[vehicleid] == 4){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://rbandit.dyndns.tv:8000");// Radio Bandit
- }
- }
- if(Radio[vehicleid] == 5){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://live.radiogangsta.ro:8800");// Radio Gangsta
- }
- }
- if(Radio[vehicleid] == 6){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://dance.radiogangsta.ro:8800");// Radio Gangsta Dance
- }
- }
- if(Radio[vehicleid] == 7){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.radio-hit.ro/asculta.m3u");// Radio Hit Romania.
- }
- }
- if(Radio[vehicleid] == 8){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://radiotaraf.com/live.m3u");// Radio Taraf Romania
- }
- }
- if(Radio[vehicleid] == 9){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");// Pro FM Romania
- }
- }
- if(Radio[vehicleid] == 10){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://asculta.radiomynele.ro:8000");// Radio Mynele Romania
- }
- }
- if(Radio[vehicleid] == 11){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://dubstep.fm/128.pls");// Radio Dubstep
- }
- }
- if(Radio[vehicleid] == 12){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://nextgen.go.ro:8012");// Radio Greu de Difuzat Hip-Hop
- }
- }
- if(Radio[vehicleid] == 13){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://live.radioclubmix.ro:9999");// Radio ClubMix Romania
- }
- }
- if(Radio[vehicleid] == 14){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://pub2.radiotunes.com:80/radiotunes_urbanjamz");// SKY.FM - Urban Jamz
- }
- }
- if(Radio[vehicleid] == 15){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://pub6.radiotunes.com:80/radiotunes_tophits");// SKY.FM - Top Hits
- }
- }
- if(Radio[vehicleid] == 16){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://livemp3.radiopopular.ro:7777");// Radio Popular
- }
- }
- if(Radio[vehicleid] == 17){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.partyradio.ro/live.m3u");// Radio Party Romania
- }
- }
- if(Radio[vehicleid] == 18){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.radiodiz.com/livediz.m3u");// Radio Diz
- }
- }
- if(Radio[vehicleid] == 19){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://7619.live.streamtheworld.com:80/977_HITS_SC");// .977 Hitz
- }
- }
- if(Radio[vehicleid] == 20){
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://7639.live.streamtheworld.com:80/977_MIX_SC");// .977 Mix
- }
- }
- if(newcar == ferma[1] || newcar == ferma[2] || newcar == ferma[3] || newcar == ferma[4] || newcar == ferma[5])
- {
- if(PlayerData[playerid][pJob] == 20)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/baloti {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti distribuitor de baloti !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==tren[1]||newcar==tren[2]||newcar==tren[3]||newcar==tren[4])
- {
- if(PlayerData[playerid][pJob] == 17)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/starttren {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti sofer de tren !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == barc[1] || newcar == barc[2] || newcar == barc[4] || newcar == barc[5])
- {
- if(PlayerData[playerid][pJob] == 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/transporta {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti Barcagiu !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == ferma[8] || newcar == ferma[9] || newcar == ferma[10] || newcar == ferma[11] || newcar == ferma[12])
- {
- if(PlayerData[playerid][pJob] == 16)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/startar {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti Tractorist.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==hitmancar[1]||newcar==hitmancar[2]||newcar==hitmancar[3]||newcar==hitmancar[4]||newcar==hitmancar[5]||newcar==hitmancar[6]||newcar==hitmancar[7]||newcar==hitmancar[8])
- {
- if(PlayerData[playerid][pMember] != 8 && PlayerData[playerid][pLeader] != 8 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din {91413C}Hitman Agency");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==sicar[1]||newcar==sicar[2]||newcar==sicar[3]||newcar==sicar[4]||newcar==sicar[5]||newcar==sicar[6]||newcar==sicar[7]||newcar==sicar[8])
- {
- if(PlayerData[playerid][pMember] != 7 && PlayerData[playerid][pLeader] != 7 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti instructor!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==MechCar[1]||newcar==MechCar[2]||newcar==MechCar[3]||newcar==MechCar[4]||newcar==MechCar[5]||newcar==MechCar[6]||newcar==MechCar[7]||newcar==MechCar[8])
- {
- if(PlayerData[playerid][pJob] != 6)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti Mecanic auto.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==seccar[1]||newcar==seccar[2]||newcar==seccar[3]||newcar==seccar[4])
- {
- if(PlayerData[playerid][pMember] != 17 && PlayerData[playerid][pLeader] != 17 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din organizatia Total Security");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == dmv[1] || newcar == dmv[2] || newcar == dmv[3] || newcar == dmv[4])
- {
- if(TakingLesson[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Aceasta masina poate fi condusa doar in timpul examenului auto.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==guvcar[1]||newcar==guvcar[2]||newcar==guvcar[3]||newcar==guvcar[4]||newcar==guvcar[5]||newcar==guvcar[6])
- {
- if(PlayerData[playerid][pMember] != 18 && PlayerData[playerid][pLeader] != 18 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din factiunea Guvern");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==nrcar[1]||newcar==nrcar[2]||newcar==nrcar[3]||newcar==nrcar[4]||newcar==nrcar[5]||newcar==nrcar[6])
- {
- if(PlayerData[playerid][pMember] != 9 && PlayerData[playerid][pLeader] != 9 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din News Reporter!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==smurdcar[1]||newcar==smurdcar[2]||newcar==smurdcar[3]||newcar==smurdcar[4]||newcar==smurdcar[5]||newcar==smurdcar[6]||newcar==smurdcar[7] ||newcar==smurdcar[8] ||newcar==smurdcar[9])
- {
- if(PlayerData[playerid][pMember] != 4 && PlayerData[playerid][pLeader] != 4 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti in S.M.U.R.D.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==taxicar[1]||newcar==taxicar[2]||newcar==taxicar[3]||newcar==taxicar[4]||newcar==taxicar[5]||newcar==taxicar[6]||newcar==taxicar[7]||newcar==taxicarTune[1]||newcar==taxicarTune[2]||newcar==taxicarIN[1]||newcar==taxicarBU[1]||newcar==taxicarTU[1])
- {
- if(PlayerData[playerid][pMember] != 6 && PlayerData[playerid][pLeader] != 6 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti taximetrist!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==FastCarSultan[1]||newcar==FastCarInfernus[1]||newcar==FastCarTurismo[1]||newcar==FastCarElegy[1]||newcar==FastCarBullet[1]||newcar==FastCarFlash[1]||newcar==FastCarJester[1]||newcar==FastCarUranus[1]||newcar==FastCarStratum[1])
- {
- if(PlayerData[playerid][pMember] != 19 && PlayerData[playerid][pLeader] != 19 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din {C70D7D}Fast and Furious");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==FarmCar[1]|| newcar==FarmCar[2]|| newcar==FarmCar[3]|| newcar==FarmCar[4])
- {
- if(PlayerData[playerid][pJob] == 13)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/farm {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nu esti fermier !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==FarmCar[1]|| newcar==FarmCar[2]|| newcar==FarmCar[3]|| newcar==FarmCar[4])
- {
- if(PlayerData[playerid][pJob] == 13)
- {
- Sweeps[playerid] = 2;
- SCM(playerid, COLOR_YELLOW, "Mergi cu tractorul 2 minute pentru a fi platit. ");
- MowerMoney[playerid] = 120;
- mowertimer[playerid] = SetTimerEx("SetMower", 1000, false, "i", playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nu esti fermier !");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==pizzaboyc[1]||newcar==pizzaboyc[2]||newcar==pizzaboyc[3]||newcar==pizzaboyc[4]||newcar==pizzaboyc[5]||newcar==pizzaboyc[6])
- {
- if(PlayerData[playerid][pJob] == 9)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/pizza {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nu esti Pizza Boy.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == gunoiercar[1] || newcar == gunoiercar[2] || newcar == gunoiercar[3] || newcar == gunoiercar[4] || newcar == gunoiercar[5])
- {
- if(PlayerData[playerid][pJob] == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/gunoi {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nu esti Gunoier.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar==TruckJob[1]||newcar==TruckJob[2]||newcar==TruckJob[3])
- {
- if(PlayerData[playerid][pJob] == 12)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "{C4C4C4}Foloseste: {DB8E12}/truck {C4C4C4}pentru a incepe munca");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Nu esti Camionagiu.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(IsAGroveStreetCar(newcar))
- {
- if(PlayerData[playerid][pMember] == 11 || PlayerData[playerid][pLeader] == 11 ) { }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din {1BC708}Grove Street!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(IsATheBallasCar(newcar))
- {
- if(PlayerData[playerid][pMember] == 12 || PlayerData[playerid][pLeader] == 12 ) { }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din The Ballas!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(IsALosVagosCar(newcar))
- {
- if(PlayerData[playerid][pMember] == 13 || PlayerData[playerid][pLeader] == 13 ) { }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din Los Vagos!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(IsATheRussianMafiaCar(newcar))
- {
- if(PlayerData[playerid][pMember] == 16 || PlayerData[playerid][pLeader] == 16 ) { }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din {575757}The Russian Mafia!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(IsALosAztecasCar(newcar))
- {
- if(PlayerData[playerid][pMember] == 15 || PlayerData[playerid][pLeader] == 15 ) { }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din Los Aztecas!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(IsATheRifaCar(newcar))
- {
- if(PlayerData[playerid][pMember] == 14 || PlayerData[playerid][pLeader] == 14) { }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din The Rifa!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == copcar[43] || newcar == copcar[42] || newcar == copcar[36] || newcar == copcar[40] || newcar == copcar[44] || newcar == copcar[45] || newcar == copcar[48] || newcar == copcar[47] || newcar == copcar[63] || newcar == copcar[64] || newcar == copcar[65] || newcar == copcar[66])
- {
- if(PlayerData[playerid][pMember] != 1 && PlayerData[playerid][pLeader] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru Politia Romana.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == copcar[13] || newcar == copcar[5] || newcar == copcar[28] || newcar == copcar[29] || newcar == copcar[30] || newcar == copcar[31] || newcar == copcar[33] || newcar == copcar[49] || newcar == copcar[46] || newcar == copcar[62] || newcar == copcar[75] || newcar == copcar[76])
- {
- if(PlayerData[playerid][pMember] != 1 && PlayerData[playerid][pLeader] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru {1A2CED}Politia Romana");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == copcar[39] || newcar == copcar[58] || newcar == copcar[59] || newcar == copcar[60] || newcar == copcar[61] || newcar == copcar[54] || newcar == copcar[55] || newcar == copcar[56] || newcar == copcar[57])
- {
- if(PlayerData[playerid][pMember] != 1 && PlayerData[playerid][pLeader] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru {1A2CED}Politia Romana.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == FBICar[1] || newcar == FBICar[2] || newcar == copcar[34] || newcar == copcar[35] || newcar == copcar[38] || newcar == copcar[32] || newcar == copcar[14] || newcar == copcar[15])
- {
- if(PlayerData[playerid][pMember] != 2 && PlayerData[playerid][pLeader] != 2)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru F.B.I.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == PRCar[4] || newcar == PRCar[5] || newcar == PRCar[6])
- {
- if(PlayerData[playerid][pMember] != 1 && PlayerData[playerid][pLeader] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru {1A2CED}Politia Roamana.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == PRCar[1] || newcar == PRCar[2] || newcar == PRCar[3])
- {
- if(PlayerData[playerid][pMember] != 1 && PlayerData[playerid][pLeader] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din {1A2CED}Politia Romana.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == RromCar[1] || newcar == RromCar[2] || newcar == RromCar[3] || newcar == RromCar[4] || newcar == RromCar[5])
- {
- if(PlayerData[playerid][pMember] != 5 && PlayerData[playerid][pLeader] != 5)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din Rromi Los Santos!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == BikersLS[1] || newcar == BikersLS[2] || newcar == BikersLS[3] || newcar == BikersLS[4] || newcar == BikersLS[5] || newcar == BikersLS[6] || newcar == BikersLS[7] || newcar == BikersLS[8] || newcar == BikersLS[9] || newcar == BikersLS[10] || newcar == BikersLS[11] || newcar == BikersLS[12] || newcar == BikersLS[13] || newcar == BikersLS[14] || newcar == BikersLS[15] || newcar == BikersLS[16])
- {
- if(PlayerData[playerid][pMember] != 10 && PlayerData[playerid][pLeader] != 10)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte din Bikers LS");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == copcar[68] || newcar == copcar[69] || newcar == copcar[70] || newcar == copcar[71] || newcar == copcar[72] || newcar == copcar[73]) // poponaut
- {
- if(PlayerData[playerid][pMember] != 3 && PlayerData[playerid][pLeader] != 3)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru A.R.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == copcar[16] || newcar == copcar[17] || newcar == copcar[74] || newcar == copcar[77] || newcar == copcar[78] || newcar == copcar[41] || newcar == copcar[4])
- {
- if(PlayerData[playerid][pMember] != 3 && PlayerData[playerid][pLeader] != 3)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru A.R.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(newcar == copcar[20] || newcar == copcar[21] || newcar == copcar[23] || newcar == copcar[24] || newcar == copcar[25] || newcar == copcar[26] || newcar == copcar[27])
- {
- if(PlayerData[playerid][pMember] != 3 && PlayerData[playerid][pLeader] != 3)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti membru A.R.");
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(oldcar != 301)
- {
- if((housecar != oldcar && oldcar != 0) && (HireCar[playerid] != oldcar && newcar != housecar))
- {
- if(gLastDriver[oldcar] == playerid && oldcar != newcar)
- {
- gLastDriver[oldcar] = 300;
- }
- }
- }
- gLastCar[playerid] = newcar;
- gLastDriver[newcar] = playerid;
- }
- if(newstate == PLAYER_STATE_SPAWNED)
- {
- new Float: lwx, Float:lwy, Float:lwz;
- GetPlayerPos(playerid, lwx, lwy, lwz);
- if((lwz > 530.0 && PlayerData[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1))
- {
- SetPlayerSpawn(playerid);
- }
- if(PlayerData[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
- else { SetPlayerHealth(playerid, 100); }
- gPlayerSpawned[playerid] = 1;
- SafeTime[playerid] = 60;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement