Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- new sendername[MAX_PLAYER_NAME];
- new stringent[64];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(stringent, sizeof(stringent), " %s ulazi u vozilo.", sendername);
- ProxDetector(10.0, playerid, stringent,PROX,PROX,PROX,PROX,PROX);
- //------------------------------------------------------------------------//
- new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- SCM(playerid,-1,"[Vozilo] "ZELENA"Ulazite u vozilo! TEMPOMAT - Y !");
- SCM(playerid,-1,"[Vozilo] "ZELENA"SVETLA - /svetlaon /svetlaoff!");
- new string[128], vozilo;
- for(new i = 0; i < sizeof(VoziloInfo); i++)
- {
- if(VoziloInfo[i][vID] == vozilo)
- {
- if(VoziloInfo[i][vImaVlasnika] == 1)
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- format(string,sizeof(string),""SPLAVA"Privatno Auto | "SIVA"Vlasnik: "SPLAVA"%s | "ZELENA"ID: %i", VoziloInfo[i][vVlasnik], i);
- SCM(playerid,-1,string);
- }
- else if(PlayerInfo[playerid][pPosedovanjeAuta] == i)
- {
- SCM(playerid,-1,"[LG:RP] "ZELENA"Ulazite u vase vozilo!");
- }
- else if(VoziloInfo[i][vZakljucan] == 0)
- {
- SCM(playerid,-1,""SPLAVA"Privatno Auto");
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- SCM(playerid,-1,""SPLAVA"Zakljucano Auto");
- }
- //--------------------------------------------------------------------//
- if(vehicleid >= vmotosalon[0] && vehicleid <= vmotosalon[9])
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- SCM(playerid,-1,"LG:RP | "CRVENA"Ne mozete uci u izlozbeno vozilo!");
- }
- if(vehicleid == IzlozbenoAuto)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- SCM(playerid,-1,"LG:RP | "CRVENA"Ne mozete uci u izlozbeno vozilo!");
- }
- if(AutoSalonVozila(vehicleid))
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- SCM(playerid,-1,"LG:RP | "CRVENA"Ne mozete uci u izlozbeno vozilo!");
- }
- if(PolicijskaAuta(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 1)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~b~Los Santos Police Department!", 2500, 5);
- }
- }
- else if(TVFAuta(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 2)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~r~The Vinci Family!", 2500, 5);
- }
- }
- else if(BDTVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 3)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~l~Black Dragon Triads!", 2500, 5);
- }
- }
- else if(GroveVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 4)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~g~Grove Stret Family!", 2500, 5);
- }
- }
- else if(BallasVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 5)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~w~Ballas!", 2500, 5);
- }
- }
- else if(NovinariVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 6)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~y~Los Santos Novinari!", 2500, 5);
- }
- }
- else if(SherifVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 7)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~y~Sherif!", 2500, 5);
- }
- }
- else if(PSVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 8)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~y~Parking Servis!", 2500, 5);
- }
- }
- else if(CondorVozila(vehicleid))
- {
- if(PlayerInfo[playerid][pClan] != 9)
- {
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- GameTextForPlayer(playerid, "~y~Condor!", 2500, 5);
- }
- }
- }
- }
- }
- return 1;
- }
- //----------------------------------------------------------------------------//
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- new sendername[MAX_PLAYER_NAME];
- new stringext[64];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(stringext, sizeof(stringext), " %s izlazi iz vozila.", sendername);
- ProxDetector(10.0, playerid, stringext,PROX,PROX,PROX,PROX,PROX);
- return 1;
- }
- //----------------------------------------------------------------------------//
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new vozilo = GetPlayerVehicleID(playerid);
- new vIDs = GetPlayerVehicleID(playerid), vrsta[20];
- if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- new string[128];
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[0][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[0][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[1][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[1][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[2][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[2][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[3][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[3][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[4][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[4][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[5][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[5][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[6][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[6][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[7][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[7][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[8][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[8][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[9][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[9][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[10][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[10][playerid]);
- if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[11][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[11][playerid]);
- //--------------------------------------------------------------------//
- format(vrsta, sizeof(vrsta), "%s", ImenaVozila[GetVehicleModel(vozilo) - 400]);
- PlayerTextDrawSetString(playerid, BRZINOMER[9][playerid], vrsta);
- PlayerTextDrawSetPreviewVehCol(playerid, BRZINOMER[4][playerid], 1, 1);
- PlayerTextDrawSetPreviewModel(playerid, BRZINOMER[4][playerid], GetVehicleModel(vIDs));
- if(newstate == PLAYER_STATE_DRIVER)
- {
- PlayerTextDrawShow(playerid, BRZINOMER[5][playerid]);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- if(engine == 0 || engine == -1)
- {
- format(string, sizeof(string), "~r~o");
- PlayerTextDrawSetString(playerid,BRZINOMER[5][playerid], string);
- }
- else if(engine == 1)
- {
- format(string, sizeof(string), "~g~o");
- PlayerTextDrawSetString(playerid,BRZINOMER[5][playerid], string);
- }
- }
- }
- //------------------------------------------------------------------------//
- if(newstate == PLAYER_STATE_DRIVER)
- {
- for(new i = 0; i < sizeof(VoziloInfo); i++)
- {
- if(VoziloInfo[i][vID] == vozilo)
- {
- new cijena = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
- if(VoziloInfo[i][vImaVlasnika] == 0)
- {
- SCM(playerid,-1,""SPLAVA"Polovan auto na prodaju | /kupiauto | /izlaz");
- new string[128];
- format(string, charsmax(string), ""SPLAVA"Cena: "BELA"%d$ | "SPLAVA"Model: "BELA"%s",AutoSalon[cijena][1]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
- SCM(playerid,-1, string);
- UsaoAutoProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
- return 1;
- }
- }
- }
- //--------------------------------------------------------------------//
- for(new i = 0; i < sizeof(MotorInfo); i++)
- {
- if(MotorInfo[i][mID] == vozilo)
- {
- if(MotorInfo[i][mImaVlasnika] == 0)
- {
- SCM(playerid,-1,""ZUTA"Polovan motor na prodaju | /kupimotor | /izlaz");
- new string[128];
- format(string, charsmax(string), ""ZUTA"Cena: "BELA"%d$ | "ZUTA"Model: "BELA"%s",MotorInfo[i][mCijena]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
- SCM(playerid,-1, string);
- UsaoMotorProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
- return 1;
- }
- }
- }
- //--------------------------------------------------------------------//
- for(new i = 0; i < sizeof(AvionInfo); i++)
- {
- if(AvionInfo[i][avID] == vozilo)
- {
- if(AvionInfo[i][avImaVlasnika] == 0)
- {
- SCM(playerid,-1,""ZUTA"Polovana letjelica na prodaju | /kupiletjelicu | /izlaz");
- new string[128];
- format(string, charsmax(string), ""ZUTA"Cena: "BELA"%d$ | "ZUTA"Model: "BELA"%s",AvionInfo[i][avCijena]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
- SCM(playerid,-1, string);
- UsaoAvionProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
- return 1;
- }
- }
- }
- //--------------------------------------------------------------------//
- for(new i = 0; i < sizeof(PlovilaInfo); i++)
- {
- if(PlovilaInfo[i][plID] == vozilo)
- {
- if(PlovilaInfo[i][plImaVlasnika] == 0)
- {
- SCM(playerid,-1,""ZUTA"Polovno plovilo na prodaju | /kupiplovilo | /izlaz");
- new string[128];
- format(string, charsmax(string), ""ZUTA"Cena: "BELA"%d$ | "ZUTA"Model: "BELA"%s",PlovilaInfo[i][plCijena]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
- SCM(playerid,-1, string);
- UsaoPloviloProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
- return 1;
- }
- }
- }
- //--------------------------------------------------------------------//
- if(vozilo >= vkarting[0] && vozilo <= vkarting[6])
- {
- if(Zeton[playerid] == 0)
- {
- SCM(playerid,-1,"LG:RP | "CRVENA"Morate kupiti zeton!"); RemovePlayerFromVehicle(playerid);
- return 1;
- }
- else if(Zeton[playerid] == 1)
- {
- SCM(playerid,-1,"[LG:RP] "ZUTA"Srecno u voznji, zeton traje 4 minuta!");
- zeton[playerid] = SetTimerEx("KartingZeton", 240000, false, "i", playerid);
- }
- }
- //--------------------------------------------------------------------//
- if(vozilo >= askolavozila[0] && vozilo <= askolavozila[8])
- {
- if(Poligon[playerid] == 0)
- {
- SCM(playerid, -1, ""PPLAVA"[AS]: "CRVENA"Nemate uplaceno polaganje...");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(Poligon[playerid] == 1)
- {
- SetPlayerCheckpoint(playerid, 1544.3151,-2243.0063,13.5469, 2.5);
- SCM(playerid, -1, ""PPLAVA"[AS]: "BELA"Krenuli ste sa polaganjem pratite crvene markere!");
- }
- }
- //--------------------------------------------------------------------//
- if(BiciklaRent(vozilo))
- {
- if (Rentano[playerid] != vozilo)
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid,"~w~Mozete rentati ovo biciklo ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~30$",5000,3);
- }
- }
- //--------------------------------------------------------------------//
- if(MotoRent(vozilo))
- {
- if (Rentano[playerid] != vozilo)
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid,"~w~Mozete rentati ovaj motor ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~80$",5000,3);
- }
- }
- //--------------------------------------------------------------------//
- if(AutaRent(vozilo))
- {
- if (Rentano[playerid] != vozilo)
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid,"~w~Mozete rentati ovo vozilo ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~120$",5000,3);
- }
- }
- //--------------------------------------------------------------------//
- if(SpawnRent(vozilo))
- {
- if (Rentano[playerid] != vozilo)
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid,"~w~Mozete rentati ovo vozilo ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~130$",5000,3);
- }
- }
- //--------------------------------------------------------------------//
- if(VoziloJeKamion(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- if(PlayerInfo[playerid][pKamionDozvola] <= 0)
- {
- SCM(playerid,-1,""CRVENA"[LG:RP]: "ZUTA"Nemate dozvolu za kamion, kupite je u auto skoli!");
- }
- }
- //--------------------------------------------------------------------//
- if(VoziloJeAvion(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- if(PlayerInfo[playerid][pAvionDozvola] <= 0)
- {
- SCM(playerid,-1,""CRVENA"[LG:RP]: "ZUTA"Nemate dozvolu za letjelicu, kupite je u auto skoli!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- //--------------------------------------------------------------------//
- if(VoziloJeBrod(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- if(PlayerInfo[playerid][pBrodDozvola] <= 0)
- {
- SCM(playerid,-1,""CRVENA"[LG:RP]: "ZUTA"Nemate dozvolu za plovilo, kupite je u auto skoli!");
- RemovePlayerFromVehicle(playerid);
- }
- }
- //--------------------------------------------------------------------//
- if(VoziloJeMotor(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- if(PlayerInfo[playerid][pMotorDozvola] <= 0)
- {
- SCM(playerid,-1,""CRVENA"[LG:RP]: "ZUTA"Nemate dozvolu za motor, kupite je u auto skoli!");
- }
- }
- //--------------------------------------------------------------------//
- if(!VoziloJeMotor(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeAvion(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeBrod(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeKamion(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- if(PlayerInfo[playerid][pADozvola] <= 0)
- {
- SCM(playerid,-1,""CRVENA"[LG:RP]: "ZUTA"Nemate dozvolu za voznju, kupite je u auto skoli!");
- }
- }
- //--------------------------------------------------------------------//
- if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
- }
- //--------------------------------------------------------------------//
- if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(vozilo, engine, lights, alarm, doors, bonnet, boot, objective);
- if(engine == -1 && !VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- SetVehicleParamsEx(vozilo, 0, 0, alarm, doors, bonnet, boot, objective);
- }
- }
- //--------------------------------------------------------------------//
- if(BusVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_BUSVOZAC)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao bus vozac!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/linija /prekiniposao");
- }
- //--------------------------------------------------------------------//
- if(KosenjeVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_KOSACTRAVE)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao kosac trave!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/kositravu /prekiniposao");
- }
- //--------------------------------------------------------------------//
- if(MehanicarVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_MEHANICAR)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao mehanicar!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"CTRL da zakacite/otkacite vozilo | /popravi | /napuni");
- }
- //--------------------------------------------------------------------//
- if(PostaVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_POSTAR)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao postar!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/posta /prekiniposao");
- }
- //--------------------------------------------------------------------//
- if(KomunalnoVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_KOMUNALAC)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao komunalac!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/komunalno /prekiniposao");
- }
- //--------------------------------------------------------------------//
- if(GradjevinarVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_GRADJEVINAR)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao gradjevinar!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/malter /poravnaj /prekiniposao");
- }
- //--------------------------------------------------------------------//
- if(BolnicarVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_BOLNICAR)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao bolnicar!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/izleci /oprema");
- }
- //--------------------------------------------------------------------//
- if(GrobarVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_GROBAR)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao grobar!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/grobar /oprema");
- }
- //--------------------------------------------------------------------//
- if(FarmerVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_FARMER)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao farmer!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/mleko /oranje /vrsenje");
- }
- //--------------------------------------------------------------------//
- if(vozilo == VozVozilo)
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_MASINOVODJA)
- {
- new Float:Poz[3];
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao masinovodja!");
- GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]+0.5);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/voz");
- }
- //--------------------------------------------------------------------//
- if(DostavljacVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_DOSTAVLJAC)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao dostavljac!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/uzmikutiju /utovari /istovari");
- }
- //--------------------------------------------------------------------//
- if(KamiondzijaVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_KAMIONDZIJA)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao kamiondzija!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/tura /oprema");
- }
- //--------------------------------------------------------------------//
- if(PilotVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_PILOT)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao pilot!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/let /oprema");
- }
- //--------------------------------------------------------------------//
- if(ElektricarVozila(vozilo))
- {
- if(PlayerInfo[playerid][pPosao] != POSAO_ELEKTRICAR)
- {
- SCM(playerid, -1, ""CRVENA"[LG:RP]: "SIVA"Niste zaposleni kao elektricar!");
- RemovePlayerFromVehicle(playerid);
- }
- else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"/kvar /oprema");
- }
- }
- //------------------------------------------------------------------------//
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement