C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(1997) : warning 219: local variable "carid" shadows a variable at a preceding level C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3295) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3295) : error 001: expected token: "-identifier-", but found "-string-" C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3296) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3296) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3297) : error 017: undefined symbol "rot" C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(329 : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3300) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3301) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3302) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(330 : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3319) : error 001: expected token: "-identifier-", but found "-string-" C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3320) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3320) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3321) : error 017: undefined symbol "rot" C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3322) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3324) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3325) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3326) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3334) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3335) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3343) : error 001: expected token: "-identifier-", but found "-string-" C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3345) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3346) : error 017: undefined symbol "rot" C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3347) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3349) : error 035: argument type mismatch (argument 3) C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3350) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3351) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3363) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(3365) : warning 217: loose indentation C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(358 : warning 219: local variable "x" shadows a variable at a preceding level C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECRP.pwn(358 : warning 219: local variable "y" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 15 Errors. |
new Text:Next,Text:Back,Text:Buy;
new carid[MAX_PLAYERS];
new car[MAX_PLAYERS];
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"}
};
public OnFilterScriptInit()
{
///////////////////Next////////////////
Next = TextDrawCreate(200,342,"Next");
TextDrawLetterSize(Next, 0.5 ,3.5);
///////////buy////////////////
Buy = TextDrawCreate(300,342,"Spawn");
TextDrawLetterSize(Buy, 0.5 ,3.5);
///////////////Previous/////////////
Back = TextDrawCreate(400,346,"Previous");
TextDrawLetterSize(Back, 0.5,3.5);
print("\n--------------------------------------");
print(" Spawn Car By Chrism11695");
print("--------------------------------------\n");
TextDrawSetSelectable(Next, true);
TextDrawSetSelectable(Buy, true);
TextDrawSetSelectable(Back, true);
for(new i = 0; i != MAX_PLAYERS; i++) carid[i] = 399;
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Next)
{
if(carid[playerid] < 612) carid[playerid] ++;
new Float:X,Float:Y,Float:Z,Float:rot;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,rot);
GetXYInFrontOfPlayer(playerid, X, Y, 10);
if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
car[playerid] = CreateVehicle(carid[playerid],X,Y,Z,rot+270,1,1,100000);
SetPlayerVirtualWorld(playerid,2000);
SetVehicleVirtualWorld(car[playerid], 2000);
GameTextForPlayer(playerid, VehicleNames[carid[playerid]-400], 1, 1);
}
else if(clickedid == Buy)
{
carid[playerid] = 399;
TextDrawHideForPlayer(playerid,Next);
TextDrawHideForPlayer(playerid,Back);
TextDrawHideForPlayer(playerid,Buy);
CancelSelectTextDraw(playerid);
PutPlayerInVehicle(playerid,car[playerid],0);
SetPlayerVirtualWorld(playerid,0);
SetVehicleVirtualWorld(car[playerid], 0);
}
else if(clickedid == Back)
{
if(carid[playerid] > 399) carid[playerid] --;
new Float:X,Float:Y,Float:Z,Float:rot;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,rot);
GetXYInFrontOfPlayer(playerid, X, Y, 10);
if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
car[playerid] = CreateVehicle(carid[playerid],X,Y,Z,rot+270,1,1,100000);
SetPlayerVirtualWorld(playerid,2000);
SetVehicleVirtualWorld(car[playerid], 2000);
GameTextForPlayer(playerid, VehicleNames[carid[playerid]-400], 1, 1);
}
return 1;
}
CMD:help(playerid,params[])
{
SendClientMessage(playerid,0x33AA33AA,"/spawncar - use to select your car to spawn!");
SendClientMessage(playerid,0x33AA33AA,"/skip - use to skip to a certain vehicle!");
return 1;
}
CMD:skip(playerid,params[])
{
if(GetPlayerVirtualWorld(playerid) == 2000)
{
if(!strlen(params)) return SendClientMessage(playerid,0x33AA33AA,"Usage: /skip <Vehicle Name>");
if(GetVehicleID(playerid,params) == 0) return 1;
new Float:X,Float:Y,Float:Z,Float:rot;
carid[playerid] = GetVehicleID(playerid,params);
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,rot);
GetXYInFrontOfPlayer(playerid, X, Y, 10);
if(car[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(car[playerid]);
car[playerid] = CreateVehicle(carid[playerid],X,Y,Z,rot+270,1,1,100000);
SetPlayerVirtualWorld(playerid,2000);
SetVehicleVirtualWorld(car[playerid], 2000);
GameTextForPlayer(playerid, VehicleNames[carid[playerid]-400], 1, 1);
}
else
{
SendClientMessage(playerid,0x33AA33AA,"Please Type /spawncar before using this command!");
}
return 1;
}
CMD:spawncar(playerid,params[])
{
SetPlayerVirtualWorld(playerid,2000);
TextDrawShowForPlayer(playerid,Next);
TextDrawShowForPlayer(playerid,Buy);
TextDrawShowForPlayer(playerid,Back);
SelectTextDraw(playerid, 0xAFAFAFAA);
return 1;
}
stock GetVehicleID(playerid,params[])
{
new id = 0;
if(strfind("Landstalker",params,true) != -1) id = 400;
else if(strfind("Bravura",params,true) != -1) id = 401;
else if(strfind("Buffalo",params,true) != -1) id = 402;
else if(strfind("Linerunner",params,true) != -1) id = 403;
else if(strfind("Perenail",params,true) != -1) id = 404;
else if(strfind("Sentinel",params,true) != -1) id = 405;
else if(strfind("Dumper",params,true) != -1) id = 406;
else if(strfind("Firetruck",params,true) != -1) id = 407;
else if(strfind("Trashmaster",params,true) != -1) id = 408;
else if(strfind("Stretch",params,true) != -1) id = 409;
else if(strfind("Manana",params,true) != -1) id = 410;
else if(strfind("infernus",params,true) != -1) id = 411;
else if(strfind("Voodoo",params,true) != -1) id = 412;
else if(strfind("pony",params,true) != -1) id = 413;
else if(strfind("mule",params,true) != -1) id = 414;
else if(strfind("cheetah",params,true) != -1) id = 415;
else if(strfind("ambulance",params,true) != -1) id = 416;
else if(strfind("levetian",params,true) != -1) id = 417;
else if(strfind("moonbeam",params,true) != -1) id = 418;
else if(strfind("esperanto",params,true) != -1) id = 419;
else if(strfind("taxi",params,true) != -1) id = 420;
else if(strfind("washington",params,true) != -1) id = 421;
else if(strfind("bobcat",params,true) != -1) id = 422;
else if(strfind("mrwhoopee",params,true) != -1) id = 423;
else if(strfind("bfinjection",params,true) != -1) id = 424;
else if(strfind("hunter",params,true) != -1) id = 425;
else if(strfind("premier",params,true) != -1) id = 426;
else if(strfind("enforcer",params,true) != -1) id = 427;
else if(strfind("securicar",params,true) != -1) id = 428;
else if(strfind("banshee",params,true) != -1) id = 429;
else if(strfind("predator",params,true) != -1) id = 430;
else if(strfind("bus",params,true) != -1) id = 431;
else if(strfind("rhino",params,true) != -1) id = 432;
else if(strfind("barracks",params,true) != -1) id = 433;
else if(strfind("hotknife",params,true) != -1) id = 434;
else if(strfind("artictrailer1",params,true) != -1) id = 435;
else if(strfind("previon",params,true) != -1) id = 436;
else if(strfind("coach",params,true) != -1) id = 437;
else if(strfind("cabbie",params,true) != -1) id = 438;
else if(strfind("stallion",params,true) != -1) id = 439;
else if(strfind("rumpo",params,true) != -1) id = 440;
else if(strfind("bandit",params,true) != -1) id = 441;
else if(strfind("romero",params,true) != -1) id = 442;
else if(strfind("packer",params,true) != -1) id = 443;
else if(strfind("monster",params,true) != -1) id = 444;
else if(strfind("admiral",params,true) != -1) id = 445;
else if(strfind("squalo",params,true) != -1) id = 446;
else if(strfind("seasparrow",params,true) != -1) id = 447;
else if(strfind("pizzaboy",params,true) != -1) id = 448;
else if(strfind("tram",params,true) != -1) id = 449;
else if(strfind("artictrailer2",params,true) != -1) id = 450;
else if(strfind("turismo",params,true) != -1) id = 451;
else if(strfind("speeder",params,true) != -1) id = 452;
else if(strfind("reefer",params,true) != -1) id = 453;
else if(strfind("tropic",params,true) != -1) id = 454;
else if(strfind("flatbed",params,true) != -1) id = 455;
else if(strfind("yankee",params,true) != -1) id = 456;
else if(strfind("caddy",params,true) != -1) id = 457;
else if(strfind("solair",params,true) != -1) id = 458;
else if(strfind("topfun",params,true) != -1) id = 459;
else if(strfind("skimmer",params,true) != -1) id = 460;
else if(strfind("pcj600",params,true) != -1) id = 461;
else if(strfind("faggio",params,true) != -1) id = 462;
else if(strfind("freeway",params,true) != -1) id = 463;
else if(strfind("baron",params,true) != -1) id = 464;
else if(strfind("raider",params,true) != -1) id = 465;
else if(strfind("glendale",params,true) != -1) id = 466;
else if(strfind("oceanic",params,true) != -1) id = 467;
else if(strfind("sanchez",params,true) != -1) id = 468;
else if(strfind("sparrow",params,true) != -1) id = 469;
else if(strfind("patriot",params,true) != -1) id = 470;
else if(strfind("quad",params,true) != -1) id = 471;
else if(strfind("coastguard",params,true) != -1) id = 472;
else if(strfind("dinghy",params,true) != -1) id = 473;
else if(strfind("hermes",params,true) != -1) id = 474;
else if(strfind("sabre",params,true) != -1) id = 475;
else if(strfind("rustler",params,true) != -1) id = 476;
else if(strfind("zr350",params,true) != -1) id = 477;
else if(strfind("walton",params,true) != -1) id = 478;
else if(strfind("regina",params,true) != -1) id = 479;
else if(strfind("comet",params,true) != -1) id = 480;
else if(strfind("bmx",params,true) != -1) id = 481;
else if(strfind("burriro",params,true) != -1) id = 482;
else if(strfind("camper",params,true) != -1) id = 483;
else if(strfind("marquis",params,true) != -1) id = 484;
else if(strfind("baggage",params,true) != -1) id = 485;
else if(strfind("dozer",params,true) != -1) id = 486;
else if(strfind("maverick",params,true) != -1) id = 487;
else if(strfind("vcnmaverick",params,true) != -1) id = 488;
else if(strfind("rancher",params,true) != -1) id = 489;
else if(strfind("fbirancher",params,true) != -1) id = 490;
else if(strfind("virgo",params,true) != -1) id = 491;
else if(strfind("greenwood",params,true) != -1) id = 492;
else if(strfind("jetmax",params,true) != -1) id = 493;
else if(strfind("hotring",params,true) != -1) id = 494;
else if(strfind("sandking",params,true) != -1) id = 495;
else if(strfind("blistac",params,true) != -1) id = 496;
else if(strfind("policemaverick",params,true) != -1) id = 497;
else if(strfind("boxville",params,true) != -1) id = 498;
else if(strfind("benson",params,true) != -1) id = 499;
else if(strfind("mesa",params,true) != -1) id = 500;
else if(strfind("goblin",params,true) != -1) id = 501;
else if(strfind("hotringA",params,true) != -1) id = 502;
else if(strfind("hotringB",params,true) != -1) id = 503;
else if(strfind("mesa",params,true) != -1) id = 504;
else if(strfind("bloodringbanger",params,true) != -1) id = 505;
else if(strfind("supergt",params,true) != -1) id = 506;
else if(strfind("elegant",params,true) != -1) id = 507;
else if(strfind("journey",params,true) != -1) id = 508;
else if(strfind("bike",params,true) != -1) id = 509;
else if(strfind("mountainbike",params,true) != -1) id = 510;
else if(strfind("beagle",params,true) != -1) id = 511;
else if(strfind("cropduster",params,true) != -1) id = 512;
else if(strfind("stuntplane",params,true) != -1) id = 513;
else if(strfind("petrol",params,true) != -1) id = 514;
else if(strfind("roadtrain",params,true) != -1) id = 515;
else if(strfind("nebula",params,true) != -1) id = 516;
else if(strfind("majestic",params,true) != -1) id = 517;
else if(strfind("buccaneer",params,true) != -1) id = 518;
else if(strfind("shamal",params,true) != -1) id = 519;
else if(strfind("hydra",params,true) != -1) id = 520;
else if(strfind("fcr900",params,true) != -1) id = 521;
else if(strfind("nrg500",params,true) != -1) id = 522;
else if(strfind("hpv1000",params,true) != -1) id = 523;
else if(strfind("cement",params,true) != -1) id = 524;
else if(strfind("towtruck",params,true) != -1) id = 525;
else if(strfind("fortune",params,true) != -1) id = 526;
else if(strfind("cadrona",params,true) != -1) id = 527;
else if(strfind("fbitruck",params,true) != -1) id = 528;
else if(strfind("williard",params,true) != -1) id = 529;
else if(strfind("forklelseift",params,true) != -1) id = 530;
else if(strfind("tractor",params,true) != -1) id = 531;
else if(strfind("combine",params,true) != -1) id = 532;
else if(strfind("feltzer",params,true) != -1) id = 533;
else if(strfind("remington",params,true) != -1) id = 534;
else if(strfind("slamvan",params,true) != -1) id = 535;
else if(strfind("blade",params,true) != -1) id = 536;
else if(strfind("freight",params,true) != -1) id = 537;
else if(strfind("streak",params,true) != -1) id = 538;
else if(strfind("vortex",params,true) != -1) id = 539;
else if(strfind("vincent",params,true) != -1) id = 540;
else if(strfind("bullet",params,true) != -1) id = 541;
else if(strfind("clover",params,true) != -1) id = 542;
else if(strfind("sadler",params,true) != -1) id = 543;
else if(strfind("firetruckLS",params,true) != -1) id = 544;
else if(strfind("hustler",params,true) != -1) id = 545;
else if(strfind("intruder",params,true) != -1) id = 546;
else if(strfind("primo",params,true) != -1) id = 547;
else if(strfind("cargobob",params,true) != -1) id = 548;
else if(strfind("tampa",params,true) != -1) id = 549;
else if(strfind("sunrise",params,true) != -1) id = 550;
else if(strfind("merit",params,true) != -1) id = 551;
else if(strfind("utilityvan",params,true) != -1) id = 552;
else if(strfind("nevada",params,true) != -1) id = 553;
else if(strfind("yosemite",params,true) != -1) id = 554;
else if(strfind("windsor",params,true) != -1) id = 555;
else if(strfind("monsterA",params,true) != -1) id = 556;
else if(strfind("monsterB",params,true) != -1) id = 557;
else if(strfind("uranus",params,true) != -1) id = 558;
else if(strfind("jester",params,true) != -1) id = 559;
else if(strfind("sultan",params,true) != -1) id = 560;
else if(strfind("stratum",params,true) != -1) id = 561;
else if(strfind("elegy",params,true) != -1) id = 562;
else if(strfind("raindance",params,true) != -1) id = 563;
else if(strfind("tiger",params,true) != -1) id = 564;
else if(strfind("flash",params,true) != -1) id = 565;
else if(strfind("tahoma",params,true) != -1) id = 566;
else if(strfind("savanna",params,true) != -1) id = 567;
else if(strfind("bandito",params,true) != -1) id = 568;
else if(strfind("freightflat",params,true) != -1) id = 569;
else if(strfind("streak2",params,true) != -1) id = 570;
else if(strfind("kart",params,true) != -1) id = 571;
else if(strfind("mower",params,true) != -1) id = 572;
else if(strfind("duneride",params,true) != -1) id = 573;
else if(strfind("sweeper",params,true) != -1) id = 574;
else if(strfind("broadway",params,true) != -1) id = 575;
else if(strfind("tornado",params,true) != -1) id = 576;
else if(strfind("at400",params,true) != -1) id = 577;
else if(strfind("dft30",params,true) != -1) id = 578;
else if(strfind("huntley",params,true) != -1) id = 579;
else if(strfind("stafford",params,true) != -1) id = 580;
else if(strfind("bf400",params,true) != -1) id = 581;
else if(strfind("newsvan",params,true) != -1) id = 582;
else if(strfind("tug",params,true) != -1) id = 583;
else if(strfind("petroltanker",params,true) != -1) id = 584;
else if(strfind("emperor",params,true) != -1) id = 585;
else if(strfind("wayfarer",params,true) != -1) id = 586;
else if(strfind("euros",params,true) != -1) id = 587;
else if(strfind("hotdog",params,true) != -1) id = 588;
else if(strfind("club",params,true) != -1) id = 589;
else if(strfind("freightbox",params,true) != -1) id = 590;
else if(strfind("artictrailer3",params,true) != -1) id = 591;
else if(strfind("andromada",params,true) != -1) id = 592;
else if(strfind("dodo",params,true) != -1) id = 593;
else if(strfind("rccam",params,true) != -1) id = 594;
else if(strfind("launch",params,true) != -1) id = 595;
else if(strfind("copcarls",params,true) != -1) id = 596;
else if(strfind("copcarsf",params,true) != -1) id = 597;
else if(strfind("copcarlv",params,true) != -1) id = 598;
else if(strfind("ranger",params,true) != -1) id = 599;
else if(strfind("picador",params,true) != -1) id = 600;
else if(strfind("swattank",params,true) != -1) id = 601;
else if(strfind("alpha",params,true) != -1) id = 602;
else if(strfind("poenix",params,true) != -1) id = 603;
else if(strfind("bagboxa",params,true) != -1) id = 606;
else if(strfind("bagboxb",params,true) != -1) id = 607;
else if(strfind("stairs",params,true) != -1) id = 608;
else if(strfind("boxville2",params,true) != -1) id = 609;
else if(strfind("farmtrailer",params,true) != -1) id = 610;
else if(strfind("utilityvantrailer",params,true) != -1) id = 611;
else
{
SendClientMessage(playerid,0x33AA33AA,"Invalid Vehicle Name");
}
return id;
}
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}