Guest User

Problem sa firmama

a guest
Jul 30th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 15.72 KB | None | 0 0
  1. #define FIRMA_FILE    "Firme/%d.ini"
  2. #define MAX_FIRMI 120
  3. enum Firme
  4. {
  5.     fImaVlasnika,
  6.     fVlasnik[MAX_PLAYER_NAME],
  7.     fVrsta,
  8.     fNaziv[64],
  9.     fIznuda[64],
  10.     Float:fUlazX,
  11.     Float:fUlazY,
  12.     Float:fUlazZ,
  13.     Float:fIzlazX,
  14.     Float:fIzlazY,
  15.     Float:fIzlazZ,
  16.     fLevel,
  17.     fCena,
  18.     fKasa,
  19.     fInt,
  20.     fZatvoreno,
  21.     fProizvodi,
  22.     fMaxProizvodi,
  23.     fFakture,
  24.     fVW,
  25.     fNeaktivnost
  26. };
  27. new FirmaInfo[MAX_FIRMI][Firme];
  28. new UsaoFirma[MAX_PLAYERS];
  29. new FirmaPickup[sizeof(FirmaInfo)];
  30. new Text3D:FirmaLabel[sizeof(FirmaInfo)];
  31.  
  32. public OnGameModeExit()
  33. {
  34.    
  35.     for(new b = 0; b < sizeof(FI); b++) { SacuvajFirmu(b); }
  36. }
  37.  
  38. stock SacuvajFirmu(idfirme)
  39. {
  40.     new dFile[128];
  41.     format(dFile, sizeof(dFile), FIRMA_FILE, idfirme);
  42.     new INI:File = INI_Open(dFile);
  43.     INI_WriteInt(File,"ImaVlasnika",FI[idfirme][fImaVlasnika]);
  44.     INI_WriteString(File,"Vlasnik",FI[idfirme][fVlasnik]);
  45.     INI_WriteInt(File,"Vrsta",FI[idfirme][fVrsta]);
  46.     INI_WriteString(File,"Naziv",FI[idfirme][fNaziv]);
  47.     INI_WriteString(File,"Iznuda",FI[idfirme][fIznuda]);
  48.     INI_WriteFloat(File,"UlazX",FI[idfirme][fUlazX]);
  49.     INI_WriteFloat(File,"UlazY",FI[idfirme][fUlazY]);
  50.     INI_WriteFloat(File,"UlazZ",FI[idfirme][fUlazZ]);
  51.     INI_WriteFloat(File,"IzlazX",FI[idfirme][fIzlazX]);
  52.     INI_WriteFloat(File,"IzlazY",FI[idfirme][fIzlazY]);
  53.     INI_WriteFloat(File,"IzlazZ",FI[idfirme][fIzlazZ]);
  54.     INI_WriteInt(File,"Level",FI[idfirme][fLevel]);
  55.     INI_WriteInt(File,"Cena",FI[idfirme][fCena]);
  56.     INI_WriteInt(File,"Kasa",FI[idfirme][fKasa]);
  57.     INI_WriteInt(File,"Int",FI[idfirme][fInt]);
  58.     INI_WriteInt(File,"Zatvoreno",FI[idfirme][fZatvoreno]);
  59.     INI_WriteInt(File,"Proizvodi",FI[idfirme][fProizvodi]);
  60.     INI_WriteInt(File,"MaxProizvodi",FI[idfirme][fMaxProizvodi]);
  61.     INI_WriteInt(File,"Fakture",FI[idfirme][fFakture]);
  62.     INI_WriteInt(File,"VW",FI[idfirme][fVW]);
  63.     INI_WriteInt(File,"Neaktivnostf",FI[idfirme][fNeaktivnost]);
  64.     INI_Close(File);
  65.     return 1;
  66. }
  67.  
  68.  
  69. forward UcitajFirme(idfirme, name[], value[]);
  70. public UcitajFirme(idfirme, name[], value[])
  71. {
  72.     INI_Int("ImaVlasnika",FI[idfirme][fImaVlasnika]);
  73.     INI_String("Vlasnik",FI[idfirme][fVlasnik],32);
  74.     INI_Int("Vrsta",FI[idfirme][fVrsta]);
  75.     INI_String("Naziv",FI[idfirme][fNaziv],64);
  76.     INI_String("Iznuda",FI[idfirme][fIznuda],64);
  77.     INI_Float("UlazX",FI[idfirme][fUlazX]);
  78.     INI_Float("UlazY",FI[idfirme][fUlazY]);
  79.     INI_Float("UlazZ",FI[idfirme][fUlazZ]);
  80.     INI_Float("IzlazX",FI[idfirme][fIzlazX]);
  81.     INI_Float("IzlazY",FI[idfirme][fIzlazY]);
  82.     INI_Float("IzlazZ",FI[idfirme][fIzlazZ]);
  83.     INI_Int("Level",FI[idfirme][fLevel]);
  84.     INI_Int("Cena",FI[idfirme][fCena]);
  85.     INI_Int("Kasa",FI[idfirme][fKasa]);
  86.     INI_Int("Int",FI[idfirme][fInt]);
  87.     INI_Int("Zatvoreno",FI[idfirme][fZatvoreno]);
  88.     INI_Int("Proizvodi",FI[idfirme][fProizvodi]);
  89.     INI_Int("MaxProizvodi",FI[idfirme][fMaxProizvodi]);
  90.     INI_Int("Fakture",FI[idfirme][fFakture]);
  91.     INI_Int("VW",FI[idfirme][fVW]);
  92.     INI_Int("Nekativnostf",FI[idfirme][fNeaktivnost]);
  93.     return 1;
  94. }
  95.  
  96.  
  97. CMD:kreirajbizz(playerid, params[], help)
  98. {
  99.     #pragma unused help
  100.     //if(Ulogovan[playerid] == 0) return SCM(playerid,-1,"BT:RP | "crvena"Moras se ulogovati da bi koristio ovu komandu!");
  101.     if(PlayerInfo[playerid][pAdmin] < 1340) return SCM(playerid,grey,"Niste ovlasceni da koristite tu komandu samo Vlasnik!");
  102.     if(AcmdDuty[playerid] == 0) return SCM(playerid,-1,""Siva"[BT:RP] "Siva"Morate biti na admin duznosti!");
  103.     new Float:X,Float:Y,Float:Z;
  104.     GetPlayerPos(playerid, X,Y,Z);
  105.     new firmaid,vrsta,cena,lvl,ffirma[80],string[512];
  106.     if(sscanf(params, "iiii", firmaid,vrsta, lvl , cena))
  107.     {
  108.         SCM(playerid, -1, "BT:RP Pomoc | "ZPLAVA"/kreirajfirmu [id] [vrsta] [level] [cena]");
  109.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"0: Market | 1: Market | 2: Burg");
  110.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"3: Cluckin Bell | 4: Pizza | 5: Pig Pen");
  111.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"6: Bar | 7: Gym | 8: Sex Shop | 9: Binco");
  112.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"10: Gun Shop | 11: Disco | 12: Restoran");
  113.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"13: Zip | 14: Victim | 15: Suburban");
  114.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"16: Night Club | 17: Elite Restoran | 18: Gun Shop 2");
  115.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"19: Barber | 20: Kladionica | 21: S biznis | 22:Electronic");
  116.         SCM(playerid, -1, "Vrste Firmi | "ZPLAVA"24: Auto Skola");
  117.         return 1;
  118.     }
  119.     if(firmaid >= MAX_FIRMI) return SCM(playerid,-1, ""crvena"BT:RP | "Siva"Maximum firmi je ogranicen ne mozes koristiti taj ID!");
  120.     format(ffirma, sizeof(ffirma), FIRMA_FILE, firmaid);
  121.     if(fexist(ffirma)) return SCM(playerid,-1, "BT:RP | "ZPLAVA"ID te firme vec postoji!");
  122.     if(vrsta == 0) // MARKET 1
  123.     {
  124.         FI[firmaid][fIzlazX] = -25.132600; FI[firmaid][fIzlazY] = -139.067001;
  125.         FI[firmaid][fIzlazZ] = 1003.546875; FI[firmaid][fInt] = 16;
  126.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  127.         FI[firmaid][fVrsta] = VRSTA_MARKET;
  128.         strmid(FI[firmaid][fNaziv],"Market 24/7",0,strlen("Market 24/7"),255);
  129.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  130.     }
  131.     else if(vrsta == 1) // MARKET 2
  132.     {
  133.         FI[firmaid][fIzlazX] = -27.312299; FI[firmaid][fIzlazY] = -29.277599;
  134.         FI[firmaid][fIzlazZ] = 1003.557250; FI[firmaid][fInt] = 4;
  135.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  136.         FI[firmaid][fVrsta] = VRSTA_MARKET;
  137.         strmid(FI[firmaid][fNaziv],"Market 24/7",0,strlen("Market 24/7"),255);
  138.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  139.     }
  140.     else if(vrsta == 2) // BURG
  141.     {
  142.         FI[firmaid][fIzlazX] = 366.032409; FI[firmaid][fIzlazY] = -72.639999;
  143.         FI[firmaid][fIzlazZ] = 1001.507812; FI[firmaid][fInt] = 10;
  144.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  145.         FI[firmaid][fVrsta] = VRSTA_BURG;
  146.         strmid(FI[firmaid][fNaziv],"Burg",0,strlen("Burg"),255);
  147.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  148.     }
  149.     else if(vrsta == 3) // Cluckin
  150.     {
  151.         FI[firmaid][fIzlazX] = 365.779296; FI[firmaid][fIzlazY] = -9.169898;
  152.         FI[firmaid][fIzlazZ] = 1001.851623; FI[firmaid][fInt] = 9;
  153.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  154.         FI[firmaid][fVrsta] = VRSTA_CLUCKIN;
  155.         strmid(FI[firmaid][fNaziv],"Cluckin Bell",0,strlen("Cluckin Bell"),255);
  156.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  157.     }
  158.     else if(vrsta == 4) // Pizza
  159.     {
  160.         FI[firmaid][fIzlazX] = 372.411712; FI[firmaid][fIzlazY] = -130.457702;
  161.         FI[firmaid][fIzlazZ] = 1001.492187; FI[firmaid][fInt] = 5;
  162.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  163.         FI[firmaid][fVrsta] = VRSTA_PIZZA;
  164.         strmid(FI[firmaid][fNaziv],"Pizza",0,strlen("Pizza"),255);
  165.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  166.     }
  167.     else if(vrsta == 5) // Pig Pen
  168.     {
  169.         FI[firmaid][fIzlazX] = 1204.846191; FI[firmaid][fIzlazY] = -13.852100;
  170.         FI[firmaid][fIzlazZ] = 1000.921875; FI[firmaid][fInt] = 2;
  171.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  172.         FI[firmaid][fVrsta] = VRSTA_PIGPEN;
  173.         strmid(FI[firmaid][fNaziv],"Pig Pen",0,strlen("Pig Pen"),255);
  174.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  175.     }
  176.     else if(vrsta == 6) // Bar
  177.     {
  178.         FI[firmaid][fIzlazX] = 501.870788; FI[firmaid][fIzlazY] = -67.582000;
  179.         FI[firmaid][fIzlazZ] = 998.757812; FI[firmaid][fInt] = 11;
  180.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  181.         FI[firmaid][fVrsta] = VRSTA_BAR;
  182.         strmid(FI[firmaid][fNaziv],"Bar",0,strlen("Bar"),255);
  183.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  184.     }
  185.     else if(vrsta == 7) // Gym
  186.     {
  187.         FI[firmaid][fIzlazX] = 772.359375; FI[firmaid][fIzlazY] = -5.515697;
  188.         FI[firmaid][fIzlazZ] = 1000.728576; FI[firmaid][fInt] = 5;
  189.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  190.         FI[firmaid][fVrsta] = VRSTA_GYM;
  191.         strmid(FI[firmaid][fNaziv],"Gym",0,strlen("Gym"),255);
  192.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  193.     }
  194.     else if(vrsta == 8) // Sex Shop
  195.     {
  196.         FI[firmaid][fIzlazX] = -100.295700; FI[firmaid][fIzlazY] = -24.654399;
  197.         FI[firmaid][fIzlazZ] = 1000.718811; FI[firmaid][fInt] = 3;
  198.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  199.         FI[firmaid][fVrsta] = VRSTA_SEXSHOP;
  200.         strmid(FI[firmaid][fNaziv],"Sex Shop",0,strlen("Sex Shop"),255);
  201.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  202.     }
  203.     else if(vrsta == 9) // Binco
  204.     {
  205.         FI[firmaid][fIzlazX] = 207.766204; FI[firmaid][fIzlazY] = -111.266296;
  206.         FI[firmaid][fIzlazZ] = 1005.132812; FI[firmaid][fInt] = 15;
  207.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  208.         FI[firmaid][fVrsta] = VRSTA_BINCO;
  209.         strmid(FI[firmaid][fNaziv],"Binco",0,strlen("Binco"),255);
  210.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  211.     }
  212.     else if(vrsta == 10) // Gun Shop
  213.     {
  214.         FI[firmaid][fIzlazX] = 315.762786; FI[firmaid][fIzlazY] =  -143.661193;
  215.         FI[firmaid][fIzlazZ] = 999.601623; FI[firmaid][fInt] = 7;
  216.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  217.         FI[firmaid][fVrsta] = VRSTA_GUNSHOP;
  218.         strmid(FI[firmaid][fNaziv],"Ammounation",0,strlen("Ammounation"),255);
  219.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  220.     }
  221.     else if(vrsta == 11) // Disco
  222.     {
  223.         FI[firmaid][fIzlazX] = 493.439300; FI[firmaid][fIzlazY] = -24.916900;
  224.         FI[firmaid][fIzlazZ] = 1000.671875; FI[firmaid][fInt] = 17;
  225.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  226.         FI[firmaid][fVrsta] = VRSTA_DISCO;
  227.         strmid(FI[firmaid][fNaziv],"Disco",0,strlen("Disco"),255);
  228.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  229.     }
  230.     else if(vrsta == 12) // Restoran
  231.     {
  232.         FI[firmaid][fIzlazX] = 460.265411; FI[firmaid][fIzlazY] = -88.611503;
  233.         FI[firmaid][fIzlazZ] = 999.554687; FI[firmaid][fInt] = 4;
  234.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  235.         FI[firmaid][fVrsta] = VRSTA_RESTORAN;
  236.         strmid(FI[firmaid][fNaziv],"Restoran",0,strlen("Restoran"),255);
  237.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  238.     }
  239.     else if(vrsta == 13) // ZIP
  240.     {
  241.         FI[firmaid][fIzlazX] = 161.410293; FI[firmaid][fIzlazY] = -96.687202;
  242.         FI[firmaid][fIzlazZ] = 1001.804687; FI[firmaid][fInt] = 18;
  243.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  244.         FI[firmaid][fVrsta] = VRSTA_ZIP;
  245.         strmid(FI[firmaid][fNaziv],"Zip",0,strlen("Zip"),255);
  246.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  247.     }
  248.     else if(vrsta == 14) // Victim
  249.     {
  250.         FI[firmaid][fIzlazX] = 227.342803; FI[firmaid][fIzlazY] = -8.243800;
  251.         FI[firmaid][fIzlazZ] = 1002.210876; FI[firmaid][fInt] = 5;
  252.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  253.         FI[firmaid][fVrsta] = VRSTA_VICTIM;
  254.         strmid(FI[firmaid][fNaziv],"Victim",0,strlen("Victim"),255);
  255.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  256.     }
  257.     else if(vrsta == 15) // Suburban
  258.     {
  259.         FI[firmaid][fIzlazX] = 203.895294; FI[firmaid][fIzlazY] = -50.656700;
  260.         FI[firmaid][fIzlazZ] = 1001.804687; FI[firmaid][fInt] = 1;
  261.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  262.         FI[firmaid][fVrsta] = VRSTA_SUBURBAN;
  263.         strmid(FI[firmaid][fNaziv],"Suburban",0,strlen("Suburban"),255);
  264.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  265.     }
  266.     else if(vrsta == 16) // night club
  267.     {
  268.         FI[firmaid][fIzlazX] = -2636.5781; FI[firmaid][fIzlazY] = 1402.7936;
  269.         FI[firmaid][fIzlazZ] = 906.4609; FI[firmaid][fInt] = 3;
  270.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  271.         FI[firmaid][fVrsta] = VRSTA_DISCO;
  272.         strmid(FI[firmaid][fNaziv],"Night Club",0,strlen("Night Club"),255);
  273.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  274.     }
  275.     else if(vrsta == 17) // Elite Restoran
  276.     {
  277.         FI[firmaid][fIzlazX] = -794.9584; FI[firmaid][fIzlazY] = 490.1105;
  278.         FI[firmaid][fIzlazZ] = 1376.1953; FI[firmaid][fInt] = 1;
  279.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  280.         FI[firmaid][fVrsta] = VRSTA_RESTORAN;
  281.         strmid(FI[firmaid][fNaziv],"Elite Restoran",0,strlen("Elite Restoran"),255);
  282.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  283.     }
  284.     else if(vrsta == 18) // Gun Shop 2
  285.     {
  286.         FI[firmaid][fIzlazX] = 316.524993; FI[firmaid][fIzlazY] = -167.706985;
  287.         FI[firmaid][fIzlazZ] = 999.593750; FI[firmaid][fInt] = 6;
  288.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  289.         FI[firmaid][fVrsta] = VRSTA_GUNSHOP;
  290.         strmid(FI[firmaid][fNaziv],"Gun Shop",0,strlen("Gun Shop"),255);
  291.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  292.     }
  293.     else if(vrsta == 19) // Barber
  294.     {
  295.         FI[firmaid][fIzlazX] = 418.652984; FI[firmaid][fIzlazY] = -82.639793;
  296.         FI[firmaid][fIzlazZ] = 1001.804687; FI[firmaid][fInt] = 3;
  297.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  298.         FI[firmaid][fVrsta] = VRSTA_BARBER;
  299.         strmid(FI[firmaid][fNaziv],"Barber",0,strlen("Barber"),255);
  300.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  301.     }
  302.     else if(vrsta == 20) // Kladionica
  303.     {
  304.         FI[firmaid][fIzlazX] = 833.8954; FI[firmaid][fIzlazY] = 7.4047;
  305.         FI[firmaid][fIzlazZ] = 1004.1797; FI[firmaid][fInt] = 3;
  306.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  307.         FI[firmaid][fVrsta] = VRSTA_KLADIONICA;
  308.         strmid(FI[firmaid][fNaziv],"Kladionica",0,strlen("Kladionica"),255);
  309.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  310.     }
  311.     else if(vrsta == 21) // S biznisi
  312.     {
  313.         FI[firmaid][fIzlazX] = 0.0; FI[firmaid][fIzlazY] = 0.0;
  314.         FI[firmaid][fIzlazZ] = 0.0; FI[firmaid][fInt] = 0;
  315.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  316.         FI[firmaid][fVrsta] = VRSTA_SBIZZ;
  317.         strmid(FI[firmaid][fNaziv],"/trafika",0,strlen("/trafika"),255);
  318.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  319.     }
  320.     else if(vrsta == 22) // samsung
  321.     {
  322.         FI[firmaid][fIzlazX] = 23.2159; FI[firmaid][fIzlazY] = 2044.3783;
  323.         FI[firmaid][fIzlazZ] = -32.0616; FI[firmaid][fInt] = 0;
  324.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  325.         FI[firmaid][fVrsta] = VRSTA_ELECTRONIC;
  326.         strmid(FI[firmaid][fNaziv],"Samsung Shop",0,strlen("Samsung Shop"),255);
  327.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  328.     }
  329.     else if(vrsta == 23) // streljana
  330.     {
  331.         FI[firmaid][fIzlazX] = 302.292877; FI[firmaid][fIzlazY] = -143.139099;
  332.         FI[firmaid][fIzlazZ] = 1004.062500; FI[firmaid][fInt] = 7;
  333.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  334.         FI[firmaid][fVrsta] = VRSTA_STRELJANA;
  335.         strmid(FI[firmaid][fNaziv],"Streljana",0,strlen("Streljana"),255);
  336.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  337.     }
  338.     else if(vrsta == 24) // streljana
  339.     {
  340.         FI[firmaid][fIzlazX] = -2029.798339; FI[firmaid][fIzlazY] = -106.675910;
  341.         FI[firmaid][fIzlazZ] = 1035.171875; FI[firmaid][fInt] = 3;
  342.         FI[firmaid][fCena] = cena; FI[firmaid][fLevel] = lvl;
  343.         FI[firmaid][fVrsta] = VRSTA_AUTOSKOLA;
  344.         strmid(FI[firmaid][fNaziv],"Auto Skola",0,strlen("Auto Skola"),255);
  345.         strmid(FI[firmaid][fIznuda],"Niko",0,strlen("Niko"),255);
  346.     }
  347.  
  348.     FI[firmaid][fUlazX] = X; FI[firmaid][fUlazY] = Y; FI[firmaid][fUlazZ] = Z;
  349.     FI[firmaid][fImaVlasnika] = 0; FI[firmaid][fZatvoreno] = 1;
  350.     FI[firmaid][fVW] = firmaid; FI[firmaid][fKasa] = 0;
  351.     FI[firmaid][fProizvodi] = 300; FI[firmaid][fMaxProizvodi] = 300;
  352.     strmid(FI[firmaid][fVlasnik],"Niko",0,strlen("Niko"),255);
  353.     format(string,sizeof(string),""ZPLAVA"Trafika\n"ZPLAVA"Da kupite slatkise/grickalice/cigarete:"BELA"Komanda:"ZPLAVA"/trafika");
  354.     FirmaLabel[firmaid] = Create3DTextLabel(string ,0x33CCFFAA,X,Y,Z,25, 0, 1);
  355.     FirmaPickup[firmaid] = CreateDynamicPickup(1274, 1, FI[firmaid][fUlazX], FI[firmaid][fUlazY], FI[firmaid][fUlazZ]);
  356.     format(string,sizeof(string),"BT:RP | "crvena"Firma Kreiran (Ovo je firma ID: %d)!",firmaid);
  357.     SCM(playerid,-1,string);
  358.     FirmaLabelIPickup(firmaid); SacuvajFirmu(firmaid);
  359.     return 1;
  360. }
Advertisement
Add Comment
Please, Sign In to add comment