[Pedido] Lista de Carros e Objetos para mSelection
#1

Oi, estou criando uns sistemas aqui de mSelection e eu preciso do id dos carros e dos objetos em um .txt para poder terminar, eu ja consegui o das skins aqui: http://gta-sa-mp.de/stuff/mSelection/skins.txt

imagino que alguem ai tenha essa lista de carros ou objetos, se alguem tiver
por favor me passe


Obrigado.
Reply
#2

Nгo tem segredo . Os carros dгo inicio do
400
~(ATИ)~
600
Reply
#3

Quote:
Originally Posted by Alwe
View Post
Nгo tem segredo . Os carros dгo inicio do
400
~(ATИ)~
600
tem certeza?

https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
Reply
#4

Quote:
Originally Posted by PT
View Post
Da um desconto Portuga foi por 11 :P Mais do mesmo jeito nгo serб tгo ъtil para ele, pois creio que ele quer apenas os ID dos carros, motos..
Reply
#5

Simples, pera um array que tenha os ID's e grava em um arquivo .txt vocк pode fazer isso com o prуprio pawn...
Reply
#6

pawn Code:
//All Vehicles names
new VehicleNames[][] =
{
    "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
    "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
    "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
    "Esperanto", "Taxi", "Washington", "Bobcat", "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", "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", "Cropduster", "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", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
    "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
    "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
    "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
    "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
    "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Car",
    "SFPD Car", "LVPD Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
    "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
    "Tiller", "Utility Trailer"
};

//All vehicle Types
forward VehType(playerid);
public VehType(playerid)
{
    new type, vehid = GetVehicleModel(GetPlayerVehicleID(playerid));
    switch(vehid)
    {
        case 509, 481, 510:
                type = 1; // bikes - 2wheels
        case 462, 448, 581, 522, 461, 521, 463, 486, 468, 471:
                type = 2; //motorbikes - 2wheels
        case 460, 476, 511, 512, 513, 519, 520, 553, 577, 592, 593:
                type = 3; //airplanes - 0wheels
        case 548, 425, 417, 487, 488, 497, 563, 447, 469:
                type = 4; //helicopters - 0wheels
        case 480, 533, 439, 555:
            type = 5; //convertible - 4wheels
        case 499, 422, 482, 498, 609, 524, 578, 455, 403, 414, 582, 443, 514, 600, 413, 515, 440, 543, 605, 531, 408, 552, 47, 456, 554, 406, 525, 530, 532:
            type = 6; //industrial - 4wheels+
        case 536, 575, 534, 567, 535, 566, 576, 412:
            type = 7; //lowrider - 4wheels
        case 568, 424, 573, 579, 400, 500, 444, 556, 557, 470, 489, 505, 495:
            type = 8; //off-road - 4wheels
        case 416, 433, 431, 438, 437, 523, 427, 490, 528, 407, 544, 596, 598, 597, 599, 432, 601, 420, 428, 574:
            type = 9; //public services - 4wheels+
        case  445, 504, 401, 518, 527, 542, 507, 562, 585, 419, 526, 604, 466, 492, 474, 546, 517, 410, 551, 516, 467, 426, 436, 547, 405, 580, 560, 550, 549, 540, 491, 529, 421, 434, 545:
            type = 10; //sedan - 4wheels
        case 602, 429, 496, 402, 541, 415, 589, 587, 565, 494, 502, 503, 559, 603, 475, 506, 451, 558, 477, 571:
            type = 11; //sports car - 4wheels
        case 418, 404, 479, 458, 561, 411:
            type = 12; //station wagons - 4wheels
        case 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 539:
            type = 13; //boats - 0wheels
        case 435, 450, 569, 570, 584, 590, 591, 606, 607, 608, 610, 611:
            type = 14; //trailers - 2wheels+
        case 409, 442, 423, 457, 485, 483, 508, 572, 583, 588:
            type = 15; //Others - 4wheels
        case 441, 464, 465, 501, 564, 594:
            type = 16; //RC - 4wheels
        default: return 0;
    }
    return type;
}
algo que eu fiz a algum tempo, tens aн todos os veнculos divididos por tipo, deu um montгo de trabalho mas tens aн. E tambem o nome deles.
Reply
#7

coloca isto no OnGameModeInit

pawn Code:
for(new i = 400; i < 611; i++)
    printf("%i", i);
Dps liga o servidor e da uma olhada no Server_log vai tar la a lista, ve se serve assim pra vc.

- Kimossab

e para colocar os ids naquela include nao os nomes xD
Reply
#8

Quote:
Originally Posted by PT
View Post
coloca isto no OnGameModeInit

pawn Code:
for(new i = 400; i < 611; i++)
    printf("%i", i);
Dps liga o servidor e da uma olhada no Server_log vai tar la a lista, ve se serve assim pra vc.

- Kimossab

e para colocar os ids naquela include nao os nomes xD
Sendo uma funзгo "vehnames", й utilizado para pegar o nome do veнculo e jogar em uma mensagem, textdraw e etc. O ID do mesmo, fica logo embaixo. Portanto, nгo tem problemas em pegar os nomes, atй porque eles ficam em seus respectivos IDs.
Reply
#9

Quote:
Originally Posted by Coe1
View Post
Sendo uma funзгo "vehnames", й utilizado para pegar o nome do veнculo e jogar em uma mensagem, textdraw e etc. O ID do mesmo, fica logo embaixo. Portanto, nгo tem problemas em pegar os nomes, atй porque eles ficam em seus respectivos IDs.
Tu ao menos conhece a include que o cara ta falando?

Se nao conheзe nao fala ue, sabe usar-la? entao.
Reply
#10

Quote:
Originally Posted by PT
View Post
- Kimossab

e para colocar os ids naquela include nao os nomes xD
Nem reparei no que era, simplesmente me lembrei que tinha uma funзгo que devolvia o tipo de veiculo que era dependendo do id do veiculo e postei xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)