Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. if( newkeys == KEY_SECONDARY_ATTACK )
  2. {
  3. for(new i; i < MAX_FIRMI; i++)
  4. {
  5. if(IsPlayerInRangeOfPoint(playerid, 3.0, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ]) && !IsPlayerInAnyVehicle(playerid))
  6. {
  7. if(FirmaInfo[i][fVrsta] == VRSTA_SBIZZ) return SCM(playerid,-1,""CRVENA"[UB:RP] "SIVA"Ne mozete uci u tu firmu!");
  8. if(FirmaInfo[i][fZatvoreno] == 1) return GameTextForPlayer(playerid,"~w~Firma ~b~zakljucana",5000,3);
  9. SetPlayerVirtualWorld(playerid, FirmaInfo[i][fVW]);
  10. SetPlayerInterior(playerid, FirmaInfo[i][fInt]);
  11. JBC_SetPlayerPos(playerid, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ]);
  12. UsaoFirma[playerid] = i;
  13. if(FirmaInfo[i][fVrsta] == VRSTA_MARKET) GameTextForPlayer(playerid,"~w~Usli ste u market~n~~b~/kupi",5000,3);
  14. else if(FirmaInfo[i][fVrsta] == VRSTA_SEXSHOP) GameTextForPlayer(playerid,"~w~Usli ste u sex shop~n~~r~/kupi",5000,3);
  15. else if(FirmaInfo[i][fVrsta] == VRSTA_GUNSHOP) GameTextForPlayer(playerid,"~w~Usli ste u gun shop~n~~b~/kupi",5000,3);
  16. else if(FirmaInfo[i][fVrsta] == VRSTA_RESTORAN) GameTextForPlayer(playerid,"~w~Usli ste u restoran~n~~b~/meni",5000,3);
  17. else if(FirmaInfo[i][fVrsta] == VRSTA_BURG) GameTextForPlayer(playerid,"~w~Usli ste u burg~n~~b~/meni",5000,3);
  18. else if(FirmaInfo[i][fVrsta] == VRSTA_CLUCKIN) GameTextForPlayer(playerid,"~w~Usli ste u cluckin~n~~b~/meni",5000,3);
  19. else if(FirmaInfo[i][fVrsta] == VRSTA_PIZZA) GameTextForPlayer(playerid,"~w~Usli ste u piceriju~n~~b~/meni",5000,3);
  20. else if(FirmaInfo[i][fVrsta] == VRSTA_DISCO) GameTextForPlayer(playerid,"~w~Usli ste u disco~n~~b~/pice",5000,3);
  21. else if(FirmaInfo[i][fVrsta] == VRSTA_BAR) GameTextForPlayer(playerid,"~w~Usli ste u bar~n~~b~/pice",5000,3);
  22. else if(FirmaInfo[i][fVrsta] == VRSTA_PIGPEN) GameTextForPlayer(playerid,"~w~Usli ste u pig pen~n~~b~/pice",5000,3);
  23. else if(FirmaInfo[i][fVrsta] == VRSTA_GYM) GameTextForPlayer(playerid,"~w~Usli ste u teretanu~n~~b~/teretana",5000,3);
  24. else if(FirmaInfo[i][fVrsta] == VRSTA_BARBER) GameTextForPlayer(playerid,"~w~Usli ste u frizerski salon~n~~b~/frizura",5000,3);
  25. else if(FirmaInfo[i][fVrsta] == VRSTA_BINCO) GameTextForPlayer(playerid,"~w~Usli ste u binco butik~n~~b~/odjeca",5000,3);
  26. else if(FirmaInfo[i][fVrsta] == VRSTA_VICTIM) GameTextForPlayer(playerid,"~w~Usli ste u victim butik~n~~b~/odjeca",5000,3);
  27. else if(FirmaInfo[i][fVrsta] == VRSTA_SUBURBAN) GameTextForPlayer(playerid,"~w~Usli ste u suburban butik~n~~b~/odjeca",5000,3);
  28. else if(FirmaInfo[i][fVrsta] == VRSTA_ZIP) GameTextForPlayer(playerid,"~w~Usli ste u zip butik~n~~b~/odjeca",5000,3);
  29. else if(FirmaInfo[i][fVrsta] == VRSTA_KLADIONICA) GameTextForPlayer(playerid,"~w~Usli ste u kladionicu~n~~w~za kupovinu listica ~r~/kupi",5000,3);
  30. return 1;
  31. }
  32. if(IsPlayerInRangeOfPoint(playerid, 3.0, FirmaInfo[i][fIzlazX], FirmaInfo[i][fIzlazY], FirmaInfo[i][fIzlazZ])
  33. && GetPlayerVirtualWorld(playerid) == FirmaInfo[i][fVW] && !IsPlayerInAnyVehicle(playerid))
  34. {
  35. SetPlayerInterior(playerid, 0);
  36. SetPlayerVirtualWorld(playerid, 0);
  37. JBC_SetPlayerPos(playerid, FirmaInfo[i][fUlazX], FirmaInfo[i][fUlazY], FirmaInfo[i][fUlazZ]);
  38. JBC_TogglePlayerControllable(playerid, 0);
  39. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  40. UsaoFirma[playerid] = -1;
  41. return 1;
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement