[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум pawno » Pawno » Стандартные функции » GetVehicleNames
GetVehicleNames
ЛолЛисДата: Вторник, 10.05.2016, 08:58 | Сообщение # 1
Полковник
Группа: Администратор
Сообщений: 282
Статус: Offline
Функция узнает имя машины

Пример использования:
Это команда выдаст сообщение в какой вы машине
Код
if(strcmp(cmd, "/carr", true) == 0)
{
    format(string, sizeof(string), "Ваша машина %s.", GetVehicleName(GetVehicleModel(GetPlayerVehicleID(playerid))));
    SendClientMessage(playerid, COLOR_RED, string);
    return 1;
}
  
В конец мода
Код
stock GetVehicleName(carid)
{
    new car[256];
    switch (carid)
    {
    case 400: car = "LandStalker"; case 401: car = "Bravura"; case 402: car = "Buffalo"; case 403: car = "Linerunner"; case 404: car = "Perenniel"; case 405: car = "Sentinel";
    case 406: car = "Dumper"; case 407: car = "Firetruck"; case 408: car = "Trashmaster"; case 409: car = "Stretch"; case 410: car = "Manana"; case 411: car = "Infernus";
    case 412: car = "Voodoo"; case 413: car = "Pony"; case 414: car = "Mule"; case 415: car = "Cheetah"; case 416: car = "Ambulance"; case 417: car = "Leviathan";
    case 418: car = "Moonbeam"; case 419: car = "Esperanto"; case 420: car = "Taxi"; case 421: car = "Washington"; case 422: car = "Bobcat"; case 423: car = "Mr Whoopee";
    case 424: car = "BF Injection"; case 425: car = "Hunter"; case 426: car = "Premier"; case 427: car = "Enforcer"; case 428: car = "Securicar"; case 429: car = "Banshee";
    case 430: car = "Predator"; case 431: car = "Bus"; case 432: car = "Rhino"; case 433: car = "Barracks"; case 434: car = "Hotknife"; case 435: car = "Article Trailer";
    case 436: car = "Previon"; case 437: car = "Coach"; case 438: car = "Cabbie"; case 439: car = "Stallion"; case 440: car = "Rumpo"; case 441: car = "RC Bandit";
    case 442: car = "Romero"; case 443: car = "Packer"; case 444: car = "Monster"; case 445: car = "Admiral"; case 446: car = "Squallo"; case 447: car = "Seasparrow";
    case 448: car = "Pizzaboy"; case 449: car = "Tram"; case 450: car = "Article Trailer 2"; case 451: car = "Turismo"; case 452: car = "Speeder"; case 453: car = "Reefer";
    case 454: car = "Tropic"; case 455: car = "Flatbed"; case 456: car = "Yankee"; case 457: car = "Caddy"; case 458: car = "Solairr"; case 459: car = "Berkley's RC Van";
    case 460: car = "Skimmer"; case 461: car = "PCJ-600"; case 462: car = "Faggio"; case 463: car = "Freeway"; case 464: car = "RC Baron"; case 465: car = "RC Raider";
    case 466: car = "Glendale"; case 467: car = "Oceanic"; case 468: car = "Sanchez"; case 469: car = "Sparrow"; case 470: car = "Patriot"; case 471: car = "Quad";
    case 472: car = "Coastguard"; case 473: car = "Dinghy"; case 474: car = "Hermes"; case 475: car = "Sabre"; case 476: car = "Rustler"; case 477: car = "ZR-350";
    case 478: car = "Walton"; case 479: car = "Regina"; case 480: car = "Comet"; case 481: car = "BMX"; case 482: car = "Burrito"; case 483: car = "Camper";
    case 484: car = "Marquis"; case 485: car = "Baggage"; case 486: car = "Dozer"; case 487: car = "Maverick"; case 488: car = "SAN News Maverick"; case 489: car = "Rancher";
    case 490: car = "FBI Rancher"; case 491: car = "Virgo"; case 492: car = "Greenwood"; case 493: car = "Jetmax"; case 494: car = "Hotring Racer"; case 495: car = "Sandking";
    case 496: car = "Blista Compact"; case 497: car = "Police Maverick"; case 498: car = "Boxville"; case 499: car = "Benson"; case 500: car = "Mesa"; case 501: car = "RC Goblin";
    case 502: car = "Hotring Racer"; case 503: car = "Hotring Racer"; case 504: car = "Bloodring Banger"; case 505: car = "Rancher"; case 506: car = "Super GT"; case 507: car = "Elegant";
    case 508: car = "Journey"; case 509: car = "Bike"; case 510: car = "Mountain Bike"; case 511: car = "Beagle"; case 512: car = "Cropduster"; case 513: car = "Stuntplane";
    case 514: car = "Tanker"; case 515: car = "Roadtrain"; case 516: car = "Nebula"; case 517: car = "Majestice"; case 518: car = "Buccaneer"; case 519: car = "Shamal";
    case 520: car = "Hydra"; case 521: car = "FCR-900"; case 522: car = "NRG-500"; case 523: car = "HPV1000"; case 524: car = "Cement Truck"; case 525: car = "Towtruck";
    case 526: car = "Fortune"; case 527: car = "Cadrona"; case 528: car = "FBI Truck"; case 529: car = "Willard"; case 530: car = "Forklift"; case 531: car = "Tractor";
    case 532: car = "Combine Harvester"; case 533: car = "Feltzer"; case 534: car = "Remington"; case 535: car = "Slamvan"; case 536: car = "Blade"; case 537: car = "Freight";
    case 538: car = "Brownstreak"; case 539: car = "Vortex"; case 540: car = "Vincent"; case 541: car = "Bullet"; case 542: car = "Clover"; case 543: car = "Sadler";
    case 544: car = "Firetruck LA"; case 545: car = "Hustler"; case 546: car = "Intruder"; case 547: car = "Primo"; case 548: car = "Cargobob"; case 549: car = "Tampa";
    case 550: car = "Sunrise"; case 551: car = "Merit"; case 552: car = "Utility Van"; case 553: car = "Nevada"; case 554: car = "Yosemite"; case 555: car = "Windsor";
    case 556: car = "Monster \"A\""; case 557: car = "Monster \"B\""; case 558: car = "Uranus"; case 559: car = "Jester"; case 560: car = "Sultan"; case 561: car = "Stratum";
    case 562: car = "Elegy"; case 563: car = "Raindance"; case 564: car = "RC Tiger"; case 565: car = "Flash"; case 566: car = "Tahoma"; case 567: car = "Savanna";
    case 568: car = "Bandito"; case 569: car = "Freight Flat Trailer"; case 570: car = "Streak Trailer"; case 571: car = "Kart"; case 572: car = "Mower"; case 573: car = "Dune";
    case 574: car = "Sweeper"; case 575: car = "Broadway"; case 576: car = "Tornado"; case 577: car = "AT400"; case 578: car = "DFT-30";
    case 579: car = "Huntley"; case 580: car = "Stafford"; case 581: car = "BF-400"; case 582: car = "Newsvan"; case 583: car = "Tug"; case 584: car = "Petrol Trailer";
    case 585: car = "Emperor"; case 586: car = "Wayfarer"; case 587: car = "Euros"; case 588: car = "Hotdog"; case 589: car = "Club"; case 590: car = "Freight Box Trailer";
    case 591: car = "Article Trailer 3"; case 592: car = "Andromada"; case 593: car = "Dodo"; case 594: car = "RC Cam"; case 595: car = "Launch"; case 596: car = "Police Car (LSPD)";
    case 597: car = "Police Car (SFPD)"; case 598: car = "Police Car (LVPD)"; case 599: car = "Police Ranger"; case 600: car = "Picador"; case 601: car = "S.W.A.T."; case 602: car = "Alpha";
    case 603: car = "Phoenix"; case 604: car = "Glendale Shit"; case 605: car = "Sadler Shit"; case 606: car = "Baggage Trailer A"; case 607: car = "Baggage Trailer B"; case 608: car = "Tug Stairs Trailer";
    case 609: car = "Boxville"; case 610: car = "Farm Trailer"; case 611: car = "Utility Trailer"; default: car = "Unknown";
    }
    return car;
}


IP: 83.222.105.54:8358
© [CRMP] Россия - Дрифт
Форум pawno » Pawno » Стандартные функции » GetVehicleNames
  • Страница 1 из 1
  • 1
Поиск: