Azzal kezdtem hogy kocsilekérõt. Igen /v id or /v kocsineve lekérõt akkarok csinálni, csak valamiért nem jön össze.
leirom az egészet ahogy csináltam (alapból a GM be raktam bele).
new VehicleNames[212][] = {
{\"landstalker\"},{\"bravura\"},{\"buffalo\"},{\"linerunner\"},{\"perrenial\"},{\"sentinel\"},{\"dumper\"},
{\"firetruck\"},{\"trashmaster\"},{\"stretch\"},{\"manana\"},{\"infernus\"},{\"Voodoo\"},{\"pony\"},{\"mule\"},
{\"cheetah\"},{\"ambulance\"},{\"leviathan\"},{\"moonbeam\"},{\"esperanto\"},{\"taxi\"},{\"washington\"},
{\"bobcat\"},{\"mr whoopee\"},{\"bf injection\"},{\"hunter\"},{\"premier\"},{\"enforcer\"},{\"securicar\"},
{\"banshee\"},{\"predator\"},{\"bus\"},{\"rhino\"},{\"barracks\"},{\"hotknife\"},{\"trailer 1\"},{\"previon\"},
{\"coach\"},{\"cabbie\"},{\"stallion\"},{\"rumpo\"},{\"rc bandit\"},{\"romero\"},{\"packer\"},{\"monster\"},
{\"admiral\"},{\"squalo\"},{\"seasparrow\"},{\"pizzaboy\"},{\"tram\"},{\"trailer 2\"},{\"turismo\"},
{\"speeder\"},{\"reefer\"},{\"tropic\"},{\"flatbed\"},{\"yankee\"},{\"caddy\"},{\"solair\"},{\"berkley\'s rc Van\"},
{\"skimmer\"},{\"pcj-600\"},{\"faggio\"},{\"freeway\"},{\"rc baron\"},{\"rc raider\"},{\"glendale\"},{\"oceanic\"},
{\"sanchez\"},{\"sparrow\"},{\"patriot\"},{\"quad\"},{\"coastguard\"},{\"dinghy\"},{\"hermes\"},{\"sabre\"},
{\"rustler\"},{\"zr-350\"},{\"walton\"},{\"regina\"},{\"comet\"},{\"bmx\"},{\"burrito\"},{\"camper\"},{\"marquis\"},
{\"baggage\"},{\"dozer\"},{\"maverick\"},{\"news chopper\"},{\"rancher\"},{\"fbi rancher\"},{\"Virgo\"},{\"greenwood\"},
{\"jetmax\"},{\"hotring\"},{\"sandking\"},{\"blista compact\"},{\"police maverick\"},{\"boxville\"},{\"benson\"},
{\"mesa\"},{\"rc goblin\"},{\"hotring racer a\"},{\"hotring racer b\"},{\"bloodring banger\"},{\"rancher\"},
{\"super gt\"},{\"elegant\"},{\"journey\"},{\"bike\"},{\"mountain bike\"},{\"beagle\"},{\"cropdust\"},{\"stunt\"},
{\"tanker\"}, {\"roadtrain\"},{\"nebula\"},{\"majestic\"},{\"buccaneer\"},{\"shamal\"},{\"hydra\"},{\"fcr-900\"},
{\"nrg-500\"},{\"hpV1000\"},{\"cement truck\"},{\"tow truck\"},{\"fortune\"},{\"cadrona\"},{\"fbi truck\"},
{\"willard\"},{\"forklift\"},{\"tractor\"},{\"combine\"},{\"feltzer\"},{\"remington\"},{\"slamvan\"},
{\"blade\"},{\"freight\"},{\"streak\"},{\"Vortex\"},{\"Vincent\"},{\"bullet\"},{\"clover\"},{\"sadler\"},
{\"firetruck la\"},{\"hustler\"},{\"intruder\"},{\"primo\"},{\"cargobob\"},{\"tampa\"},{\"sunrise\"},{\"merit\"},
{\"utility\"},{\"nevada\"},{\"yosemite\"},{\"windsor\"},{\"monster a\"},{\"monster b\"},{\"uranus\"},{\"jester\"},
{\"sultan\"},{\"stratum\"},{\"elegy\"},{\"raindance\"},{\"rc tiger\"},{\"flash\"},{\"tahoma\"},{\"savanna\"},
{\"bandito\"},{\"freight flat\"},{\"streak carriage\"},{\"kart\"},{\"mower\"},{\"duneride\"},{\"sweeper\"},
{\"broadway\"},{\"tornado\"},{\"at-400\"},{\"dft-30\"},{\"huntley\"},{\"stafford\"},{\"bf-400\"},{\"newsvan\"},
{\"tug\"},{\"trailer 3\"},{\"emperor\"},{\"wayfarer\"},{\"euros\"},{\"hotdog\"},{\"club\"},{\"freight carriage\"},
{\"trailer 3\"},{\"andromada\"},{\"dodo\"},{\"rc cam\"},{\"launch\"},{\"police car (lspd)\"},{\"police car (sfpd)\"},
{\"police car (lVpd)\"},{\"police ranger\"},{\"picador\"},{\"s.w.a.t. Van\"},{\"alpha\"},{\"phoenix\"},{\"glendale\"},
{\"sadler\"},{\"luggage trailer a\"},{\"luggage trailer b\"},{\"stair trailer\"},{\"boxville\"},{\"farm plow\"},
{\"utility trailer\"}
};
new VehicleNamesSCM[212][] = {//ez azért kell, hogy a chatben nagy betûkkel irja ki.
{\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perrenial\"},{\"Sentinel\"},{\"Dumper\"},
{\"Firetruck\"},{\"Trashmaster\"},{\"Stretch\"},{\"Manana\"},{\"Infernus\"},{\"Voodoo\"},{\"Pony\"},{\"Mule\"},
{\"Cheetah\"},{\"Ambulance\"},{\"Leviathan\"},{\"Moonbeam\"},{\"Esperanto\"},{\"Taxi\"},{\"Washington\"},
{\"Bobcat\"},{\"Mr Whoopee\"},{\"BF Injection\"},{\"Hunter\"},{\"Premier\"},{\"Enforcer\"},{\"Securicar\"},
{\"Banshee\"},{\"Predator\"},{\"Bus\"},{\"Rhino\"},{\"Barracks\"},{\"Hotknife\"},{\"Trailer 1\"},{\"Previon\"},
{\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"},
{\"Admiral\"},{\"Squalo\"},{\"Seasparrow\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"Turismo\"},
{\"Speeder\"},{\"Reefer\"},{\"Tropic\"},{\"Flatbed\"},{\"Yankee\"},{\"Caddy\"},{\"Solair\"},{\"Berkley\'s RC Van\"},
{\"Skimmer\"},{\"PCJ-600\"},{\"Faggio\"},{\"Freeway\"},{\"RC Baron\"},{\"RC Raider\"},{\"Glendale\"},{\"Oceanic\"},
{\"Sanchez\"},{\"Sparrow\"},{\"Patriot\"},{\"Quad\"},{\"Coastguard\"},{\"Dinghy\"},{\"Hermes\"},{\"Sabre\"},
{\"Rustler\"},{\"ZR-350\"},{\"Walton\"},{\"Regina\"},{\"Comet\"},{\"BMX\"},{\"Burrito\"},{\"Camper\"},{\"Marquis\"},
{\"Baggage\"},{\"Dozer\"},{\"Maverick\"},{\"News Chopper\"},{\"Rancher\"},{\"FBI Rancher\"},{\"Virgo\"},{\"Greenwood\"},
{\"Jetmax\"},{\"Hotring\"},{\"Sandking\"},{\"Blista Compact\"},{\"Police Maverick\"},{\"Boxville\"},{\"Benson\"},
{\"Mesa\"},{\"RC Goblin\"},{\"Hotring Racer A\"},{\"Hotring Racer B\"},{\"Bloodring Banger\"},{\"Rancher\"},
{\"Super GT\"},{\"Elegant\"},{\"Journey\"},{\"Bike\"},{\"Mountain Bike\"},{\"Beagle\"},{\"Cropdust\"},{\"Stunt\"},
{\"Tanker\"}, {\"Roadtrain\"},{\"Nebula\"},{\"Majestic\"},{\"Buccaneer\"},{\"Shamal\"},{\"Hydra\"},{\"FCR-900\"},
{\"NRG-500\"},{\"HPV1000\"},{\"Cement Truck\"},{\"Tow Truck\"},{\"Fortune\"},{\"Cadrona\"},{\"FBI Truck\"},
{\"Willard\"},{\"Forklift\"},{\"Tractor\"},{\"Combine\"},{\"Feltzer\"},{\"Remington\"},{\"Slamvan\"},
{\"Blade\"},{\"Freight\"},{\"Streak\"},{\"Vortex\"},{\"Vincent\"},{\"Bullet\"},{\"Clover\"},{\"Sadler\"},
{\"Firetruck LA\"},{\"Hustler\"},{\"Intruder\"},{\"Primo\"},{\"Cargobob\"},{\"Tampa\"},{\"Sunrise\"},{\"Merit\"},
{\"Utility\"},{\"Nevada\"},{\"Yosemite\"},{\"Windsor\"},{\"Monster A\"},{\"Monster B\"},{\"Uranus\"},{\"Jester\"},
{\"Sultan\"},{\"Stratum\"},{\"Elegy\"},{\"Raindance\"},{\"RC Tiger\"},{\"Flash\"},{\"Tahoma\"},{\"Savanna\"},
{\"Bandito\"},{\"Freight Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"},
{\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"},
{\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"},
{\"Trailer 3\"},{\"Andromada\"},{\"Dodo\"},{\"RC Cam\"},{\"Launch\"},{\"Police Car (LSPD)\"},{\"Police Car (SFPD)\"},
{\"Police Car (LVPD)\"},{\"Police Ranger\"},{\"Picador\"},{\"S.W.A.T. Van\"},{\"Alpha\"},{\"Phoenix\"},{\"Glendale\"},
{\"Sadler\"},{\"Luggage Trailer A\"},{\"Luggage Trailer B\"},{\"Stair Trailer\"},{\"Boxville\"},{\"Farm Plow\"},
{\"Utility Trailer\"}
};
a parancs:
CMD:v(playerid,params[])
{
new carid;
if(sscanf(params,\"i\",carid)) return SendClientMessage(playerid,0xCCFFDD56,\"HASZNÁLAT:/v [carID]\");
if(carid > 611 || carid < 400) return SendClientMessage(playerid,0xCCFFDD56,\"HIBA: Rosz ID\");
SendClientMessage(playerid,0xCCFFDD56,\"Jármû lekérve\");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new car=CreateVehicle(playerid,x,y,z,95.0,-1,-1,1000);
PutPlayerInVehicle(playerid, car, 0);
return 1;
}
Zsolesszka ezzel van az a 2 gondom hogy nem spawnolja le a kocsit, és csak id-re engedi.