Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( newkeys == KEY_SECONDARY_ATTACK )
- {
- for(new i; i < MAX_FIRMI; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ]) && !IsPlayerInAnyVehicle(playerid))
- {
- if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ) return SCM(playerid,-1,""CRVENA"[UB:RP] "SIVA"Ne mozete uci u tu firmu!");
- if(FirmaInfo[i][fZatvoreno] == 1) return GameTextForPlayer(playerid,"~w~Firma ~b~zakljucana",5000,3);
- SetPlayerVirtualWorld(playerid, FirmaInfo[i][fVW]);
- SetPlayerInterior(playerid, FirmaInfo[i][fInt]);
- JBC_SetPlayerPos(playerid, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ]);
- UsaoFirma[playerid] = i;
- if(FirmaInfo[i][fVrsta] == VRSTA_MARKET) GameTextForPlayer(playerid,"~w~Usli ste u market~n~~b~/kupi",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_SEXSHOP) GameTextForPlayer(playerid,"~w~Usli ste u sex shop~n~~r~/kupi",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_GUNSHOP) GameTextForPlayer(playerid,"~w~Usli ste u gun shop~n~~b~/kupi",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_RESTORAN) GameTextForPlayer(playerid,"~w~Usli ste u restoran~n~~b~/meni",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_BURG) GameTextForPlayer(playerid,"~w~Usli ste u burg~n~~b~/meni",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_CLUCKIN) GameTextForPlayer(playerid,"~w~Usli ste u cluckin~n~~b~/meni",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_PIZZA) GameTextForPlayer(playerid,"~w~Usli ste u piceriju~n~~b~/meni",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_DISCO) GameTextForPlayer(playerid,"~w~Usli ste u disco~n~~b~/pice",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_BAR) GameTextForPlayer(playerid,"~w~Usli ste u bar~n~~b~/pice",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_PIGPEN) GameTextForPlayer(playerid,"~w~Usli ste u pig pen~n~~b~/pice",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_GYM) GameTextForPlayer(playerid,"~w~Usli ste u teretanu~n~~b~/teretana",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_BARBER) GameTextForPlayer(playerid,"~w~Usli ste u frizerski salon~n~~b~/frizura",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_BINCO) GameTextForPlayer(playerid,"~w~Usli ste u binco butik~n~~b~/odjeca",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_VICTIM) GameTextForPlayer(playerid,"~w~Usli ste u victim butik~n~~b~/odjeca",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_SUBURBAN) GameTextForPlayer(playerid,"~w~Usli ste u suburban butik~n~~b~/odjeca",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_ZIP) GameTextForPlayer(playerid,"~w~Usli ste u zip butik~n~~b~/odjeca",5000,3);
- else if(FirmaInfo[i][fVrsta] == VRSTA_KLADIONICA) GameTextForPlayer(playerid,"~w~Usli ste u kladionicu~n~~w~za kupovinu listica ~r~/kupi",5000,3);
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])
- && GetPlayerVirtualWorld(playerid) == FirmaInfo[i][fVW] && !IsPlayerInAnyVehicle(playerid))
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- JBC_SetPlayerPos(playerid, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ]);
- JBC_TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- UsaoFirma[playerid] = -1;
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement