Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- /*
- Funkcije:
- a_GetVehiclePrice(modelid);
- a_GetVehicleRefundPrice(modelid);
- a_GetVehicleMaxSpeed(modelid);
- a_GetVehicleMaxFuel(modelid);
- a_GetVehicleUsageFuel(modelid);
- a_GetVehicleName(modelid);
- */
- #define MAX_VEHICLE_NAME 32
- enum cInfo { VehIme[MAX_VEHICLE_NAME], VehPrice, VehRefund, VehSpeed, VehFuelCapacity, VehFuelUsage };
- static const
- VehInfo[ 212 ][ cInfo ] = {
- {"LandStalker", 32500, 29250, 154, 100, 7},
- {"Bravura", 10000, 9000, 148, 60, 5},
- {"Buffalo", 122000, 109800, 188, 60, 7},
- {"Linerunner", 75000, 67500, 111, 200, 8},
- {"Perenniel", 4000, 3600, 133, 70, 4},
- {"Sentinel", 40000, 36000, 166, 80, 5},
- {"Dumper",0,0,0,0,0},
- {"Firetruck",0,0,0,0,0},
- {"Trashmaster",0,0,0,0,0},
- {"Stretch", 95000, 85500, 160, 100, 6},
- {"Manana", 8000, 7200, 131, 50, 2},
- {"Infernus", 150000, 135000, 224, 60, 10},
- {"Voodoo", 17500, 15750, 170, 60, 5},
- {"Pony",0,0,0,0,0},
- {"Mule",0,0,0,0,0},
- {"Cheetah", 95000, 79200, 194, 60, 9},
- {"Ambulance",0,0,0,0,0},
- {"Leviathan",0,0,0,0,0},
- {"Moonbeam", 40000, 36000, 117, 90, 1},
- {"Esperanto", 20000, 18000, 151, 60, 3},
- {"Taxi",0,0,0,0,0},
- {"Washington", 40000, 36000, 155, 80, 6},
- {"Bobcat", 17500, 15750, 141, 105, 6},
- {"Mr Whoopee",0,0,0,0,0},
- {"BF Injection", 50000, 45000, 137, 60, 9},
- {"Hunter",0,0,0,0,0},
- {"Premier", 32000, 28800, 175, 70, 5},
- {"Enforcer",0,0,0,0,0},
- {"Securicar",0,0,0,0,0},
- {"Banshee", 90000, 81000, 205, 55, 9},
- {"Predator", 0,0,0,0,0},
- {"Bus", 0,0,0,0,0},
- {"Rhino", 0,0,0,0,0},
- {"Barracks", 0,0,0,0,0},
- {"Hotknife", 0,0,0,0,0},
- {"Article Trailer", 0,0,0,0,0},
- {"Previon", 12000, 10800, 151, 50, 2},
- {"Coach", 32000, 28800, 160, 165, 8},
- {"Cabbie", 0,0,0,0,0},
- {"Stallion", 35000, 31500, 170, 60, 5},
- {"Rumpo", 0,0,0,0,0},
- {"RC Bandit", 0,0,0,0,0},
- {"Romero", 0,0,0,0,0},
- {"Packer", 0,0,0,0,0},
- {"Monster", 0,0,0,0,0},
- {"Admiral", 45000, 40500, 165, 80, 5},
- {"Squallo", 0,0,0,0,0},
- {"Seasparrow", 0,0,0,0,0},
- {"Pizzaboy", 3000, 2700, 115, 50, 4},
- {"Tram", 0,0,0,0,0},
- {"Article Trailer 2", 0,0,0,0,0},
- {"Turismo", 100000, 90000, 195, 60, 9},
- {"Speeder", 125000, 112500, 151, 180, 10},
- {"Reefer", 150000, 135000, 58, 200, 6},
- {"Tropic", 160000, 144000, 131, 190, 8},
- {"Flatbed", 0,0,0,0,0},
- {"Yankee", 0,0,0,0,0},
- {"Caddy", 0,0,0,0,0},
- {"Solair", 32500, 29250, 159, 80, 4},
- {"Topfun Van", 0,0,0,0,0},
- {"Skimmer", 0,0,0,0,0},
- {"PCJ-600", 66000, 59400, 163, 50, 8},
- {"Faggio", 2500, 2250, 112, 50, 4},
- {"Freeway", 33000, 29700, 145, 60, 6},
- {"RC Baron", 0,0,0,0,0},
- {"RC Raider", 0,0,0,0,0},
- {"Glendale", 20000, 18000, 149, 70, 4},
- {"Oceanic", 22000, 19800, 142, 70, 4},
- {"Sanchez", 17500, 15750, 146, 70, 4},
- {"Sparrow", 300000, 270000, 136, 210, 8},
- {"Patriot", 48000, 43200, 158, 90, 7},
- {"Quad", 5000, 4500, 111, 40, 4},
- {"Coastguard", 0,0,0,0,0},
- {"Dinghy", 0,0,0,0,0},
- {"Hermes", 27000, 24300, 151, 60, 4},
- {"Sabre", 40000, 36000, 175, 60, 6},
- {"Rustler", 0,0,0,0,0},
- {"ZR-350", 33000, 29700, 188, 60, 8},
- {"Walton", 55000, 49000, 119, 105, 6},
- {"Regina", 35000, 31500, 141, 80, 5},
- {"Comet", 40000, 36000, 186, 60, 5},
- {"BMX", 1250, 1125, 74, 0, 0},
- {"Burrito", 30000, 27000, 158, 130, 8},
- {"Camper", 62000, 55800, 124, 110, 6},
- {"Marquis", 200000, 180000, 67, 200, 4},
- {"Baggage", 0,0,0,0,0},
- {"Dozer", 0,0,0,0,0},
- {"Maverick", 600000, 540000, 190, 230, 8},
- {"SAN News Maverick", 0,0,0,0,0},
- {"Rancher", 50000, 45000, 158, 110, 7},
- {"FBI Rancher", 0,0,0,0,0},
- {"Virgo", 17000, 15300, 151, 80, 4},
- {"GreenWood", 17000, 15300, 142, 70, 6},
- {"Jetmax", 120000, 108000, 172, 180, 10},
- {"Hotring", 50000, 45000, 217, 50, 10},
- {"Sandking", 60000, 54000, 178, 90, 9},
- {"Blista Compact", 27000, 24300, 165, 80, 4},
- {"Police Maverick", 0,0,0,0,0},
- {"Boxville", 0,0,0,0,0},
- {"Benson", 0,0,0,0,0},
- {"Mesa", 30000, 27000, 142, 100, 6},
- {"RC Goblin", 0,0,0,0,0},
- {"Hotring Racer A", 50000, 45000, 217, 50, 10},
- {"Hotring Racer B", 50000, 45000, 217, 50, 10},
- {"Bloodring Banger", 27000, 24300, 175, 50, 10},
- {"Rancher", 50000, 45000, 158, 110, 7},
- {"Super GT", 100000, 90000, 181, 55, 8},
- {"Elegant", 37500, 33750, 167, 85, 6},
- {"Journey", 75000, 67500, 109, 165, 7},
- {"Bike", 500, 450, 79, 0, 0},
- {"Mountain Bike", 900, 810, 103, 0, 0},
- {"Beagle", 750000, 675000, 212, 300, 6},
- {"Cropduster", 690000, 621000, 206, 280, 5},
- {"Stunt plane", 700000, 630000, 226, 280, 10},
- {"Tanker", 90000, 81000, 122, 225, 10},
- {"Roadtrain", 105000, 94500, 144, 250, 9},
- {"Nebula", 19000, 17100, 159, 70, 5},
- {"Majestic", 14000, 12600, 159, 70, 5},
- {"Buccaneer", 28000, 25200, 166, 60, 4},
- {"Shamal", 900000, 810000, 273, 350, 9},
- {"Hydra", 0,0,0,0,0},
- {"FCR-900", 77000, 69300, 158, 55, 8},
- {"NRG-500", 88000, 79200, 178, 50, 10},
- {"HPV1000", 0,0,0,0,0},
- {"Cement Truck", 0,0,0,0,0},
- {"Towtruck", 0,0,0,0,0},
- {"Fortune", 35000, 31500, 159, 70, 5},
- {"Cadrona", 21000, 18900, 151, 60, 4},
- {"FBI Truck", 0,0,0,0,0},
- {"Willard", 15000, 13500, 151, 80, 6},
- {"Forklift", 2000, 1800, 61, 30, 2},
- {"Tractor", 0,0,0,0,0},
- {"Combine Harvester", 0,0,0,0,0},
- {"Feltzer", 27500, 24750, 169, 60, 7},
- {"Remington", 25000, 22500, 170, 60, 5},
- {"Slamvan", 40000, 36000, 160, 80, 8},
- {"Blade", 25000, 22500, 175, 60, 4},
- {"Freight (Train)", 0,0,0,0,0},
- {"Brownstreak (Train)", 0,0,0,0,0},
- {"Vortex", 0,0,0,0,0},
- {"Vincent", 17000, 15300, 154, 70, 5},
- {"Bullet", 85000, 76500, 205, 50, 10},
- {"Clover", 7000, 6300, 166, 70, 4},
- {"Sadler", 7500, 6750, 153, 90, 5},
- {"Firetruck LA", 0,0,0,0,0},
- {"Hustler", 45000, 40500, 148, 60, 6},
- {"Intruder", 16000, 14400, 151, 60, 4},
- {"Primo", 18000, 16200, 144, 70, 5},
- {"Cargobob", 0,0,0,0,0},
- {"Tampa", 15000, 13500, 155, 80, 4},
- {"Sunrise", 15000, 13500, 160, 60, 4 },
- {"Merit", 23000, 20700, 159, 80, 4},
- {"Utility Van", 0,0,0,0,0},
- {"Nevada", 0,0,0,0,0},
- {"Yosemite", 60000, 54000, 145, 100, 5},
- {"Windsor", 22000, 19800, 160, 80, 6},
- {"Monster A", 0,0,0,0,0},
- {"Monster B", 0,0,0,0,0},
- {"Uranus", 35000, 31500, 158, 60, 5},
- {"Jester", 32500, 29250, 180, 60, 7},
- {"Sultan", 70000, 63000, 171, 60, 9},
- {"Stratum", 35000, 31500, 155, 80, 6},
- {"Elegy", 30000, 27000, 180, 60, 9},
- {"Raindance", 700000, 630000, 149, 240, 8},
- {"RC Tiger", 0,0,0,0,0},
- {"Flash", 70000, 63000, 167, 60, 6},
- {"Tahoma", 20000, 18000, 162, 80, 4},
- {"Savanna", 23000, 20700, 175, 60, 4},
- {"Bandito", 50000, 45000, 148, 50, 9},
- {"Train", 0,0,0,0,0},
- {"Train", 0,0,0,0,0},
- {"Kart", 0,0,0,0,0},
- {"Mower", 0,0,0,0,0},
- {"Dune", 180000, 162000, 144, 150, 8},
- {"Sweeper", 0,0,0,0,0},
- {"Broadway", 22000, 19800, 160, 60, 4},
- {"Tornado", 17500, 15750, 159, 65, 4},
- {"AT400", 0,0,0,0,0},
- {"DFT-30", 0,0,0,0,0},
- {"Huntley", 60000, 54000, 160, 100, 8},
- {"Stafford", 120000, 108000, 155, 80, 5},
- {"BF-400", 66000, 59400, 154, 50, 8},
- {"Newsvan", 0,0,0,0,0},
- {"Tug", 0,0,0,0,0},
- {"Petrol Trailer", 0,0,0,0,0},
- {"Emperor", 20000, 18000, 155, 80, 7},
- {"Wayfarer", 10000, 9000, 145, 60, 5},
- {"Euros", 32000, 28800, 166, 60, 7},
- {"Hotdog", 40000, 36000, 109, 140, 8},
- {"Club", 30000, 27000, 164, 60, 6},
- {"Freight Box", 0,0,0,0,0},
- {"Article Trailer 3", 0,0,0,0,0},
- {"Andromada", 0,0,0,0,0},
- {"Dodo", 600000, 540000, 237, 260, 7},
- {"RC Cam", 0,0,0,0,0},
- {"Launch", 150000, 135000, 225, 190, 6},
- {"Police Car (LSPD", 0,0,0,0,0},
- {"Police Car (SFPD)", 0,0,0,0,0},
- {"Police Car (LVPD)", 0,0,0,0,0},
- {"Police Ranger", 0,0,0,0,0},
- {"Picador", 6500, 5850, 152, 90, 5},
- {"S.W.A.T.", 0,0,0,0,0},
- {"Alpha", 70000, 63000, 171, 60, 8},
- {"Phoenix", 34000, 30600, 173, 60, 8},
- {"Glendale Shit", 0,0,0,0,0},
- {"Sadler Shit", 0,0,0,0,0},
- {"Baggage A", 0,0,0,0,0},
- {"Baggage B", 0,0,0,0,0},
- {"Tug Trailer", 0,0,0,0,0},
- {"Boxville", 0,0,0,0,0},
- {"Farm Trailer", 0,0,0,0,0},
- {"Utility Trailer", 0,0,0,0,0}
- };
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*//*
- - Funckija: a_GetVehiclePrice
- - Opis:
- funckija za dobijanje cijene vozila iz njegovog modela ( znaci ne iz ID-a nego iz modela).
- - Parametri:
- modelid
- - Return:
- cijena vozila
- - Primjeri:
- YCMD:cijenavozila(playerid, params[], help)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Niste u vozilu!");
- new string[128], model;
- model = GetVehicleModel(GetPlayerVehicleID(playerid));
- format(string, sizeof(string), "Cijena ovog vozila je %d", a_GetVehiclePrice(model));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- */
- stock a_GetVehiclePrice(modelid) return VehInfo[modelid-400][VehPrice];
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*
- - Funckija: a_GetVehicleRefundPrice
- - Opis:
- funckija za dobijanje povratne cijene vozila iz njegovog modela ( znaci ne iz ID-a nego iz modela).
- - Parametri:
- modelid
- - Return:
- povratna cijena vozila
- - Primjeri:
- YCMD:povratnacijenavozila(playerid, params[], help)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Niste u vozilu!");
- new string[128], model;
- model = GetVehicleModel(GetPlayerVehicleID(playerid));
- format(string, sizeof(string), "Povratna cijena ovog vozila je %d", a_GetVehicleRefundPrice(model));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- */
- stock a_GetVehicleRefundPrice(modelid) return VehInfo[modelid-400][VehRefund];
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*
- - Funckija: a_GetVehicleMaxSpeed
- - Opis:
- funckija za dobijanje maximalne brzine vozila iz njegovog modela ( znaci ne iz ID-a nego iz modela).
- - Parametri:
- modelid
- - Return:
- maximalna brzina vozila
- - Primjeri:
- YCMD:maxbrzinavozila(playerid, params[], help)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Niste u vozilu!");
- new string[128], model;
- model = GetVehicleModel(GetPlayerVehicleID(playerid));
- format(string, sizeof(string), "Maximalna brzina ovog vozila je %d", a_GetVehicleMaxSpeed(model));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- */
- stock a_GetVehicleMaxSpeed(modelid) return VehInfo[modelid-400][VehSpeed];
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*
- - Funckija: a_GetVehicleMaxFuel
- - Opis:
- funckija za dobijanje velicine rezervoara iz njegovog modela ( znaci ne iz ID-a nego iz modela).
- - Parametri:
- modelid
- - Return:
- velicina rezervoara vozila
- - Primjeri:
- YCMD:maxfuel(playerid, params[], help)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Niste u vozilu!");
- new string[128], model;
- model = GetVehicleModel(GetPlayerVehicleID(playerid));
- format(string, sizeof(string), "Velicina rezervoara ovog vozila je %d litara", a_GetVehicleMaxFuel(model));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- */
- stock a_GetVehicleMaxFuel(modelid) return VehInfo[modelid-400][VehFuelCapacity];
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*
- - Funckija: a_GetVehicleUsageFuel
- - Opis:
- funckija za dobijanje potrosnje vozila iz njegovog modela ( znaci ne iz ID-a nego iz modela).
- - Parametri:
- modelid
- - Return:
- potrosnja vozila
- - Primjeri:
- YCMD:potrosnjagoriva(playerid, params[], help)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Niste u vozilu!");
- new string[128], model;
- model = GetVehicleModel(GetPlayerVehicleID(playerid));
- format(string, sizeof(string), "Vozilo trosi %d litara goriva :D", a_GetVehicleUsageFuel(model));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- */
- stock a_GetVehicleUsageFuel(modelid) return VehInfo[modelid-400][VehFuelUsage];
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*
- - Funckija: a_GetVehicleName
- - Opis:
- funckija za dobijanje imena vozila iz njegovog modela ( znaci ne iz ID-a nego iz modela).
- - Parametri:
- modelid
- - Return:
- ime vozila
- - Primjeri:
- YCMD:imevozila(playerid, params[], help)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Niste u vozilu!");
- new string[128], model;
- model = GetVehicleModel(GetPlayerVehicleID(playerid));
- format(string, sizeof(string), "Ime vozila: %s", a_GetVehicleName(model));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- */
- stock a_GetVehicleName(modelid) {
- new a_vehime[MAX_VEHICLE_NAME];
- format(a_vehime, MAX_VEHICLE_NAME, "%s", VehInfo[modelid-400][VehIme]);
- return a_vehime;
- }
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
- /*----------------------------------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment