SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/10/2009, 09:54 AM   #1
virspector
Big Clucker
 
Join Date: Aug 2009
Posts: 74
Reputation: 0
Default [FS] Vehicle Name


VEHICLE NAME

This Filterscript will make you able to see the vehicle name when you entered a vehicle on the bottom right of the screen, just like GTA Single Player.

Small Screenshot:


Large Screenshot:



For the PAWN Code, here it is:

pawn Code:
new aVehicleNames[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 OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicle;
    new vehicleid;
    new string[128];

    if(newstate == 5)
    {
    vehicleid = GetPlayerVehicleID(playerid);
    vehicle = GetVehicleModel(vehicleid) - 400;
    format(string, sizeof(string), "~w~ %s", aVehicleNames[vehicle]);
    GameTextForPlayer(playerid, string, 3000, 1);
    }
    return 1;
}

To install it, simply put the codes above into your gamemode! Hope this is usefull!
virspector is offline   Reply With Quote
Old 04/10/2009, 10:02 AM   #2
RaFsTar
Huge Clucker
 
Join Date: Jul 2009
Location: Madeira
Posts: 327
Reputation: 4
Default Re: [FS] Vehicle Name

Good work !
RaFsTar is offline   Reply With Quote
Old 04/10/2009, 10:07 AM   #3
virspector
Big Clucker
 
Join Date: Aug 2009
Posts: 74
Reputation: 0
Default Re: [FS] Vehicle Name

Quote:
Originally Posted by RaFsTar[PT
]
Good work !
Nice! You always made the first post in a topic
virspector is offline   Reply With Quote
Old 06/10/2009, 03:56 PM   #4
eXchainZ-FoReVeR
Huge Clucker
 
Join Date: Jan 2009
Posts: 294
Reputation: 0
Default Re: [FS] Vehicle Name

Thank you for posting this Filterscript, mate
eXchainZ-FoReVeR is offline   Reply With Quote
Old 10/10/2009, 12:42 AM   #5
MeHaBeL
Little Clucker
 
Join Date: Aug 2009
Posts: 35
Reputation: 0
Default Re: [FS] Vehicle Name

Its not working :\
__________________
Proud to be Israeli ♥
MeHaBeL is offline   Reply With Quote
Old 10/10/2009, 10:24 AM   #6
azrail41
Little Clucker
 
Join Date: Jul 2008
Posts: 9
Reputation: 0
Default Re: [FS] Vehicle Name

Quote:
Originally Posted by MeHaBeL
Its not working :\
Its working, put the #include <a_samp>
azrail41 is offline   Reply With Quote
Old 10/10/2009, 10:25 AM   #7
MenaceX^
High-roller
 
Join Date: Aug 2008
Posts: 3,262
Reputation: 13
Default Re: [FS] Vehicle Name

You can't name it as a filterscript, you just copied the vehicle names from somewhere and made that when someone enters the vehicle the name will appear up.
MenaceX^ is offline   Reply With Quote
Old 28/10/2009, 07:58 PM   #8
eXchainZ-FoReVeR
Huge Clucker
 
Join Date: Jan 2009
Posts: 294
Reputation: 0
Default Re: [FS] Vehicle Name

Quote:
Originally Posted by MenaceX^
You can't name it as a filterscript, you just copied the vehicle names from somewhere and made that when someone enters the vehicle the name will appear up.
What can you see now? Its a filterscript, But you maybe right that it shouldn't be a fs
eXchainZ-FoReVeR is offline   Reply With Quote
Old 31/10/2009, 04:27 PM   #9
GaGlets(R)
Gangsta
 
GaGlets(R)'s Avatar
 
Join Date: Oct 2009
Posts: 791
Reputation: 3
Default Re: [FS] Vehicle Name

Wont work.....

Puted it into my fs/ gammode. but nothing.. enter vehicle and nothing shows..

HAVE all INC...
GaGlets(R) is offline   Reply With Quote
Old 27/12/2009, 02:23 PM   #10
steve6972
Little Clucker
 
Join Date: Dec 2009
Posts: 1
Reputation: 0
Default Re: [FS] Vehicle Name

i try olso, but no working.
i try into de gamemode, and i try it as a filterscript.

maby its not for 0.3 versie?, but for only 0.22.

steve6972 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] tAxI's Vehicle Streamer [v0.2] - add unlimited vehicle spawns and models!!! cptnsausage Filterscripts 205 31/07/2010 06:29 AM
How to convert the vehicle lists to Create vehicle for each line Gabe713 Help Archive 1 05/10/2009 05:12 PM
[FilterScript] [FS] Backwards's Vehicle System - Speedometer and Vehicle Health- Backwardsman97 Filterscripts 34 07/08/2009 01:37 PM
[FilterScript] [FS] Backwards's Vehicle System - Speedometer and Vehicle Health- Backwardsman97 Filterscripts 7 06/08/2009 10:52 AM


All times are GMT. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.