OtaconEvil

[FS] Names vehicles (sports) SetObjectMaterialText By OTACON

Mar 10th, 2014
914
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *                Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *                  Publicación de este FILTERSCRIPT sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                        FULLY spaces Theft Credit or
  33.     *                 Publication of this FILTERSCRIPT without my permission.
  34. */
  35. native IsValidVehicle(vehicleid);
  36. #include <a_samp>
  37.  
  38. //INFO:
  39.    //--> https://dl.dropboxusercontent.com/s/upm3ixowkpaeo85/sa-mp-000.png
  40.    //--> www.youtube.com/watch?v=UrM9Yd8ppdE
  41.  
  42. new NameVehicles[][]={
  43. "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster",
  44. "Stretch","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto",
  45. "Taxi","Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee",
  46. "Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo",
  47. "RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer",
  48. "Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer",
  49. "PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale","Oceanic","Sanchez","Sparrow","Patriot",
  50. "Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina","Comet","BMX",
  51. "Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo",
  52. "Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa",
  53. "RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT","Elegant",
  54. "Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic",
  55. "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
  56. "FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight",
  57. "Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob",
  58. "Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus",
  59. "Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight",
  60. "Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford",
  61. "BF-400","Newsvan","Tug","Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
  62. "Andromada","Dodo","RC Cam","Launch","Police Car (LSPD)","Police Car (SFPD)","Police Car (LVPD)","Police Ranger",
  63. "Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
  64. "Stair Trailer","Boxville","Farm Plow","Utility Trailer" },
  65. NameObject[MAX_VEHICLES][2];
  66.  
  67. public OnFilterScriptInit(){
  68.     new data[24];
  69.     for(new vehicleid; vehicleid < MAX_VEHICLES; vehicleid++){
  70.         if(IsValidVehicle(vehicleid)){
  71.             switch(GetVehicleModel(vehicleid)){//Sport Vehicles
  72.                 case 602,429,496,402,541,415,589,587,565,494,502,503,411,559,603,475,506,451,558,477:{
  73.                     DestroyObject(NameObject[vehicleid][0]);
  74.                     DestroyObject(NameObject[vehicleid][1]);
  75.                     NameObject[vehicleid][0]=CreateObject(2667,0,0,0,0,0,0);
  76.                     NameObject[vehicleid][1]=CreateObject(2667,0,0,0,0,0,0);
  77.                     format(data,sizeof(data),"%s",NameVehicles[GetVehicleModel(vehicleid)-400]);
  78.                     SetObjectMaterialText(NameObject[vehicleid][0], data, 0, 60, "Arial", 24, 1, 0xFFFFFFFF, 0, 1);
  79.                     AttachObjectToVehicle(NameObject[vehicleid][0], vehicleid, 1.1, 0.0, 0.0, 0.0, 0.0, 90.0);
  80.                     SetObjectMaterialText(NameObject[vehicleid][1], data, 0, 60, "Arial", 24, 1, 0xFFFFFFFF, 0, 1);
  81.                     AttachObjectToVehicle(NameObject[vehicleid][1], vehicleid, -1.1, 0.0, 0.0, 0.0, 0.0, -90.0);
  82.                 }
  83.             }
  84.         }
  85.     }
  86.     return true;
  87. }
RAW Paste Data