Vehicle ID array
#1

I want something like this but vehicle id,not vehicle names.

PHP код:
new VehicleNames[212][] = {
    
"Landstalker","Bravura","Buffalo","Linerunner","Pereniel","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","Previon","Coach","Cabbie",
    
"Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","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","ZR3 50","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","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","Trailer",
    
"Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer A","Emperor",
    
"Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C","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" 
Reply
#2

Do an array starting at id 400 ...
https://sampforum.blast.hk/showthread.php?tid=373715
Reply
#3

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Do an array starting at id 400 ...
https://sampforum.blast.hk/showthread.php?tid=373715
You already have all your data just add 400 to any index of that array to get the model id.
Reply
#4

what? I dont understand sorry.
I want to block specific vehicles for a command,that's why I want to make an array for it
Reply
#5

stupid?
Reply
#6

I'm seeking for help,you better not to reply.
and..

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
when you are inside vehicle and destroy it world objects what are downloaded from models folders disapper for a moment.
what may cause it?
Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
why Gamer_Z deleted his routeconnector thread?
Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
Added latest streamer include and plugin 2.9.2.
[sampgdk:warning] Index mismatch for OnIncomingConnection (-10009 != -10007)

and got this error, how can i fix this?
Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
gamer_z made gps plugin, where could i find it?
Never think you're a smartas or smth,this is a scripting help section,and you posted thread in this section too.
We(newbies) want to learn.

EDIT:I got a workaround,thanks for the reply.
Reply
#7

still you're stupid and don't try to smartass
PHP код:
CMD:veh(pid,p[]){
    new 
arrBlockedVehs[]={400,401},//add blocked vehicle ids
        
id;
    if(
sscanf(p,"d",id))return scm(pid,-1,"/veh [ID]");
    for(new 
i,i2=sizeof(arrBlockedVehs); i2i++)if(arrBlockedVehs[i]==id)return scm(pid,-1,"Not allowed to spawn this vehicle!");
    
    return 
1;

Reply
#8

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
still you're stupid and don't try to smartass
PHP код:
CMD:veh(pid,p[]){
    new 
arrBlockedVehs[]={400,401},//add blocked vehicle ids
        
id;
    if(
sscanf(p,"d",id))return scm(pid,-1,"/veh [ID]");
    for(new 
i,i2=sizeof(arrBlockedVehs); i2i++)if(arrBlockedVehs[i]==id)return scm(pid,-1,"Not allowed to spawn this vehicle!");
    
    return 
1;

You are the one shitposting random code everywhere thinking you are the smart one. There is No place for Dudes like you here. If you tell people who need help they are stupid, Then wtf are u doing here? Get lost.
Reply
#9

PHP код:
new vehiclesid[] = {
400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,
431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,450,451,452,453,454,455,456,457,458,459,460,461,
462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,
493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,
524,525,526,527,528,529,530,531,532,533,534,535,536,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,
555,556,557,558,559,560,561,562,563,564,565,566,567,568,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,
586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611
}; 
Reply
#10

Quote:
Originally Posted by CrystalGamer
Посмотреть сообщение
PHP код:
new vehiclesid[] = {
400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,
431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,450,451,452,453,454,455,456,457,458,459,460,461,
462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,
493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,
524,525,526,527,528,529,530,531,532,533,534,535,536,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,
555,556,557,558,559,560,561,562,563,564,565,566,567,568,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,
586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611
}; 
PHP код:
new vehiclesid[212] = {400401, ...}; 

And yes Pottus, I agree but for some reasons he seems to wants an array with every valable model id.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)