Advertisement
Gireada

Personal Vehicle v5

Apr 16th, 2013
1,422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 68.32 KB | None | 0 0
  1.  
  2. /****************************************************************************************************************************************************************************
  3. *****************************************************************************************************************************************************************************
  4. *****************************************************************************************************************************************************************************
  5. ***********************************************************************__________________************************************************************************************
  6. **********************************************************************|    Veh System 5  |***********************************************************************************
  7. **********************************************************************|                  |***********************************************************************************
  8. **********************************************************************|      By          |***********************************************************************************
  9. **********************************************************************|        Gireada   |***********************************************************************************
  10. **********************************************************************|                  |***********************************************************************************
  11. **********************************************************************|                  |***********************************************************************************
  12. **********************************************************************|                  |***********************************************************************************
  13. **********************************************************************|                  |***********************************************************************************
  14. **********************************************************************|                  |***********************************************************************************
  15. **********************************************************************---------------------************************************************************************************
  16. */
  17.  
  18. //Nu stergeti Creditele.
  19.  
  20. #include <a_samp>
  21. #include <dini>
  22. #include <sscanf2>
  23. #include <zcmd>
  24. #include <mSelection>
  25.  
  26. #define PURPLE 0xFF00FFFF
  27. #define Dialog_Manual 888
  28. #define Dialog_Pret 889
  29. #define Dialog_Culoare1 890
  30. #define Dialog_Culoare2 891
  31.  
  32. native IsValidVehicle(vehicleid);
  33.  
  34. new vehicule = mS_INVALID_LISTID;
  35.  
  36. new VanzatorVeh[MAX_PLAYERS];
  37. new carsshow[MAX_PLAYERS];
  38. new IDVehicul[MAX_PLAYERS];
  39. new PretVehicul[MAX_PLAYERS];
  40. new neonon[MAX_VEHICLES];
  41. new neon[MAX_VEHICLES][5];
  42. new motoron[MAX_VEHICLES];
  43. new Text3D:vtextlabel[MAX_VEHICLES];
  44. new showcar[MAX_VEHICLES];
  45.  
  46.  
  47. new vehicul[MAX_PLAYERS];
  48. new vehiculpret[MAX_PLAYERS];
  49. new vehiculculoare1[MAX_PLAYERS];
  50. new vehiculculoare2[MAX_PLAYERS];
  51.  
  52. new PlayerText:GireadaV0[MAX_PLAYERS];
  53. new PlayerText:GireadaV1[MAX_PLAYERS];
  54. new PlayerText:GireadaV2[MAX_PLAYERS];
  55. new PlayerText:GireadaV3[MAX_PLAYERS];
  56. new PlayerText:GireadaV4[MAX_PLAYERS];
  57. new PlayerText:GireadaV5[MAX_PLAYERS];
  58. new PlayerText:GireadaV6[MAX_PLAYERS];
  59. new PlayerText:GireadaV7[MAX_PLAYERS];
  60.  
  61.  
  62. new maxperscar = 9;//Numarul maxim de vehicule pe care un jucator le poate avea
  63. new buyablecars = 1;//Cate vehicule ai pe server +1;
  64.  
  65. new Contuar[MAX_PLAYERS];
  66. new Metrii[MAX_VEHICLES];
  67.  
  68. new VehicleNames[212][] = {
  69. {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
  70. {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
  71. {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
  72. {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
  73. {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
  74. {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
  75. {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
  76. {"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
  77. {"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
  78. {"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
  79. {"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
  80. {"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
  81. {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
  82. {"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
  83. {"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
  84. {"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
  85. {"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
  86. {"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
  87. {"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
  88. {"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
  89. {"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
  90. {"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
  91. {"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
  92. {"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
  93. {"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
  94. {"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
  95. {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
  96. {"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
  97. {"Utility Trailer"}};
  98.  
  99. forward LoadCar();
  100. forward SaveCar();
  101. forward SaveThisCar(vehid);
  102. forward IsAnOwnableCar(vehicleid);
  103. forward IsAtDealership(playerid);
  104. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  105. forward SendAdminMesaj(color,const string[]);
  106. forward GetDistanceToCar(playerid,carid);
  107. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  108. forward VerificaKilometri(vehicleid);
  109.  
  110. new vindelevel = 0;// Nivelul de la care poti cumpara un vehicul
  111.  
  112. enum PlayerData
  113. {
  114.     pLoggedIn,
  115.     pVehicule,
  116. }
  117. new PlayerInfo[MAX_PLAYERS][PlayerData];
  118.  
  119. enum vInfo
  120. {
  121.     Model,
  122.     Float:Locatiex,
  123.     Float:Locatiey,
  124.     Float:Locatiez,
  125.     Float:Rotatie,
  126.     Valoare,
  127.     Culoare1,
  128.     Culoare2,
  129.     Propietar[MAX_PLAYER_NAME],
  130.     Cumparata,
  131.     Inchisa,
  132.     Neon,
  133.     Numar,
  134.     PaintJob,
  135.     Km,
  136. }
  137. new VehInfo[MAX_VEHICLES][vInfo];
  138.  
  139. public OnGameModeInit()
  140. {
  141.     LoadCar();
  142.     return 1;
  143. }
  144.  
  145. public OnFilterScriptInit()
  146. {
  147.     print("\n--------------------------------------");
  148.     print(" Vehicule personale by Gireada");
  149.     print("--------------------------------------\n");
  150.     vehicule = LoadModelSelectionMenu("vehicule.txt");
  151.     for(new veh = buyablecars; veh < MAX_VEHICLES; veh++)
  152.     {
  153.         SetVehicleParamsEx(veh,false,false,false,VehInfo[veh][Inchisa],false,false,false);
  154.         motoron[veh] = 0;
  155.     }
  156.     return 1;
  157. }
  158.  
  159. public OnFilterScriptExit()
  160. {
  161.     SaveCar();
  162.     return 1;
  163. }
  164.  
  165. main()
  166. {
  167.     print("\n----------------------------------");
  168.     print(" Vehicule personale by Gireada");
  169.     print("----------------------------------\n");
  170. }
  171.  
  172. public IsAtDealership(playerid)
  173. {
  174.     if(IsPlayerConnected(playerid))
  175.     {
  176.         if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007) || PlayerToPoint(50,playerid,221.6332,-1952.4972,-0.5304) || PlayerToPoint(50,playerid,223.8193,-1905.8246,-0.5363) || PlayerToPoint(50,playerid,1258.2405,-1817.7858,13.4052))
  177.         {
  178.             return 1;
  179.         }
  180.     }
  181.     return 0;
  182. }
  183.  
  184. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  185. {
  186.     new Float:oldposx, Float:oldposy, Float:oldposz;
  187.     new Float:tempposx, Float:tempposy, Float:tempposz;
  188.     GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  189.     tempposx = (oldposx -x);
  190.     tempposy = (oldposy -y);
  191.     tempposz = (oldposz -z);
  192.     //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  193.     if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  194.     {
  195.         return 1;
  196.     }
  197.     return 1;
  198.  
  199. }
  200.  
  201. public IsAnOwnableCar(vehicleid)
  202. {
  203.     if(vehicleid >= buyablecars && vehicleid <= 1000) { return 1; }
  204.     return 0;
  205. }
  206.  
  207. CMD:rac(playerid, params[])
  208. {
  209.     new string[256], nume[MAX_PLAYER_NAME];
  210.     GetPlayerName(playerid, nume, sizeof(nume));
  211.     if(IsPlayerAdmin(playerid))
  212.     {
  213.         for(new i=0;i<MAX_VEHICLES;i++)
  214.         {
  215.             if(!IsVehicleOccupied(i))
  216.             {
  217.                 if(IsAnOwnableCar(i))
  218.                 {
  219.                     SetVehiclePos(i, VehInfo[i][Locatiex], VehInfo[i][Locatiey], VehInfo[i][Locatiez]);
  220.                     SetVehicleZAngle(i, VehInfo[i][Rotatie]);
  221.                     //SetVehicleToRespawn(i);
  222.                 }
  223.                 else
  224.                 {
  225.                     SetVehicleToRespawn(i);
  226.                 }
  227.             }
  228.         }
  229.         format(string, sizeof(string), "Admin-ul %s a dat RAC(Respawn All Car)",nume);
  230.         SendClientMessageToAll(0xFFFFFFFF, string);
  231.     }
  232.     else
  233.     {
  234.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii admin RCON");
  235.         return 1;
  236.     }
  237.     return 1;
  238. }
  239.  
  240. CMD:rpv(playerid, params[])
  241. {
  242.     new string[256], nume[MAX_PLAYER_NAME];
  243.     GetPlayerName(playerid, nume, sizeof(nume));
  244.     if(IsPlayerAdmin(playerid))
  245.     {
  246.         for(new i=buyablecars;i<MAX_VEHICLES;i++)
  247.         {
  248.             if(!(IsVehicleOccupied(i)))
  249.             {
  250.                 SetVehiclePos(i, VehInfo[i][Locatiex], VehInfo[i][Locatiey], VehInfo[i][Locatiez]);
  251.                 SetVehicleZAngle(i, VehInfo[i][Rotatie]);
  252.             }
  253.         }
  254.         format(string, sizeof(string), "Admin-ul %s a dat RPV(Respawn Personal Vehicle)",nume);
  255.         SendClientMessageToAll(0xFFFFFFFF, string);
  256.     }
  257.     else
  258.     {
  259.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii admin RCON");
  260.         return 1;
  261.     }
  262.     return 1;
  263. }
  264.  
  265. CMD:rtpv(playerid, params[])
  266. {
  267.     new i=GetPlayerVehicleID(playerid);
  268.     if(IsPlayerAdmin(playerid))
  269.     {
  270.         SetVehiclePos(i, VehInfo[i][Locatiex], VehInfo[i][Locatiey], VehInfo[i][Locatiez]);
  271.         SetVehicleZAngle(i, VehInfo[i][Rotatie]);
  272.     }
  273.     else
  274.     {
  275.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii admin RCON");
  276.     }
  277.     return 1;
  278. }
  279.  
  280.  
  281. CMD:asellcar(playerid, params[])
  282. {
  283.     new file[512], string[256];
  284.     new Float:x, Float:y, Float:z,plate[32];
  285.     GetPlayerPos(playerid, x, y, z);
  286.     new carid = GetPlayerVehicleID(playerid);
  287.     new name[MAX_PLAYER_NAME];
  288.     GetPlayerName(playerid, name, sizeof(name));
  289.     if(IsPlayerAdmin(playerid))
  290.     {
  291.         if(IsPlayerConnected(playerid))
  292.         {
  293.             if(!IsAnOwnableCar(carid))
  294.             {
  295.                 SendClientMessage(playerid, 0xFFFFFFFF, "Acest vehicul apartine unei factiuni/job");
  296.             }
  297.             if(IsAtDealership(playerid))
  298.             {
  299.                 SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii la dealer");
  300.             }
  301.             if(!(strcmp(VehInfo[carid][Propietar], "Vehiculul", true) == 0))
  302.             {
  303.                 format(file, sizeof(file), "JucatoriVehicule/%s.ini", VehInfo[carid][Propietar]);
  304.                 dini_IntSet(file,"Vehicule",PlayerInfo[playerid][pVehicule]-1); VehInfo[carid][Cumparata] = 0;
  305.                 format(plate, sizeof(plate), "G-%d-GIR",carid);
  306.                 SetVehicleNumberPlate(carid,plate);
  307.                 strmid(VehInfo[carid][Numar], plate, 0, strlen(plate), 999);
  308.                 VehInfo[carid][Locatiex] = x;  VehInfo[carid][Locatiey] = y; VehInfo[carid][Locatiez] = z; VehInfo[carid][Rotatie]= 1;
  309.                 strmid(VehInfo[carid][Propietar], "Dealer", 0, strlen("Dealer"), 999); VehInfo[carid][Cumparata] = 0; VehInfo[carid][Neon] = 0;
  310.                 format(string, sizeof(string), " Vehiculul %d a fost vandut cu succes. Felicitari!.", carid);
  311.                 SendClientMessage(playerid, 0xFFFFFFFF, string);
  312.                 format(string, sizeof(string), " %s a vandut vehiculul %d.",name, carid);
  313.                 SendAdminMesaj(0xFFFFFFFF,string);
  314.             }
  315.             else
  316.             {
  317.                 SendClientMessage(playerid, 0xFFFFFFFF, "Acest vehicul este deja de vanzare");
  318.             }
  319.         }
  320.         else
  321.         {
  322.             SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii conectat");
  323.         }
  324.     }
  325.     else
  326.     {
  327.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii admin RCON");
  328.     }
  329.     return 1;
  330. }
  331. CMD:cumparaneon(playerid, params[])
  332. {
  333.     new tip;
  334.     new vehid = GetPlayerVehicleID(playerid);
  335.     new name[MAX_PLAYERS];
  336.     GetPlayerName(playerid,name,sizeof(name));
  337.     if(unformat(params, "i", tip))
  338.     {
  339.             SendClientMessage(playerid, 0xFFFFFFFF, "Foloseste: /cumparaneon <culoare>");
  340.             return 1;
  341.     }
  342.     if(!(tip>0 && tip < 7))
  343.     {
  344.         SendClientMessage(playerid, 0xFFFFFFFF, "Culori neon:");
  345.         SendClientMessage(playerid, 0xFFFFFFFF, "1.Rosu 2.Verde");
  346.         SendClientMessage(playerid, 0xFFFFFFFF, "3.Verde Lamai 4.Abastru");
  347.         SendClientMessage(playerid, 0xFFFFFFFF, "5.Alb 6.Violet");
  348.     }
  349.     if(IsAtDealership(playerid))
  350.     {
  351.         if(strcmp(VehInfo[vehid][Propietar], name, true) == 0)
  352.         {
  353.             if(neonon[vehid] == 0)
  354.             {
  355.                 if(GetPlayerMoney(playerid) >= 100)
  356.                 {
  357.                     if(tip == 1)
  358.                     {
  359.                         VehInfo[vehid][Neon] = 1;
  360.                         SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari pentru noua achizitie. Te-a costat 100$");
  361.                         GivePlayerMoney(playerid, -100);
  362.                     }
  363.                     else if(tip == 2)
  364.                     {
  365.                         VehInfo[vehid][Neon] = 2;
  366.                         SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari pentru noua achizitie. Te-a costat 100$");
  367.                         GivePlayerMoney(playerid, -100);
  368.                     }
  369.                     else if(tip == 3)
  370.                     {
  371.                         VehInfo[vehid][Neon] = 3;
  372.                         SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari pentru noua achizitie. Te-a costat 100$");
  373.                         GivePlayerMoney(playerid, -100);
  374.                     }
  375.                     else if(tip == 4)
  376.                     {
  377.                         VehInfo[vehid][Neon] = 4;
  378.                         SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari pentru noua achizitie. Te-a costat 100$");
  379.                         GivePlayerMoney(playerid, -100);
  380.                     }
  381.                     else if(tip == 5)
  382.                     {
  383.                         VehInfo[vehid][Neon] = 5;
  384.                         SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari pentru noua achizitie. Te-a costat 100$");
  385.                         GivePlayerMoney(playerid, -100);
  386.                     }
  387.                     else if(tip == 6)
  388.                     {
  389.                         VehInfo[vehid][Neon] = 6;
  390.                         SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari pentru noua achizitie. Te-a costat 100$");
  391.                         GivePlayerMoney(playerid, -100);
  392.                     }
  393.                 }
  394.                 else
  395.                 {
  396.                     SendClientMessage(playerid, 0xFFFFFFFF, "Nu ai destui bani. Iti trebuie 100$");
  397.                 }
  398.             }
  399.             else
  400.             {
  401.                 SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa ai neoanele inchise");
  402.             }
  403.         }
  404.         else
  405.         {
  406.             SendClientMessage(playerid, 0xFFFFFFFF, "Aceasta nu este vehicolul tau");
  407.         }
  408.     }
  409.     else
  410.     {
  411.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii la dealer");
  412.     }
  413.     return 1;
  414. }
  415.  
  416. CMD:vneon(playerid, params[])
  417. {
  418.     new vehid = GetPlayerVehicleID(playerid);
  419.     if(VehInfo[vehid][Neon] >= 1)
  420.     {
  421.         if(neonon[vehid] == 0)
  422.         {
  423.             if(VehInfo[vehid][Neon] == 1)
  424.             {
  425.                 neon[vehid][0] = CreateObject(18647,0,0,0,0,0,0);
  426.                 neon[vehid][1] = CreateObject(18647,0,0,0,0,0,0);
  427.                 neon[vehid][2] = CreateObject(18647,0,0,0,0,0,0);
  428.                 neon[vehid][3] = CreateObject(18647,0,0,0,0,0,0);
  429.                 AttachObjectToVehicle(neon[vehid][0], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  430.                 AttachObjectToVehicle(neon[vehid][1], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  431.                 AttachObjectToVehicle(neon[vehid][2], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  432.                 AttachObjectToVehicle(neon[vehid][3], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  433.                 neonon[vehid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ai aprins neonul");
  434.             }
  435.             else if(VehInfo[vehid][Neon] == 2)
  436.             {
  437.                 neon[vehid][0] = CreateObject(18649,0,0,0,0,0,0);
  438.                 neon[vehid][1] = CreateObject(18649,0,0,0,0,0,0);
  439.                 neon[vehid][2] = CreateObject(18649,0,0,0,0,0,0);
  440.                 neon[vehid][3] = CreateObject(18649,0,0,0,0,0,0);
  441.                 AttachObjectToVehicle(neon[vehid][0], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  442.                 AttachObjectToVehicle(neon[vehid][1], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  443.                 AttachObjectToVehicle(neon[vehid][2], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  444.                 AttachObjectToVehicle(neon[vehid][3], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  445.                 neonon[vehid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ai aprins neonul");
  446.             }
  447.             else if(VehInfo[vehid][Neon] == 3)
  448.             {
  449.                 neon[vehid][0] = CreateObject(18649,0,0,0,0,0,0);
  450.                 neon[vehid][1] = CreateObject(18649,0,0,0,0,0,0);
  451.                 neon[vehid][2] = CreateObject(18652,0,0,0,0,0,0);
  452.                 neon[vehid][3] = CreateObject(18652,0,0,0,0,0,0);
  453.                 AttachObjectToVehicle(neon[vehid][0], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  454.                 AttachObjectToVehicle(neon[vehid][1], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  455.                 AttachObjectToVehicle(neon[vehid][2], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  456.                 AttachObjectToVehicle(neon[vehid][3], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  457.                 neonon[vehid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ai aprins neonul");
  458.             }
  459.             else if(VehInfo[vehid][Neon] == 4)
  460.             {
  461.                 neon[vehid][0] = CreateObject(18648,0,0,0,0,0,0);
  462.                 neon[vehid][1] = CreateObject(18648,0,0,0,0,0,0);
  463.                 neon[vehid][2] = CreateObject(18648,0,0,0,0,0,0);
  464.                 neon[vehid][3] = CreateObject(18648,0,0,0,0,0,0);
  465.                 AttachObjectToVehicle(neon[vehid][0], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  466.                 AttachObjectToVehicle(neon[vehid][1], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  467.                 AttachObjectToVehicle(neon[vehid][2], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  468.                 AttachObjectToVehicle(neon[vehid][3], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  469.                 neonon[vehid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ai aprins neonul");
  470.             }
  471.             else if(VehInfo[vehid][Neon] == 5)
  472.             {
  473.                 neon[vehid][0] = CreateObject(18652,0,0,0,0,0,0);
  474.                 neon[vehid][1] = CreateObject(18652,0,0,0,0,0,0);
  475.                 neon[vehid][2] = CreateObject(18652,0,0,0,0,0,0);
  476.                 neon[vehid][3] = CreateObject(18652,0,0,0,0,0,0);
  477.                 AttachObjectToVehicle(neon[vehid][0], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  478.                 AttachObjectToVehicle(neon[vehid][1], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  479.                 AttachObjectToVehicle(neon[vehid][2], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  480.                 AttachObjectToVehicle(neon[vehid][3], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  481.                 neonon[vehid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ai aprins neonul");
  482.             }
  483.             else if(VehInfo[vehid][Neon] == 6)
  484.             {
  485.                 neon[vehid][0] = CreateObject(18651,0,0,0,0,0,0);
  486.                 neon[vehid][1] = CreateObject(18651,0,0,0,0,0,0);
  487.                 neon[vehid][2] = CreateObject(18651,0,0,0,0,0,0);
  488.                 neon[vehid][3] = CreateObject(18651,0,0,0,0,0,0);
  489.                 AttachObjectToVehicle(neon[vehid][0], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  490.                 AttachObjectToVehicle(neon[vehid][1], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  491.                 AttachObjectToVehicle(neon[vehid][2], vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  492.                 AttachObjectToVehicle(neon[vehid][3], vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  493.                 neonon[vehid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ai aprins neonul");
  494.             }
  495.         }
  496.         else if(neonon[vehid] == 1)
  497.         {
  498.             DestroyObject(neon[vehid][0]);DestroyObject(neon[vehid][1]);DestroyObject(neon[vehid][2]);DestroyObject(neon[vehid][3]); neonon[vehid] = 0;
  499.             SendClientMessage(playerid, 0xFFFFFFFF, "Ai stint neonul");
  500.         }
  501.     }
  502.     return 1;
  503. }
  504.  
  505. CMD:adestroycar(playerid, params[])
  506. {
  507.     new vehid = GetPlayerVehicleID(playerid);
  508.     new loc = GetPlayerVehicleSeat(playerid);
  509.     new name[MAX_PLAYER_NAME], file[256];
  510.     GetPlayerName(playerid, name, sizeof(name));
  511.     new string[256];
  512.     if(loc == 0)
  513.     {
  514.         if(IsPlayerAdmin(playerid))
  515.         {
  516.             format(string, sizeof(string), " %s a distrus vehiculul %d.",name, vehid);
  517.             SendAdminMesaj(0xFFFFFFFF,string);
  518.             format(file, sizeof(file), "Vehicule/%d.ini", vehid);
  519.             dini_Remove(file);
  520.         }
  521.         else
  522.         {
  523.             SendClientMessage(playerid, 0xFFFFFFFF, "Nu esti admin");
  524.         }
  525.     }
  526.     else
  527.     {
  528.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii soferul");
  529.     }
  530.     return 1;
  531. }
  532.  
  533. CMD:apark(playerid, params[])
  534. {
  535.     new Float:x, Float:y, Float:z, Float:Angle;
  536.     GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, Angle);
  537.     new vehid = GetPlayerVehicleID(playerid);
  538.     new loc = GetPlayerVehicleSeat(playerid);
  539.     if(IsPlayerAdmin(playerid))
  540.     {
  541.         if(IsAnOwnableCar(vehid))
  542.         {
  543.             if(loc == 0)
  544.             {
  545.                 VehInfo[vehid][Locatiex] = x;  VehInfo[vehid][Locatiey] = y; VehInfo[vehid][Locatiez] = z; VehInfo[vehid][Rotatie]= Angle;
  546.                 SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, Angle); SaveThisCar(vehid);
  547.                 SendClientMessage(playerid, 0xFFFFFFFF, "Ai parcat vehiculul in aceste pozitii. Aici va fi respawnata.");
  548.             }
  549.             else
  550.             {
  551.                 SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii soferul");
  552.             }
  553.         }
  554.         else
  555.         {
  556.             SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii vehicul de vanzare");
  557.         }
  558.  
  559.     }
  560.     else
  561.     {
  562.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii ADMIN RCON");
  563.     }
  564.     return 1;
  565. }
  566.  
  567. CMD:asetpret(playerid, params[])
  568. {
  569.     new vehid = GetPlayerVehicleID(playerid);
  570.     new pret, string[50], name[MAX_PLAYER_NAME];
  571.     GetPlayerName(playerid, name, sizeof(name));
  572.     new loc = GetPlayerVehicleSeat(playerid);
  573.     if(unformat(params, "i", pret))
  574.     {
  575.             SendClientMessage(playerid, 0xFFFFFFFF, "Foloseste: /asetpret <pret>");
  576.             return 1;
  577.     }
  578.     if(IsPlayerAdmin(playerid))
  579.     {
  580.         if(IsAnOwnableCar(vehid))
  581.         {
  582.             if(loc == 0)
  583.             {
  584.                 VehInfo[vehid][Valoare] = pret;
  585.                 format(string, sizeof(string), "Ai setat pretul vehiculului la %d",pret);
  586.                 SendClientMessage(playerid, 0xFFFFFFFF, string);
  587.                 format(string, sizeof(string), "%s a setat pretul vehiculului %d la %d",name,vehid,pret);
  588.                 SendAdminMesaj(0xFFFFFFFF,string);
  589.             }
  590.             else
  591.             {
  592.                 SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii soferul");
  593.             }
  594.         }
  595.         else
  596.         {
  597.             SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii vehicul de vanzare");
  598.         }
  599.  
  600.     }
  601.     else
  602.     {
  603.         SendClientMessage(playerid, 0xFFFFFFFF, "Trebuie sa fii ADMIN RCON");
  604.     }
  605.     return 1;
  606. }
  607.  
  608. CMD:setnumar(playerid, params[])
  609. {
  610.     new numar[4], plate[10];
  611.     new vehid = GetPlayerVehicleID(playerid);
  612.     new name5[MAX_PLAYER_NAME];
  613.     GetPlayerName(playerid, name5, sizeof(name5));
  614.     if(unformat(params, "s[4]", numar))
  615.     {
  616.             SendClientMessage(playerid, 0xFFFFFFFF, "Foloseste: /setnumar <litere>(3)");
  617.             return 1;
  618.     }
  619.     if(!(strcmp(VehInfo[vehid][Propietar], name5, true) == 0))
  620.     {
  621.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Vehiculul nu este al tau");
  622.         return 1;
  623.     }
  624.     if(IsAtDealership(playerid))
  625.     {
  626.         format(plate, sizeof(plate), "G-%d-%s",vehid,numar);
  627.         SetVehicleNumberPlate(vehid,plate);
  628.         strmid(VehInfo[vehid][Numar], plate, 0, strlen(plate), 999);
  629.     }
  630.     return 1;
  631. }
  632.  
  633. CMD:acreatecar2(playerid, params[])
  634. {
  635.     if(IsPlayerAdmin(playerid))
  636.     {
  637.         ShowModelSelectionMenu(playerid, vehicule, "Create Car by Gireada");
  638.     }
  639.     return 1;
  640. }
  641.  
  642. CMD:acreatecar(playerid, params[])
  643. {
  644.     new string[256], model, valoare, culoare1, culoare2;
  645.     new name[MAX_PLAYER_NAME],string2[256];
  646.     GetPlayerName(playerid, name, sizeof(name));
  647.     if(unformat(params, "iiii", model,valoare,culoare1,culoare2))
  648.     {
  649.             SendClientMessage(playerid, 0xFFFFFFFF, "Foloseste: /acreatecar <model> <valoare> <culoare1> <culoare2>");
  650.             return 1;
  651.     }
  652.     if(!(model > 400 && model < 611))
  653.     {
  654.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Modelul trebuie cuprins intre 400 si 600");
  655.         return 1;
  656.     }
  657.     if(!(valoare > 0 && valoare < 5000000))
  658.     {
  659.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Valoarea trebuie cuprins intre 0 si 5000000$");
  660.         return 1;
  661.     }
  662.     if(!(culoare1 > 0 && culoare1 < 255))
  663.     {
  664.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Culoarea trebuie cuprins intre 0 si 255");
  665.         return 1;
  666.     }
  667.     if(!(culoare2 > 0 && culoare2 < 255))
  668.     {
  669.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Culoarea trebuie cuprins intre 0 si 255");
  670.         return 1;
  671.     }
  672.     if(!(IsAtDealership(playerid)))
  673.     {
  674.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Trebuie sa fii la Dealer");
  675.         return 1;
  676.     }
  677.     if(IsPlayerAdmin(playerid))
  678.     {
  679.         if(IsPlayerConnected(playerid))
  680.         {
  681.             new Float:x, Float:y, Float:z;
  682.             GetPlayerPos(playerid, x, y, z);
  683.             new vehicle = CreateVehicle(model,x,y,z,1,culoare1,culoare2,999999);
  684.             PutPlayerInVehicle(playerid,vehicle,0);
  685.             new vehid = GetPlayerVehicleID(playerid),plate[32];
  686.             format(plate, sizeof(plate), "G-%d-GIR",vehid);
  687.             SetVehicleNumberPlate(vehid,plate);
  688.             strmid(VehInfo[vehid][Numar], plate, 0, strlen(plate), 999);
  689.             VehInfo[vehid][Locatiex] = x;  VehInfo[vehid][Locatiey] = y; VehInfo[vehid][Locatiez] = z; VehInfo[vehid][Rotatie]= 1;
  690.             VehInfo[vehid][Model] = model; VehInfo[vehid][Valoare] = valoare; VehInfo[vehid][Culoare1] = culoare1; VehInfo[vehid][Culoare2] = culoare2;
  691.             strmid(VehInfo[vehid][Propietar], "Dealer", 0, strlen("Dealer"), 999); VehInfo[vehid][Cumparata] = 0; VehInfo[vehid][Neon] = 0;
  692.             VehInfo[vehid][PaintJob] = 3;
  693.             format(string, sizeof(string), " Vehiculul %d a fost creat cu succes. Felicitari!.", vehicle);
  694.             SendClientMessage(playerid, 0xFFFFFFFF, string);
  695.             format(string, sizeof(string), " %s a creiat vehiculul %d.",name, vehicle);
  696.             SendAdminMesaj(0xFFFFFFFF,string);
  697.             printf("%s a creiat vehiculul %d.",name, vehicle); SaveThisCar(vehicle);
  698.             format(string2, sizeof(string2), " DeVanzare\n Model: %s \n Pret: %d",GetVehicleName(vehid), VehInfo[vehid][Valoare]);
  699.             vtextlabel[vehid] = Create3DTextLabel(string2, 0x7FFF00FF, VehInfo[vehid][Locatiex], VehInfo[vehid][Locatiey], VehInfo[vehid][Locatiez], 20.0, 0, 0);
  700.             Attach3DTextLabelToVehicle( vtextlabel[vehid] , vehid, 0.0, 0.0, 0.0);
  701.         }
  702.         else
  703.         {
  704.             SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Trebuie sa fii conectat.");
  705.             return 1;
  706.         }
  707.     }
  708.     else
  709.     {
  710.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Trebuie sa ai RCON ADMIN");
  711.         return 1;
  712.     }
  713.     return 1;
  714. }
  715.  
  716. CMD:vcumpara(playerid, params[])
  717. {
  718.     new name5[MAX_PLAYER_NAME], vehid = GetPlayerVehicleID(playerid);
  719.     GetPlayerName(playerid, name5, sizeof(name5));
  720.     new string2[256],string[256];
  721.     if(!(IsAtDealership(playerid)))
  722.     {
  723.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Trebuie sa fii la Dealer.");
  724.         return 1;
  725.     }
  726.     if(!(GetPlayerScore(playerid) >= vindelevel))
  727.     {
  728.         format(string,sizeof(string),"[Server-Info] Trebuie sa ai level-ul %d pentru a achizitiona un vehicul",vindelevel);
  729.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  730.         return 1;
  731.     }
  732.     if(IsAnOwnableCar(vehid))
  733.     {
  734.         if(VehInfo[vehid][Cumparata] == 0)
  735.         {
  736.             if(PlayerInfo[playerid][pVehicule] <= maxperscar)
  737.             {
  738.                 if(GetPlayerMoney(playerid) >= VehInfo[vehid][Valoare])
  739.                 {
  740.                     strmid(VehInfo[vehid][Propietar], name5, 0, strlen(name5), 999);
  741.                     VehInfo[vehid][Cumparata] = 1; PlayerInfo[playerid][pVehicule] += 1;
  742.                     GivePlayerMoney(playerid, -VehInfo[vehid][Valoare]);
  743.                     TogglePlayerControllable(playerid, 1); SaveThisCar(vehid);
  744.                     GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3);
  745.                     SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari ti-ai cumparat o masina noua!");
  746.                     format(string2, sizeof(string2), " Propietar: %s \n Model: %s",VehInfo[vehid][Propietar], GetVehicleName(vehid));
  747.                     Update3DTextLabelText(vtextlabel[vehid], 0xFF4500FF, string2);
  748.                 }
  749.                 else
  750.                 {
  751.                     SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Nu ai destui bani, la tine.");
  752.                     return 1;
  753.                 }
  754.             }
  755.             else
  756.             {
  757.                 SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Ai atins limita de vehicule personale");
  758.                 return 1;
  759.             }
  760.         }
  761.         else
  762.         {
  763.             SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Vehiculul este deja cumparat");
  764.             return 1;
  765.         }
  766.     }
  767.     else
  768.     {
  769.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Vehiculul nu este de vanzare");
  770.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Hint] Incearca unul de la dealer");
  771.         return 1;
  772.     }
  773.     return 1;
  774. }
  775.  
  776. CMD:vvinde(playerid, params[])
  777. {
  778.     new name5[MAX_PLAYER_NAME], vehid = GetPlayerVehicleID(playerid), string[256];
  779.     GetPlayerName(playerid, name5, sizeof(name5));
  780.     new string2[256];
  781.     new engine,lights,alarm,doors,bonnet,boot,objective;
  782.     new bani;
  783.     if(!(strcmp(VehInfo[vehid][Propietar], name5, true) == 0))
  784.     {
  785.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Vehiculul nu este al tau");
  786.         return 1;
  787.     }
  788.     if(!(IsAtDealership(playerid)))
  789.     {
  790.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Trebuie sa fii la Dealer.");
  791.         return 1;
  792.     }
  793.     if(!(IsAnOwnableCar(vehid)))
  794.     {
  795.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Trebuie sa fii vehicul de vanzare/");
  796.         return 1;
  797.     }
  798.     strmid(VehInfo[vehid][Propietar], "Dealer", 0, strlen("Dealer"), 999);
  799.     VehInfo[vehid][Cumparata] = 0; PlayerInfo[playerid][pVehicule] -= 1;
  800.     TogglePlayerControllable(playerid, 1); SaveThisCar(vehid);
  801.     bani = VehInfo[vehid][Valoare]%2;
  802.     GivePlayerMoney(playerid, VehInfo[vehid][Valoare]%2);
  803.     GameTextForPlayer(playerid, "~w~Ti-ai vandut vehicululul~n~Nu uita de bani!", 5000, 3);
  804.     format(string, sizeof(string), " Ti-ai vandut vehiculul, ai primit %d $!.", bani);
  805.     SendClientMessage(playerid, 0xFFFFFFFF, string);
  806.     GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
  807.     SetVehicleParamsEx(vehid,false,lights,alarm,doors,bonnet,boot,objective);
  808.     VehInfo[vehid][PaintJob] = 3;
  809.     format(string2, sizeof(string2), " DeVanzare\n Model: %s \n Pret: %d",VehInfo[vehid][Propietar], VehInfo[vehid][Valoare]);
  810.     Update3DTextLabelText(vtextlabel[vehid], 0x7FFF00FF, string2);
  811.     return 1;
  812. }
  813.  
  814. CMD:vvindelui(playerid, params[])
  815. {
  816.     new giveplayerid,valoare, vehid = GetPlayerVehicleID(playerid);
  817.     new name5[MAX_PLAYER_NAME], playername[256], giveplayer[256], string[256];
  818.     GetPlayerName(playerid, name5, sizeof(name5));
  819.     if(unformat(params, "ui",giveplayerid,valoare))
  820.     {
  821.             SendClientMessage(playerid, 0xFFFFFFFF, "Foloseste: /vvindelui <playerid/name> <valoare> ");
  822.             return 1;
  823.     }
  824.     if(!(GetPlayerScore(giveplayerid) >= vindelevel))
  825.     {
  826.         format(string,sizeof(string),"[Server-Info] Cumparatorul trebuie sa ai level-ul %d pentru a achizitiona un vehicul",vindelevel);
  827.         SendClientMessage(playerid, 0xFFFFFFFF, string);
  828.         format(string,sizeof(string),"[Server-Info] Trebuief trebuie sa ai level-ul %d pentru a achizitiona un vehicul",vindelevel);
  829.         SendClientMessage(giveplayerid, 0xFFFFFFFF, string);
  830.         return 1;
  831.     }
  832.     if(!(strcmp(VehInfo[vehid][Propietar], name5, true) == 0))
  833.     {
  834.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Vehiculul nu este al tau");
  835.         return 1;
  836.     }
  837.     if(!(PlayerInfo[giveplayerid][pVehicule] < maxperscar))
  838.     {
  839.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Persoana a atins limita de vehicule personale");
  840.         return 1;
  841.     }
  842.     GetPlayerName(playerid, playername, sizeof(playername));
  843.     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  844.     format(string, sizeof(string), "* I-ai oferit lui %s vehiculul tau pentru $%d .", giveplayer, valoare);
  845.     SendClientMessage(playerid, 0xFFFFFFFF, string);
  846.     format(string, sizeof(string), "* %s ti-a oferit veiculul lui pentru $%d (scrie {1E90FF}/accepta{FFFFFF}) pentru a o cumpara.", playername, valoare);
  847.     SendClientMessage(giveplayerid, 0xFFFFFFFF, string); SaveThisCar(vehid);
  848.     VanzatorVeh[giveplayerid] = playerid;
  849.     IDVehicul[giveplayerid] = vehid;
  850.     PretVehicul[giveplayerid] = valoare;
  851.     SetTimerEx( "VDecizion", 30000, false, "i", giveplayerid);
  852.     return 1;
  853. }
  854.  
  855. CMD:acceptav(playerid, params[])
  856. {
  857.     new string[256], vehid = GetPlayerVehicleID(playerid), name5[MAX_PLAYER_NAME], name6[MAX_PLAYER_NAME];
  858.     GetPlayerName(playerid, name5, sizeof(name5));
  859.     GetPlayerName(VanzatorVeh[playerid], name6, sizeof(name6));
  860.     new string2[256];
  861.     if(VanzatorVeh[playerid] >= 0)
  862.     {
  863.         if(GetPlayerMoney(playerid) >= PretVehicul[playerid])
  864.         {
  865.             GivePlayerMoney(VanzatorVeh[playerid], PretVehicul[playerid]);
  866.             GivePlayerMoney(playerid, -PretVehicul[playerid]);
  867.             format(string, sizeof(string), "* %s ti-a acceptat, ai primit %d.", name5, PretVehicul[playerid]);
  868.             SendClientMessage(VanzatorVeh[playerid], 0xFFFFFFFF, string);
  869.             format(string, sizeof(string), "* %s ti-a vandut vehiculul pentru %d.", name6, PretVehicul[playerid]);
  870.             SendClientMessage(playerid, 0xFFFFFFFF, string);
  871.             strmid(VehInfo[vehid][Propietar], name5, 0, strlen(name5), 999);
  872.             PlayerInfo[playerid][pVehicule] += 1; PlayerInfo[VanzatorVeh[playerid]][pVehicule] -= 1;
  873.             format(string2, sizeof(string2), " Propietar: %s \n Model: %s",VehInfo[vehid][Propietar], GetVehicleName(vehid));
  874.             Update3DTextLabelText(vtextlabel[vehid], 0xFF4500FF, string2);
  875.             VanzatorVeh[playerid] = -1; IDVehicul[playerid] = 0; PretVehicul[playerid] = 0;
  876.         }
  877.         else
  878.         {
  879.             format(string, sizeof(string), "* Nu ai destui bani iti trebuie %d", PretVehicul[playerid]);
  880.             SendClientMessage(playerid, 0xFFFFFFFF, string);
  881.             VanzatorVeh[playerid] = -1;
  882.             IDVehicul[playerid] = 0;
  883.             PretVehicul[playerid] = 0;
  884.  
  885.         }
  886.     }
  887.     else
  888.     {
  889.         SendClientMessage(playerid, 0xFFFFFFFF, "Nu ai nici o oferta");
  890.     }
  891.     return 1;
  892. }
  893.  
  894. CMD:refuzav(playerid, params[])
  895. {
  896.     new string[256], name5[MAX_PLAYER_NAME], name6[MAX_PLAYER_NAME];
  897.     GetPlayerName(playerid, name5, sizeof(name5));
  898.     if(VanzatorVeh[playerid] >= 0)
  899.     {
  900.         if(GetPlayerMoney(playerid) >= PretVehicul[playerid])
  901.         {
  902.             format(string, sizeof(string), "* %s ti-a refuzt oferta.", name5);
  903.             SendClientMessage(VanzatorVeh[playerid], 0xFFFFFFFF, string);
  904.             format(string, sizeof(string), "* % I-ai refuzat oferta lui %s.", name6);
  905.             SendClientMessage(playerid, 0xFFFFFFFF, string);
  906.             VanzatorVeh[playerid] = -1;IDVehicul[playerid] = 0;PretVehicul[playerid] = 0;
  907.         }
  908.     }
  909.     else
  910.     {
  911.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Nu ai nici o oferta, pentru a o refuza.");
  912.         return 1;
  913.     }
  914.     return 1;
  915. }
  916.  
  917. CMD:vpark(playerid, params[])
  918. {
  919.     new Float:x, Float:y, Float:z, Float:Angle, string[26], name5[MAX_PLAYERS];
  920.     GetPlayerPos(playerid, x, y, z);
  921.     GetPlayerFacingAngle(playerid, Angle);
  922.     new vehid = GetPlayerVehicleID(playerid);
  923.     GetPlayerName(playerid, name5, sizeof(name5));
  924.     if(strcmp(VehInfo[vehid][Propietar], name5, true) == 0)
  925.     {
  926.         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  927.         {
  928.             VehInfo[vehid][Locatiex] = x;  VehInfo[vehid][Locatiey] = y; VehInfo[vehid][Locatiez] = z; VehInfo[vehid][Rotatie]= Angle;
  929.             SetPlayerFacingAngle(playerid, Angle); SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, Angle);
  930.             SendClientMessage(playerid, 0xFFFFFFFF, "Ai parcat vehiculul in aceste pozitii. Aici va fi respawnata.");
  931.             format(string, sizeof(string), "*  %s si-a parcat vehiculul in aceasta pozitie.", name5);
  932.             ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE); SaveThisCar(vehid);
  933.             return 1;
  934.         }
  935.         else
  936.         {
  937.             SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Nu esti soferul.");
  938.             return 1;
  939.         }
  940.     }
  941.     else
  942.     {
  943.         SendClientMessage(playerid, 0xFFFFFFFF, "[Server-Info] Nu esti propietarul vehiculului.");
  944.     }
  945.     return 1;
  946. }
  947.  
  948. CMD:vlock(playerid, params[])
  949. {
  950.     new Float:x, Float:y, Float:z;
  951.     GetPlayerPos(playerid, x, y, z);
  952.     new name[MAX_PLAYER_NAME];
  953.     GetPlayerName(playerid, name, sizeof(name));
  954.     new loc = GetPlayerVehicleSeat(playerid);
  955.     if(GetPlayerVehicleSeat(playerid) == -1)
  956.     {
  957.         for(new carid = buyablecars; carid<MAX_VEHICLES; carid++)
  958.         {
  959.             if(GetDistanceToCar(playerid,carid) < 2.0)
  960.             {
  961.                 if(strcmp(VehInfo[carid][Propietar], name, true) == 0)
  962.                 {
  963.                     if(VehInfo[carid][Inchisa] == 0)
  964.                     {
  965.                         VehInfo[carid][Inchisa] = 1;
  966.                         SendClientMessage(playerid, 0xFFFFFFFF, "Ti-ai inchis vehiculul.");break;
  967.                     }
  968.                     else if(VehInfo[carid][Inchisa] == 1)
  969.                     {
  970.                         VehInfo[carid][Inchisa] = 0;
  971.                         SendClientMessage(playerid, 0xFFFFFFFF, "Ti-ai deschis vehiculul.");break;
  972.                     }
  973.                 }
  974.             }
  975.         }
  976.     }
  977.     else if(loc == 0 || loc == 1 || loc == 2 || loc == 3 || loc == 4)
  978.     {
  979.         new vehid = GetPlayerVehicleID(playerid);
  980.         if(strcmp(VehInfo[vehid][Propietar], name, true) == 0)
  981.         {
  982.             if(VehInfo[vehid][Inchisa] == 0)
  983.             {
  984.                 VehInfo[vehid][Inchisa] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Ti-ai inchis vehiculul.");
  985.                 return 1;
  986.             }
  987.             else if(VehInfo[vehid][Inchisa] == 1)
  988.             {
  989.                 VehInfo[vehid][Inchisa] = 0; SendClientMessage(playerid, 0xFFFFFFFF, "Ti-ai deschis vehiculul.");
  990.                 return 1;
  991.             }
  992.         }
  993.     }
  994.     return 1;
  995. }
  996.  
  997. CMD:mycars(playerid, params[])
  998. {
  999.     new name[MAX_PLAYER_NAME], string[256];
  1000.     GetPlayerName(playerid, name, sizeof(name));
  1001.     carsshow[playerid] = 0;
  1002.     for(new vehid = buyablecars; vehid<sizeof(VehInfo); vehid++)
  1003.     {
  1004.         if(strcmp(VehInfo[vehid][Propietar], name, true) == 0)
  1005.         {
  1006.             if(carsshow[playerid] <= PlayerInfo[playerid][pVehicule])
  1007.             {
  1008.                 new value = VehInfo[vehid][Valoare]%2;
  1009.                 new Neontxt[10], Statustxt[10];
  1010.                 if(VehInfo[vehid][Neon] >= 1) { Neontxt = "Da"; }
  1011.                 else if(VehInfo[vehid][Neon] == 0) { Neontxt = "Nu"; }
  1012.                 if(VehInfo[vehid][Inchisa] == 0) { Statustxt = "Nu"; }
  1013.                 else if(VehInfo[vehid][Inchisa] == 1) { Statustxt = "Da"; }
  1014.                 new kilo = VehInfo[vehid][Km];
  1015.                 format(string, sizeof(string), " CarID: %d, Model: %s Valoare: %d, Neon: %s, Inchisa: %s, Kilometrii: %d", vehid, GetVehicleName(vehid), value, Neontxt, Statustxt, kilo);
  1016.                 SendClientMessage(playerid, 0xFFFFFFFF, string); carsshow[playerid] += 1;
  1017.             }
  1018.         }
  1019.     }
  1020.     carsshow[playerid] = 0;
  1021.     return 1;
  1022. }
  1023.  
  1024. CMD:mycar(playerid, params[])
  1025. {
  1026.     new name[MAX_PLAYER_NAME], string2[256],vehid;
  1027.     GetPlayerName(playerid, name, sizeof(name));
  1028.     if(unformat(params, "i", vehid))
  1029.     {
  1030.             SendClientMessage(playerid, 0xFFFFFFFF, "Foloseste: /mycar <vehicleid>");
  1031.             return 1;
  1032.     }
  1033.     if(IsValidVehicle(vehid))
  1034.     {
  1035.         if(strcmp(VehInfo[vehid][Propietar], name, true) == 0)
  1036.         {
  1037.             new Neontxt[10], Statustxt[10];
  1038.             if(VehInfo[vehid][Neon] >= 1) { Neontxt = "Da"; }
  1039.             else if(VehInfo[vehid][Neon] == 0) { Neontxt = "Nu"; }
  1040.             if(VehInfo[vehid][Inchisa] == 0) { Statustxt = "Nu"; }
  1041.             else if(VehInfo[vehid][Inchisa] == 1) { Statustxt = "Da"; }
  1042.        
  1043.             PlayerTextDrawShow(playerid, GireadaV0[playerid]);
  1044.             format(string2, sizeof(string2), "CarID: %d", vehid);
  1045.             PlayerTextDrawSetString(playerid ,GireadaV1[playerid], string2);
  1046.             PlayerTextDrawShow(playerid, GireadaV1[playerid]);
  1047.             format(string2, sizeof(string2), "Model: %s", VehicleNames[VehInfo[vehid][Model]-400]);
  1048.             PlayerTextDrawSetString(playerid ,GireadaV2[playerid], string2);
  1049.             PlayerTextDrawShow(playerid, GireadaV2[playerid]);
  1050.             format(string2, sizeof(string2), "Propietar: %s", VehInfo[vehid][Propietar]);
  1051.             PlayerTextDrawSetString(playerid ,GireadaV3[playerid], string2);
  1052.             PlayerTextDrawShow(playerid, GireadaV3[playerid]);
  1053.             format(string2, sizeof(string2), "Numar: %s", VehInfo[vehid][Numar]);
  1054.             PlayerTextDrawSetString(playerid ,GireadaV4[playerid], string2);
  1055.             PlayerTextDrawShow(playerid, GireadaV4[playerid]);
  1056.             format(string2, sizeof(string2), "Neon: %s", Neontxt);
  1057.             PlayerTextDrawSetString(playerid ,GireadaV5[playerid], string2);
  1058.             PlayerTextDrawShow(playerid, GireadaV5[playerid]);
  1059.             format(string2, sizeof(string2), "Inchisa: %s", Statustxt);
  1060.             PlayerTextDrawSetString(playerid ,GireadaV6[playerid], string2);
  1061.             PlayerTextDrawShow(playerid, GireadaV6[playerid]);
  1062.             PlayerTextDrawSetPreviewModel(playerid, GireadaV0[playerid], GetVehicleModel(vehid));
  1063.             PlayerTextDrawSetPreviewVehCol(playerid, GireadaV0[playerid], VehInfo[vehid][Culoare1], VehInfo[vehid][Culoare2]);
  1064.             PlayerTextDrawSetPreviewRot(playerid, GireadaV0[playerid], 0.0, 0.0, -45.0, 1.0);
  1065.            
  1066.             PlayerTextDrawShow(playerid, GireadaV0[playerid]);
  1067.             PlayerTextDrawShow(playerid, GireadaV7[playerid]);
  1068.             showcar[playerid] = 1;
  1069.         }
  1070.         else
  1071.         {
  1072.             SendClientMessage(playerid, 0xFFFFFFFF, "Acest vehicul nu este al tau");
  1073.             return 1;
  1074.         }
  1075.     }
  1076.     else
  1077.     {
  1078.         SendClientMessage(playerid, 0xFFFFFFFF, "Acest vehicul nu exista");
  1079.         return 1;
  1080.     }
  1081.     return 1;
  1082. }
  1083.  
  1084. CMD:mycaroff(playerid, params[])
  1085. {
  1086.     if(showcar[playerid] == 1)
  1087.     {
  1088.         showcar[playerid] = 0;
  1089.         PlayerTextDrawHide(playerid, GireadaV0[playerid]);
  1090.         PlayerTextDrawHide(playerid, GireadaV1[playerid]);
  1091.         PlayerTextDrawHide(playerid, GireadaV2[playerid]);
  1092.         PlayerTextDrawHide(playerid, GireadaV3[playerid]);
  1093.         PlayerTextDrawHide(playerid, GireadaV4[playerid]);
  1094.         PlayerTextDrawHide(playerid, GireadaV5[playerid]);
  1095.         PlayerTextDrawHide(playerid, GireadaV6[playerid]);
  1096.         PlayerTextDrawHide(playerid, GireadaV7[playerid]);
  1097.     }
  1098.     return 1;
  1099. }
  1100.  
  1101. CMD:manual(playerid, params[])
  1102. {
  1103.     new string[1024];
  1104.     strcat( string, "         {FF9094}Manual Vehicul\n\n");
  1105.     strcat( string, "{7CFC00}/vlock - {FFFAF0}inchizi vehiculul\n");
  1106.     strcat( string, "{7CFC00}/vpark - {FFFAF0}parchezi vehiculul \n");
  1107.     strcat( string, "{7CFC00}/vvindelui - {FFFAF0}vinzi vehiculul cuiva \n");
  1108.     strcat( string, "{7CFC00}/vvinde - {FFFAF0}vinzi vehiculul la dealer \n");
  1109.     strcat( string, "{7CFC00}/vcumpara - {FFFAF0}cumperi vehiculul \n");
  1110.     strcat( string, "{7CFC00}/vneon - {FFFAF0}aprinzi neon-ul \n");
  1111.     strcat( string, "{7CFC00}/cumparaneon - {FFFAF0}cumperi neon\n");
  1112.     strcat( string, "{7CFC00}/mycars - {FFFAF0}vezi vehiculele tale\n");
  1113.     strcat( string, "{7CFC00}/mycar - {FFFAF0}vezi vehiculele tale\n");
  1114.     strcat( string, "{7CFC00}/mycaroff - {FFFAF0}vezi vehiculele tale\n\n\n");
  1115.     strcat( string, "{7CFC00}/asellcar - {FFFAF0}vinzi vehiculul (RCON)\n");
  1116.     strcat( string, "{7CFC00}/acreatecar - {FFFAF0}creezi vehiculul (RCON)\n");
  1117.     strcat( string, "{7CFC00}/apark - {FFFAF0}parchezi vehiculul (RCON)\n");
  1118.     strcat( string, "{7CFC00}/asetpret - {FFFAF0}setezi pretul (RCON)\n");
  1119.     strcat( string, "{7CFC00}/rtpv - {FFFAF0}respawnezi vehiculul in care te aflii (RCON)\n");
  1120.     strcat( string, "{7CFC00}/rpv - {FFFAF0}respawnezi vehiculele personale (RCON)\n");
  1121.     strcat( string, "{7CFC00}/rac - {FFFAF0}respawnezi toate vehiculele (RCON)\n\n\n");
  1122.     strcat( string, "{FFFFFF}Sistemul de vehicule personale creeat de: {FFFAF0}Gireada");
  1123.     ShowPlayerDialog(playerid, 888, DIALOG_STYLE_MSGBOX,"Comenzi",string,"De Acord","");
  1124.     return 1;
  1125. }
  1126.  
  1127. CMD:motor(playerid, params[])
  1128. {
  1129.     new playerState = GetPlayerState(playerid), string[256], vehicleid = GetPlayerVehicleID(playerid), name1[MAX_PLAYERS];
  1130.     new engine,lights,alarm,doors,bonnet,boot,objective;
  1131.     GetPlayerName(playerid, name1, sizeof(name1));
  1132.     GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  1133.     new name[MAX_PLAYER_NAME];
  1134.     GetPlayerName(playerid, name, sizeof(name));
  1135.     if(!(strcmp(VehInfo[vehicleid][Propietar], name, true) == 0))
  1136.     {
  1137.         SendClientMessage(playerid, 0xFFFFFFFF, "Nu ai cheile acestui vehicul");
  1138.         return 1;
  1139.     }
  1140.     if(playerState == PLAYER_STATE_DRIVER)
  1141.     {
  1142.         if(motoron[vehicleid] == 0)
  1143.         {
  1144.             motoron[vehicleid] = 1;
  1145.             SetVehicleParamsEx(vehicleid,true,lights,alarm,doors,bonnet,boot,objective);
  1146.             format(string, sizeof(string), "* %s invarte cheia si porneste motorul.",name1);
  1147.             ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
  1148.             return 1;
  1149.         }
  1150.         else if(motoron[vehicleid] == 1)
  1151.         {
  1152.             motoron[vehicleid] = 0;
  1153.             SetVehicleParamsEx(vehicleid,false,lights,alarm,doors,bonnet,boot,objective);
  1154.             format(string, sizeof(string), "* %s invarte cheia si opreste motorul.",name1);
  1155.             ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
  1156.             return 1;
  1157.         }
  1158.     }
  1159.     return 1;
  1160. }
  1161.  
  1162. stock pName(playerid)
  1163. {
  1164.     new name[MAX_PLAYER_NAME];
  1165.     GetPlayerName(playerid,name,sizeof(name));
  1166.     return name;
  1167. }
  1168.  
  1169. public OnPlayerConnect(playerid)
  1170. {
  1171.     new file[80];
  1172.     format(file, sizeof(file),"JucatoriVehicule/%s.ini", pName(playerid));
  1173.     if(dini_Exists(file))
  1174.     {
  1175.         PlayerInfo[playerid][pVehicule] = dini_Int(file,"Vehicule");
  1176.         PlayerInfo[playerid][pLoggedIn] = dini_Int(file,"Logat");
  1177.        
  1178.     }
  1179.     else if(!dini_Exists(file))
  1180.     {
  1181.         dini_Create(file);
  1182.         dini_IntSet(file,"Vehicule",PlayerInfo[playerid][pVehicule] = 0);
  1183.         dini_IntSet(file,"Logat",PlayerInfo[playerid][pVehicule] = 1);
  1184.     }
  1185.     carsshow[playerid] = 0;
  1186.     LoadGireadaTextDraw(playerid);
  1187.     return 1;
  1188. }
  1189.  
  1190. public OnPlayerDisconnect(playerid, reason)
  1191. {
  1192.     new file[80];
  1193.     format(file, sizeof(file),"JucatoriVehicule/%s.ini", pName(playerid));
  1194.     dini_IntSet(file,"Vehicule",PlayerInfo[playerid][pVehicule]);
  1195.     PlayerInfo[playerid][pLoggedIn] = 0;
  1196.     return 1;
  1197. }
  1198.  
  1199. public OnPlayerSpawn(playerid)
  1200. {
  1201.     PlayerInfo[playerid][pLoggedIn] = 1;
  1202.     return 1;
  1203. }
  1204.  
  1205. public OnPlayerDeath(playerid, killerid, reason)
  1206. {
  1207.     return 1;
  1208. }
  1209.  
  1210. public OnVehicleSpawn(vehicleid)
  1211. {
  1212.     return 1;
  1213. }
  1214.  
  1215. public OnVehicleDeath(vehicleid, killerid)
  1216. {
  1217.     DestroyObject(neon[vehicleid][0]);DestroyObject(neon[vehicleid][1]);DestroyObject(neon[vehicleid][2]);DestroyObject(neon[vehicleid][3]); neonon[vehicleid] = 0;
  1218.     return 1;
  1219. }
  1220.  
  1221. public OnPlayerText(playerid, text[])
  1222. {
  1223.     return 1;
  1224. }
  1225.  
  1226. public OnPlayerCommandText(playerid, cmdtext[])
  1227. {
  1228.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  1229.     {
  1230.         // Do something here
  1231.         return 1;
  1232.     }
  1233.     return 0;
  1234. }
  1235.  
  1236. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1237. {
  1238.     new Float:x, Float:y, Float:z;
  1239.     GetPlayerPos(playerid, x, y, z);
  1240.     new name[MAX_PLAYER_NAME];
  1241.     GetPlayerName(playerid, name, sizeof(name));
  1242.     if(VehInfo[vehicleid][Inchisa] == 1 && VehInfo[vehicleid][Propietar] != name[playerid])
  1243.     {
  1244.         SetPlayerPos(playerid,x,y,z);
  1245.         SendClientMessage(playerid, 0xFFFFFFFF, "Acest vehiculul este inchiat");
  1246.     }
  1247.     VerificaKilometri(vehicleid);
  1248.     return 1;
  1249. }
  1250.  
  1251. public OnPlayerExitVehicle(playerid, vehicleid)
  1252. {
  1253.     KillTimer(Contuar[playerid]);
  1254.     return 1;
  1255. }
  1256.  
  1257. public OnPlayerStateChange(playerid, newstate, oldstate)
  1258. {
  1259.     if(newstate == PLAYER_STATE_DRIVER)
  1260.     {
  1261.         Contuar[playerid] = SetTimerEx("VerificaKilometri", 2500, true, "i", GetPlayerVehicleID(playerid));
  1262.     }
  1263.     return 1;
  1264. }
  1265.  
  1266. public OnPlayerEnterCheckpoint(playerid)
  1267. {
  1268.     return 1;
  1269. }
  1270.  
  1271. public OnPlayerLeaveCheckpoint(playerid)
  1272. {
  1273.     return 1;
  1274. }
  1275.  
  1276. public OnPlayerEnterRaceCheckpoint(playerid)
  1277. {
  1278.     return 1;
  1279. }
  1280.  
  1281. public OnPlayerLeaveRaceCheckpoint(playerid)
  1282. {
  1283.     return 1;
  1284. }
  1285.  
  1286. public OnRconCommand(cmd[])
  1287. {
  1288.     return 1;
  1289. }
  1290.  
  1291. public OnPlayerRequestSpawn(playerid)
  1292. {
  1293.     return 1;
  1294. }
  1295.  
  1296. public OnObjectMoved(objectid)
  1297. {
  1298.     return 1;
  1299. }
  1300.  
  1301. public OnPlayerObjectMoved(playerid, objectid)
  1302. {
  1303.     return 1;
  1304. }
  1305.  
  1306. public OnPlayerPickUpPickup(playerid, pickupid)
  1307. {
  1308.     return 1;
  1309. }
  1310.  
  1311. public OnVehicleMod(playerid, vehicleid, componentid)
  1312. {
  1313.     if(GetPlayerInterior(playerid) == 0)
  1314.     {
  1315.         BanEx(playerid, "Tuning Hacks");
  1316.     }
  1317.     return 1;
  1318. }
  1319.  
  1320. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1321. {
  1322.     /*if(GetPlayerInterior(playerid) == 0)
  1323.     {
  1324.         BanEx(playerid, "Tuning Hacks");
  1325.     }
  1326.     else if(GetPlayerInterior(playerid) == 1)
  1327.     {
  1328.         VehInfo[vehicleid][PaintJob] = paintjobid;
  1329.     }*/
  1330.     return 1;
  1331. }
  1332.  
  1333. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1334. {
  1335.     return 1;
  1336. }
  1337.  
  1338. public LoadCar()
  1339. {
  1340.     new file[254];
  1341.     new string2[256];
  1342.     for(new idx = buyablecars; idx<sizeof(VehInfo); idx++)
  1343.     {
  1344.         format(file, sizeof(file),"Vehicule/%d.ini", idx);
  1345.         if(dini_Exists(file))
  1346.         {
  1347.             VehInfo[idx][Model] = dini_Int(file,"Model");
  1348.             VehInfo[idx][Locatiex] = dini_Float(file,"Locatiex");
  1349.             VehInfo[idx][Locatiey] = dini_Float(file,"Locatiey");
  1350.             VehInfo[idx][Locatiez] = dini_Float(file,"Locatiez");
  1351.             VehInfo[idx][Rotatie] = dini_Float(file,"Rotatie");
  1352.             VehInfo[idx][Valoare] = dini_Int(file,"Valoare");
  1353.             VehInfo[idx][Culoare1] = dini_Int(file,"Culoare1");
  1354.             VehInfo[idx][Culoare2] = dini_Int(file,"Culoare2");
  1355.             strmid(VehInfo[idx][Propietar], dini_Get(file,"Propietar"), 0, strlen(dini_Get(file,"Propietar")), 255);
  1356.             VehInfo[idx][Cumparata] = dini_Int(file,"Cumparata");
  1357.             VehInfo[idx][Inchisa] = dini_Int(file,"Inchisa");
  1358.             VehInfo[idx][Neon] = dini_Int(file,"Neon");
  1359.             strmid(VehInfo[idx][Numar], dini_Get(file,"Numar"), 0, strlen(dini_Get(file,"Numar")), 255);
  1360.             VehInfo[idx][PaintJob] = dini_Int(file,"PaintJob");
  1361. //=============================================================[Spawner]===================================================================
  1362.             new carid = AddStaticVehicle(VehInfo[idx][Model], VehInfo[idx][Locatiex], VehInfo[idx][Locatiey], VehInfo[idx][Locatiez], VehInfo[idx][Rotatie], VehInfo[idx][Culoare1], VehInfo[idx][Culoare2]);
  1363.             SetVehicleNumberPlate(idx, VehInfo[idx][Numar]);
  1364.             ChangeVehiclePaintjob(idx, VehInfo[idx][PaintJob]);
  1365.             if(VehInfo[carid][Cumparata] == 1)
  1366.             {
  1367.                 format(string2, sizeof(string2), " Model: %s \n Propietar: %s",GetVehicleName(carid),VehInfo[idx][Propietar]);
  1368.                 vtextlabel[carid] = Create3DTextLabel(string2, 0xFF4500FF, VehInfo[carid][Locatiez], VehInfo[carid][Locatiey], VehInfo[carid][Locatiez], 20.0, 0, 0);
  1369.                 Attach3DTextLabelToVehicle(vtextlabel[carid] , carid, 0.0, 0.0, 0.0);
  1370.             }
  1371.             else if(VehInfo[idx][Cumparata] == 0)
  1372.             {
  1373.                 format(string2, sizeof(string2), " DeVanzare\n Model: %s \n Pret: %d",GetVehicleName(carid), VehInfo[idx][Valoare]);
  1374.                 vtextlabel[carid] = Create3DTextLabel(string2, 0x7FFF00FF, VehInfo[carid][Locatiex], VehInfo[carid][Locatiey], VehInfo[carid][Locatiez], 20.0, 0, 0);
  1375.                 Attach3DTextLabelToVehicle(vtextlabel[carid] , carid, 0.0, 0.0, 0.0);
  1376.             }
  1377.         }
  1378.     }
  1379.     printf("Server Stats: Vehicule Personale Incarcate");
  1380.     return 1;
  1381. }
  1382.  
  1383. public SaveCar()
  1384. {
  1385.     new file2[254];
  1386.     new idx = buyablecars;
  1387.     while(idx<sizeof(VehInfo))
  1388.     {
  1389.         format(file2, sizeof(file2),"Vehicule/%d.ini", idx);
  1390.         if(dini_Exists(file2))
  1391.         {
  1392.             dini_IntSet(file2,"Model",VehInfo[idx][Model]);
  1393.             dini_FloatSet(file2,"Locatiex",VehInfo[idx][Locatiex]);
  1394.             dini_FloatSet(file2,"Locatiey",VehInfo[idx][Locatiey]);
  1395.             dini_FloatSet(file2,"Locatiez",VehInfo[idx][Locatiez]);
  1396.             dini_FloatSet(file2,"Angle",VehInfo[idx][Rotatie]);
  1397.             dini_IntSet(file2,"Valoare",VehInfo[idx][Valoare]);
  1398.             dini_IntSet(file2,"Culoare1",VehInfo[idx][Culoare1]);
  1399.             dini_IntSet(file2,"Culoare2",VehInfo[idx][Culoare2]);
  1400.             dini_Set(file2,"Propietar",VehInfo[idx][Propietar]);
  1401.             dini_IntSet(file2,"Cumparata",VehInfo[idx][Cumparata]);
  1402.             dini_IntSet(file2,"Inchisa",VehInfo[idx][Inchisa]);
  1403.             dini_IntSet(file2,"Neon",VehInfo[idx][Neon]);
  1404.             dini_Set(file2,"Numar",VehInfo[idx][Numar]);
  1405.             SetVehicleNumberPlate(idx,VehInfo[idx][Numar]);
  1406.             dini_IntSet(file2,"PaintJob",VehInfo[idx][PaintJob]);
  1407.             idx++;
  1408.             return 1;
  1409.         }
  1410.         /*else if(!dini_Exists(file2))
  1411.         {
  1412.             dini_Create(file2);
  1413.             dini_IntSet(file2,"Model",VehInfo[idx][Model]);
  1414.             dini_FloatSet(file2,"Locatiex",VehInfo[idx][Locatiex]);
  1415.             dini_FloatSet(file2,"Locatiey",VehInfo[idx][Locatiey]);
  1416.             dini_FloatSet(file2,"Locatiez",VehInfo[idx][Locatiez]);
  1417.             dini_FloatSet(file2,"Angle",VehInfo[idx][Rotatie]);
  1418.             dini_IntSet(file2,"Valoare",VehInfo[idx][Valoare]);
  1419.             dini_IntSet(file2,"Culoare1",VehInfo[idx][Culoare1]);
  1420.             dini_IntSet(file2,"Culoare2",VehInfo[idx][Culoare2]);
  1421.             dini_Set(file2,"Propietar",VehInfo[idx][Propietar]);
  1422.             dini_IntSet(file2,"Cumparata",VehInfo[idx][Cumparata]);
  1423.             dini_IntSet(file2,"Inchisa",VehInfo[idx][Inchisa]);
  1424.             dini_IntSet(file2,"Neon",VehInfo[idx][Neon]);
  1425.             dini_Set(file2,"Numar",VehInfo[idx][Numar]);
  1426.             SetVehicleNumberPlate(idx,VehInfo[idx][Numar]);
  1427.             dini_IntSet(file2,"PaintJob",VehInfo[idx][PaintJob]);
  1428.             idx++;
  1429.             return 1;
  1430.         }*/
  1431.     }
  1432.     return 1;
  1433. }
  1434.  
  1435. public SaveThisCar(vehid)
  1436. {
  1437.     new file2[254];
  1438.     format(file2, sizeof(file2),"Vehicule/%d.ini", vehid);
  1439.     if(dini_Exists(file2))
  1440.     {
  1441.         dini_IntSet(file2,"Model",VehInfo[vehid][Model]);
  1442.         dini_FloatSet(file2,"Locatiex",VehInfo[vehid][Locatiex]);
  1443.         dini_FloatSet(file2,"Locatiey",VehInfo[vehid][Locatiey]);
  1444.         dini_FloatSet(file2,"Locatiez",VehInfo[vehid][Locatiez]);
  1445.         dini_FloatSet(file2,"Angle",VehInfo[vehid][Rotatie]);
  1446.         dini_IntSet(file2,"Valoare",VehInfo[vehid][Valoare]);
  1447.         dini_IntSet(file2,"Culoare1",VehInfo[vehid][Culoare1]);
  1448.         dini_IntSet(file2,"Culoare2",VehInfo[vehid][Culoare2]);
  1449.         dini_Set(file2,"Propietar",VehInfo[vehid][Propietar]);
  1450.         dini_IntSet(file2,"Cumparata",VehInfo[vehid][Cumparata]);
  1451.         dini_IntSet(file2,"Inchisa",VehInfo[vehid][Inchisa]);
  1452.         dini_IntSet(file2,"Neon",VehInfo[vehid][Neon]);
  1453.         dini_Set(file2,"Numar",VehInfo[vehid][Numar]);
  1454.         SetVehicleNumberPlate(vehid,VehInfo[vehid][Numar]);
  1455.         dini_IntSet(file2,"PaintJob",VehInfo[vehid][PaintJob]);
  1456.         return 1;
  1457.     }
  1458.     else if(!dini_Exists(file2))
  1459.     {
  1460.         dini_Create(file2);
  1461.         dini_IntSet(file2,"Model",VehInfo[vehid][Model]);
  1462.         dini_FloatSet(file2,"Locatiex",VehInfo[vehid][Locatiex]);
  1463.         dini_FloatSet(file2,"Locatiey",VehInfo[vehid][Locatiey]);
  1464.         dini_FloatSet(file2,"Locatiez",VehInfo[vehid][Locatiez]);
  1465.         dini_FloatSet(file2,"Angle",VehInfo[vehid][Rotatie]);
  1466.         dini_IntSet(file2,"Valoare",VehInfo[vehid][Valoare]);
  1467.         dini_IntSet(file2,"Culoare1",VehInfo[vehid][Culoare1]);
  1468.         dini_IntSet(file2,"Culoare2",VehInfo[vehid][Culoare2]);
  1469.         dini_Set(file2,"Propietar",VehInfo[vehid][Propietar]);
  1470.         dini_IntSet(file2,"Cumparata",VehInfo[vehid][Cumparata]);
  1471.         dini_IntSet(file2,"Inchisa",VehInfo[vehid][Inchisa]);
  1472.         dini_IntSet(file2,"Neon",VehInfo[vehid][Neon]);
  1473.         dini_Set(file2,"Numar",VehInfo[vehid][Numar]);
  1474.         SetVehicleNumberPlate(vehid,VehInfo[vehid][Numar]);
  1475.         dini_IntSet(file2,"PaintJob",VehInfo[vehid][PaintJob]);
  1476.         return 1;
  1477.     }
  1478.     return 1;
  1479. }
  1480.  
  1481. public SendAdminMesaj(color,const string[])
  1482. {
  1483.     for(new i = 0; i < MAX_PLAYERS; i++)
  1484.     {
  1485.         if(IsPlayerConnected(i))
  1486.         {
  1487.             if(IsPlayerAdmin(i))
  1488.             {
  1489.                 SendClientMessage(i, color, string);
  1490.                 printf("%s", string);
  1491.             }
  1492.         }
  1493.     }
  1494.     return 1;
  1495. }
  1496.  
  1497. public VerificaKilometri(vehicleid)
  1498. {
  1499.     if(GetVehicleSpeed(vehicleid) > 10)
  1500.     {
  1501.         Metrii[vehicleid] += floatround(floatdiv(GetVehicleSpeed(vehicleid), 60.0));
  1502.     }
  1503.     if(Metrii[vehicleid] > 9)
  1504.     {
  1505.         VehInfo[vehicleid][Km] += 1;
  1506.         Metrii[vehicleid] = 0;
  1507.     }
  1508.     return 1;
  1509. }
  1510.  
  1511. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1512. {
  1513.     new string[256], name[MAX_PLAYER_NAME],string2[500];
  1514.     GetPlayerName(playerid, name, sizeof(name));
  1515.     if(response)
  1516.     {
  1517.         switch(dialogid)
  1518.         {
  1519.             case Dialog_Manual:
  1520.             {
  1521.                 SendClientMessage(playerid, 0xFFFFFFFFF, " Speram ca te-ai lamurit");
  1522.             }
  1523.             case Dialog_Pret:
  1524.             {
  1525.                 if(!(IsNumeric(inputtext)))
  1526.                 {
  1527.                     format(string,sizeof(string), "{FFFFFF}Introdu pretul vehiculului. Model: %s ", VehicleNames[vehicul[playerid]-400]);
  1528.                     ShowPlayerDialog(playerid, Dialog_Pret, DIALOG_STYLE_INPUT,"Pret Vehicul",string,"->","Anuleaza");
  1529.                 }
  1530.                 vehiculpret[playerid] = strval(inputtext);
  1531.                 format(string,sizeof(string), "{FFFFFF}Introdu culoarea 1. Model: %s ", VehicleNames[vehicul[playerid]-400]);
  1532.                 ShowPlayerDialog(playerid, Dialog_Culoare1, DIALOG_STYLE_INPUT,"Culoare Vehicul",string,"->","Anuleaza");
  1533.             }
  1534.             case Dialog_Culoare1:
  1535.             {
  1536.                 if(!(strval(inputtext) >= 0 || strval(inputtext) <= 254))
  1537.                 {
  1538.                     format(string,sizeof(string), "{FFFFFF}Introdu culoarea 1(Intre 0 si 254). Model: %s ", VehicleNames[vehicul[playerid]-400]);
  1539.                     ShowPlayerDialog(playerid, Dialog_Culoare1, DIALOG_STYLE_INPUT,"Culoare Vehicul",string,"->","Anuleaza");
  1540.                 }
  1541.                 vehiculculoare1[playerid] = strval(inputtext);
  1542.                 format(string,sizeof(string), "{FFFFFF}Introdu culoarea 2. Model: %s ", VehicleNames[vehicul[playerid]-400]);
  1543.                 ShowPlayerDialog(playerid, Dialog_Culoare2, DIALOG_STYLE_INPUT,"Culoare Vehicul",string,"->","Anuleaza");
  1544.             }
  1545.             case Dialog_Culoare2:
  1546.             {
  1547.                 if(!(strval(inputtext) >= 0 || strval(inputtext) <= 254))
  1548.                 {
  1549.                     format(string,sizeof(string), "{FFFFFF}Introdu culoarea 2(Intre 0 si 254). Model: %s ", VehicleNames[vehicul[playerid]-400]);
  1550.                     ShowPlayerDialog(playerid, Dialog_Culoare2, DIALOG_STYLE_INPUT,"Culoare Vehicul",string,"->","Anuleaza");
  1551.                 }
  1552.                 vehiculculoare2[playerid] = strval(inputtext);
  1553.                 new Float:x, Float:y, Float:z, plate[32];
  1554.                 GetPlayerPos(playerid, x, y, z);
  1555.                 new vehicle = CreateVehicle(vehicul[playerid],x,y,z,1,vehiculculoare1[playerid],vehiculculoare2[playerid],999999);
  1556.                 PutPlayerInVehicle(playerid,vehicle,0);
  1557.                 new vehid = GetPlayerVehicleID(playerid);
  1558.                 format(plate, sizeof(plate), "G-%d-GIR",vehid);
  1559.                 SetVehicleNumberPlate(vehid,plate);
  1560.                 strmid(VehInfo[vehid][Numar], plate, 0, strlen(plate), 999);
  1561.                 VehInfo[vehid][Locatiex] = x;  VehInfo[vehid][Locatiey] = y; VehInfo[vehid][Locatiez] = z; VehInfo[vehid][Rotatie]= 1;
  1562.                 VehInfo[vehid][Model] = vehicul[playerid]; VehInfo[vehid][Valoare] = vehiculpret[playerid]; VehInfo[vehid][Culoare1] = vehiculculoare1[playerid]; VehInfo[vehid][Culoare2] = vehiculculoare2[playerid];
  1563.                 strmid(VehInfo[vehid][Propietar], "Dealer", 0, strlen("Dealer"), 999); VehInfo[vehid][Cumparata] = 0; VehInfo[vehid][Neon] = 0;
  1564.                 VehInfo[vehid][PaintJob] = 3;
  1565.                 format(string, sizeof(string), " Vehiculul %d a fost creat cu succes. Felicitari!.", vehicle);
  1566.                 SendClientMessage(playerid, 0xFFFFFFFF, string);
  1567.                 format(string, sizeof(string), " %s a creiat vehiculul %d.",name, vehicle);
  1568.                 SendAdminMesaj(0xFFFFFFFF,string);
  1569.                 printf("%s a creiat vehiculul %d.",name, vehicle); SaveThisCar(vehicle);
  1570.                 format(string2, sizeof(string2), " DeVanzare\n Model: %s \n Pret: %d",GetVehicleName(vehid), VehInfo[vehid][Valoare]);
  1571.                 vtextlabel[vehid] = Create3DTextLabel(string2, 0x7FFF00FF, VehInfo[vehid][Locatiex], VehInfo[vehid][Locatiey], VehInfo[vehid][Locatiez], 20.0, 0, 0);
  1572.                 Attach3DTextLabelToVehicle( vtextlabel[vehid] , vehid, 0.0, 0.0, 0.0);
  1573.             }
  1574.         }
  1575.         return 1;
  1576.     }
  1577.     return 0;
  1578. }
  1579.  
  1580. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  1581. {
  1582.     if(IsPlayerConnected(playerid))
  1583.     {
  1584.         new Float:posx, Float:posy, Float:posz;
  1585.         new Float:oldposx, Float:oldposy, Float:oldposz;
  1586.         new Float:tempposx, Float:tempposy, Float:tempposz;
  1587.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  1588.         for(new i = 0; i < MAX_PLAYERS; i++)
  1589.         {
  1590.             if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  1591.             {
  1592.                 GetPlayerPos(i, posx, posy, posz);
  1593.                 tempposx = (oldposx -posx);
  1594.                 tempposy = (oldposy -posy);
  1595.                 tempposz = (oldposz -posz);
  1596.                 if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters
  1597.                 {
  1598.                     SendClientMessage(i, col1, string);
  1599.                 }
  1600.                 else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters
  1601.                 {
  1602.                     SendClientMessage(i, col2, string);
  1603.                 }
  1604.                 else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters
  1605.                 {
  1606.                     SendClientMessage(i, col3, string);
  1607.                 }
  1608.                 else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters
  1609.                 {
  1610.                     SendClientMessage(i, col4, string);
  1611.                 }
  1612.                 else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter
  1613.                 {
  1614.                     SendClientMessage(i, col5, string);
  1615.                 }
  1616.             }
  1617.             else
  1618.             {
  1619.                 SendClientMessage(i, col1, string);
  1620.             }
  1621.         }
  1622.     }
  1623.     return 1;
  1624. }
  1625.  
  1626. stock GetDistanceToCar(playerid,carid)
  1627. {
  1628.     new Float:dis;
  1629.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  1630.     if (!IsPlayerConnected(playerid)) {
  1631.     return -1;
  1632.     }
  1633.     GetPlayerPos(playerid,x1,y1,z1);
  1634.     if(!IsVehicleInUse(carid)){
  1635.         GetVehiclePos(carid,x2,y2,z2);
  1636.         dis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  1637.         return floatround(dis);
  1638.     }else{
  1639.         return 1;
  1640.     }
  1641. }
  1642.  
  1643. stock IsVehicleInUse(vehicleid)
  1644. {
  1645.     for(new i; i != MAX_PLAYERS; i++)
  1646.     {
  1647.         if(GetPlayerVehicleID(i) == vehicleid)
  1648.         {
  1649.             return i;
  1650.         }
  1651.     }
  1652.     return INVALID_PLAYER_ID;
  1653. }
  1654.  
  1655.  
  1656. stock GetVehicleName(vehicleid)
  1657. {
  1658.     new String[256];
  1659.     format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]);
  1660.     return String;
  1661. }
  1662.  
  1663. stock IsVehicleOccupied(vehicleid)
  1664. {
  1665.     for(new i=0;i<MAX_PLAYERS;i++)
  1666.     {
  1667.         if(IsPlayerInAnyVehicle(i))
  1668.         {
  1669.             if(GetPlayerVehicleID(i)==vehicleid)
  1670.             {
  1671.                 return 1;
  1672.             }
  1673.             else
  1674.             {
  1675.                 return 0;
  1676.             }
  1677.         }
  1678.     }
  1679.     return 1;
  1680. }
  1681.  
  1682. stock GetVehicleSpeed( vehicleid )
  1683. {
  1684.         new Float:vSpeed[3];
  1685.         GetVehicleVelocity( vehicleid, vSpeed[0], vSpeed[1], vSpeed[2] );
  1686.         new Float:vSpeed_Float;
  1687.         vSpeed_Float = floatsqroot( ((vSpeed[0] * vSpeed[0]) + (vSpeed[1] * vSpeed[1])) + (vSpeed[2] * vSpeed[2])) * 161;
  1688.         new vSpeed_Int;
  1689.         vSpeed_Int = floatround( vSpeed_Float, floatround_round);
  1690.         return vSpeed_Int;
  1691.  
  1692. }
  1693.  
  1694. public OnPlayerModelSelection(playerid, response, listid, modelid)
  1695. {
  1696.     new string[256];
  1697.     if(listid == vehicule)
  1698.     {
  1699.         if(response)
  1700.         {
  1701.             vehicul[playerid] = modelid;
  1702.             format(string,sizeof(string), "{FFFFFF}Introdu pretul vehiculului. Model: %s ", VehicleNames[modelid-400]);
  1703.             ShowPlayerDialog(playerid, Dialog_Pret, DIALOG_STYLE_INPUT,"Pret Vehicul",string,"->","Anuleaza");
  1704.         }
  1705.         else SendClientMessage(playerid, 0xFF0000FF, "Altadata");
  1706.         return 1;
  1707.  
  1708.     }
  1709.     return 1;
  1710. }
  1711.  
  1712. IsNumeric(const string[])
  1713. {
  1714.     for (new i = 0, j = strlen(string); i < j; i++)
  1715.     {
  1716.         if (string[i] > '9' || string[i] < '0') return 0;
  1717.     }
  1718.     return 1;
  1719. }
  1720.  
  1721. stock LoadGireadaTextDraw(playerid)
  1722. {
  1723.     GireadaV0[playerid] = CreatePlayerTextDraw(playerid, 297.500000, 176.937500, "usebox");
  1724.     PlayerTextDrawFont(playerid, GireadaV0[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  1725.     PlayerTextDrawUseBox(playerid, GireadaV0[playerid], true);
  1726.     PlayerTextDrawBoxColor(playerid, GireadaV0[playerid], -120);
  1727.     PlayerTextDrawTextSize(playerid, GireadaV0[playerid], -97.0, 76.0);
  1728.  
  1729.     GireadaV1[playerid] = CreatePlayerTextDraw(playerid, 300.000000, 172.812500, "ID:");
  1730.     PlayerTextDrawLetterSize(playerid, GireadaV1[playerid], 0.449999, 1.600000);
  1731.     PlayerTextDrawAlignment(playerid, GireadaV1[playerid], 1);
  1732.     PlayerTextDrawColor(playerid, GireadaV1[playerid], -1);
  1733.     PlayerTextDrawSetShadow(playerid, GireadaV1[playerid], 0);
  1734.     PlayerTextDrawSetOutline(playerid, GireadaV1[playerid], 1);
  1735.     PlayerTextDrawBackgroundColor(playerid, GireadaV1[playerid], 51);
  1736.     PlayerTextDrawFont(playerid, GireadaV1[playerid], 1);
  1737.     PlayerTextDrawSetProportional(playerid, GireadaV1[playerid], 1);
  1738.  
  1739.     GireadaV2[playerid] = CreatePlayerTextDraw(playerid, 300.000000, 185.062500, "Model:");
  1740.     PlayerTextDrawLetterSize(playerid, GireadaV2[playerid], 0.449999, 1.600000);
  1741.     PlayerTextDrawAlignment(playerid, GireadaV2[playerid], 1);
  1742.     PlayerTextDrawColor(playerid, GireadaV2[playerid], -1);
  1743.     PlayerTextDrawSetShadow(playerid, GireadaV2[playerid], 0);
  1744.     PlayerTextDrawSetOutline(playerid, GireadaV2[playerid], 1);
  1745.     PlayerTextDrawBackgroundColor(playerid, GireadaV2[playerid], 51);
  1746.     PlayerTextDrawFont(playerid, GireadaV2[playerid], 1);
  1747.     PlayerTextDrawSetProportional(playerid, GireadaV2[playerid], 1);
  1748.  
  1749.     GireadaV3[playerid] = CreatePlayerTextDraw(playerid, 300.500000, 197.750000, "Propietar");
  1750.     PlayerTextDrawLetterSize(playerid, GireadaV3[playerid], 0.449999, 1.600000);
  1751.     PlayerTextDrawAlignment(playerid, GireadaV3[playerid], 1);
  1752.     PlayerTextDrawColor(playerid, GireadaV3[playerid], -1);
  1753.     PlayerTextDrawSetShadow(playerid, GireadaV3[playerid], 0);
  1754.     PlayerTextDrawSetOutline(playerid, GireadaV3[playerid], 1);
  1755.     PlayerTextDrawBackgroundColor(playerid, GireadaV3[playerid], 51);
  1756.     PlayerTextDrawFont(playerid, GireadaV3[playerid], 1);
  1757.     PlayerTextDrawSetProportional(playerid, GireadaV3[playerid], 1);
  1758.  
  1759.     GireadaV4[playerid] = CreatePlayerTextDraw(playerid, 300.000000, 210.875000, "Numar:");
  1760.     PlayerTextDrawLetterSize(playerid, GireadaV4[playerid], 0.449999, 1.600000);
  1761.     PlayerTextDrawAlignment(playerid, GireadaV4[playerid], 1);
  1762.     PlayerTextDrawColor(playerid, GireadaV4[playerid], -1);
  1763.     PlayerTextDrawSetShadow(playerid, GireadaV4[playerid], 0);
  1764.     PlayerTextDrawSetOutline(playerid, GireadaV4[playerid], 1);
  1765.     PlayerTextDrawBackgroundColor(playerid, GireadaV4[playerid], 51);
  1766.     PlayerTextDrawFont(playerid, GireadaV4[playerid], 1);
  1767.     PlayerTextDrawSetProportional(playerid, GireadaV4[playerid], 1);
  1768.  
  1769.     GireadaV5[playerid] = CreatePlayerTextDraw(playerid, 299.500000, 223.562500, "Neon:");
  1770.     PlayerTextDrawLetterSize(playerid, GireadaV5[playerid], 0.449999, 1.600000);
  1771.     PlayerTextDrawAlignment(playerid, GireadaV5[playerid], 1);
  1772.     PlayerTextDrawColor(playerid, GireadaV5[playerid], -1);
  1773.     PlayerTextDrawSetShadow(playerid, GireadaV5[playerid], 0);
  1774.     PlayerTextDrawSetOutline(playerid, GireadaV5[playerid], 1);
  1775.     PlayerTextDrawBackgroundColor(playerid, GireadaV5[playerid], 51);
  1776.     PlayerTextDrawFont(playerid, GireadaV5[playerid], 1);
  1777.     PlayerTextDrawSetProportional(playerid, GireadaV5[playerid], 1);
  1778.  
  1779.     GireadaV6[playerid] = CreatePlayerTextDraw(playerid, 298.500000, 236.250000, "Inchisa:");
  1780.     PlayerTextDrawLetterSize(playerid, GireadaV6[playerid], 0.449999, 1.600000);
  1781.     PlayerTextDrawAlignment(playerid, GireadaV6[playerid], 1);
  1782.     PlayerTextDrawColor(playerid, GireadaV6[playerid], -1);
  1783.     PlayerTextDrawSetShadow(playerid, GireadaV6[playerid], 0);
  1784.     PlayerTextDrawSetOutline(playerid, GireadaV6[playerid], 1);
  1785.     PlayerTextDrawBackgroundColor(playerid, GireadaV6[playerid], 51);
  1786.     PlayerTextDrawFont(playerid, GireadaV6[playerid], 1);
  1787.     PlayerTextDrawSetProportional(playerid, GireadaV6[playerid], 1);
  1788.  
  1789.     GireadaV7[playerid] = CreatePlayerTextDraw(playerid, 477.500000, 165.562500, "usebox");
  1790.     PlayerTextDrawLetterSize(playerid, GireadaV7[playerid], 0.000000, 10.572222);
  1791.     PlayerTextDrawTextSize(playerid, GireadaV7[playerid], 175.500000, 0.000000);
  1792.     PlayerTextDrawAlignment(playerid, GireadaV7[playerid], 1);
  1793.     PlayerTextDrawColor(playerid, GireadaV7[playerid], 0);
  1794.     PlayerTextDrawUseBox(playerid, GireadaV7[playerid], true);
  1795.     PlayerTextDrawBoxColor(playerid, GireadaV7[playerid], 85);
  1796.     PlayerTextDrawSetShadow(playerid, GireadaV7[playerid], 0);
  1797.     PlayerTextDrawSetOutline(playerid, GireadaV7[playerid], 0);
  1798.     PlayerTextDrawFont(playerid, GireadaV7[playerid], 0);
  1799.     return 1;
  1800. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement