SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/02/2011, 09:40 PM   #1
Master_Gangster
Huge Clucker
 
Master_Gangster's Avatar
 
Join Date: Jan 2009
Posts: 269
Reputation: 0
Lightbulb Advanced Real Car Names

okay guys so this is my first FS ever, yes I know it's been like forever since I released something, but I've been in trips back and forth and during that losing some pawn knowledge.

this is a simple FS that when you enter a vehicle it shows you the REAL car names instead of the plain old normal ones, you know for some more RP action. I think it also shows it in the color RED and other available colors as defined.

don't go so harsh on me this is very simple and I got the idea from a guy a while ago(don't know his name, sorry).

Code:
#include <a_samp>
#include <a_players>

#define COLOR 3

new VehicleModel[MAX_PLAYERS];
new ChangeTimer;

new RealCarNames[][] =
{
  "Jeep Wagoneer","Mercury Cougar","Camaro with Scoop","Big Rig","Jeep Grand Wagoneer",
  "BMW 7-Series","Dumptruck","SA Firetruck","Peterbuilt","Lincoln Towncar","Dodge Aries",
  "Acura NSX '05","Chevy Biscayne","Ford Aerostar","Ford Box Van","Ferrari Testarosso",
  "Ford Econoline","Emergency Helicopter","Chevrolet Astrovan","Cadillac Eldorado",
  "Chevy Caprice","Lincoln Mark 7","Chevrolet S10","Chevy Ice Cream Truck",
  "Volkswagen Beach Buggy","AH-64A","Chevrolet Caprice", "International SWAT Van",
  "Securita Van","Dodge Viper","Preditor","Volvo Bus","M1A1 Abrams","Barracks",
  "Ford Hot Rod","Trailer","Nissan Pulsar","Old Coach","Caprice Classic Cab",
  "Ford Mustang Mach 1","Mercedes Van","RC Bandit","Cadillac Hearse","Packer/Stunt Helper",
  "Chevy S-10 Monster Truck","Mercedes-Benz S-Class","Chris Craft Stinger","Bell 47G",
  "Piaggio Vespa PX 200","Tram","Trailer","Ferrari F40", "Go-Fast Boat","Orca",
  "Sea Ray 270 Sedan Bridge","Flatbed","1992 Ford F800","Golf Car","Ford Taurus Wagon",
  "Honda Life '74","Cessna 150 With Floats","Honda CBR 600 '92", "Piaggio Vespa PX 200 '86",
  "Harley Davidson Soft Tail", "RC Red Baron", "RC Raider","Dodge Dart","Plymouth Belverdere",
  "Yamaha DT 200 Dirt Bike","Bell 47G","Hummer H-1","Honda TRX250x '92","Coastguard Boat",
  "Rescue Boat","Mercury '51","Chevy Chevelle","Curtiss P-40D Warhawk","Mazda RX-7",
  "Chevy Farm Truck","Chevy Caprice Estate","Porsche 911","Schwinn BMX","Dodge Ramvan",
  "Volkswagen Bus","Endeavour 42","Equitech M40 '85","Bulldozer","Bell 206L-4",
  "Bell 206B-3","Ford Bronco","Chevrolet Suburban '92","Lincoln Mark 7",
  "Dodge Diplomat","CMN Interceptor DV-15","Ford Mustang LX","Ford Bronco",
  "Honda CRX","Bell 206L-4","Chevy Cargo Van","Ford Moving Van","Jeep Wrangler",
  "RC Heli","Ford Mustang LX '86","Ford Mustang LX '86","Customised Glendale",
  "Ford Bronco '80","Mitsubishi 3000 GT","Buick Roadmaster","GMC R.V.","Old Bike",
  "Schwinn Mesa Mountain Hardtail","C-2 Greyhound","Grumman G-164 AgCat",
  "Pitt's Special","Gas Tanker","International 9370 Truck","Lincoln Towncar",
  "Chevy Monte Carlo","Chevrolet Monte Carlo","Bombardier Learjet 55",
  "AV-8 Harrier Jump-Jet","Honda CBR 900 RR Fireblade","Honda NSR 500 '01",
  "Kawasaki KZ1000-P21","Chevrolet Cement Truck","Tow Truck '91","Ford Thunderbird",
  "Ford Escort","CSI/FBI Investigation Truck","Dodge Dynasty","Forklift '89","Old Tractor",
  "Combine Harvester","Mercedes-Benz SL-Class","Lincoln Mark 5","Chevy CST '68",
  "Chevrolet Caprice Droptop","1972 EMD SD40","Amtrak F40PH","Hovercraft","Mercedes Benz E120",
  "Ford GT-40","Dodge Challenger '70","Dodge 100 Series","SA Firetruck","Ford Hotrod",
  "Chevrolet Lumina","Oldsmobile Cutlass Ciera","Sikorsky CH-53","Dodge Roadrunner",
  "Late 80's Honda Sedan","Mercury Grand Marquis","Chevy 2500","Douglas C-47",
  "GMC Sierra","Jaguar XKE '66","Chevy S-10 Monster Truck","Chevy S-10 Monster Truck",
  "Eagle Talon","Toyota Supra","Impreza 2.5RS '95","Honda Accord Wagon","Nissan R34 Skyline",
  "Sikorsky UH-60 Black Hawk","RC Tiger","Honda Civic","Oldsmobile Cutlass","Chevy Impala",
  "Half Life 2 Sand Rail","EMD SD40", "Trailer","Go Kart","Ride-On Lawn Mower",
  "Mercedes-Benz AK 4x4 '91","Elgin Pelican","Caddilac '54","Chevy Bel Air '57",
  "Boeing 737","Flatbed","Range Rover","Rolls Royce","Honda VFR 400","Dodge Ramvan Newsvan",
  "Baggage Tow Tractor HTAG-30/40","Trailer","Infinity J30 '92","Honda Goldwing GL1500 '04",
  "Nissan 350Z/240SX","Hotdog Van","Volkswagen Golf","Trailer","Trailer","Lockheed C-5 Galaxy",
  "Cessna 150", "Unknown","CMN Interceptor DV-15","Chevy Caprice LA", "Chevy Caprice SF",
  "Chevy Caprice LV","Chevy Blazer Desert","Chevrolet El Camino '68","S.W.A.T. Van",
  "Dodge Stealth '91","Pontiac Trans AM", "Dodge Dart", "Dodge 100 Series", "Luggage Trailer",
  "Luggage Trailer", "Stair Trailer", "Chevy Cargo Van","Farm Plow", "Chevy 2500 Trailer"
};

forward ChangeCheck(playerid);
forward ShowGameText(playerid);

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" 		Real Car Names Loaded...       ");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if((newstate==PLAYER_STATE_DRIVER)||(newstate==PLAYER_STATE_PASSENGER))
  	{
    GameTextForPlayer(playerid,RealCarNames[GetPlayerVehicleModel(GetPlayerVehicleID(playerid))-400],6000,1);
    return 1;
  	}
 	if(newstate != PLAYER_STATE_DRIVER && (oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)) KillTimer(ChangeTimer);
	return 1;
}

public ChangeCheck(playerid)
{
        if(GetPlayerVehicleModel(GetPlayerVehicleID(playerid)) != VehicleModel[playerid])
        {
        VehicleModel[playerid] = GetPlayerVehicleModel(GetPlayerVehicleID(playerid));
        ShowGameText(playerid);
        }
        return 1;
}

public ShowGameText(playerid)
{
        new string[32];
        switch(COLOR)
    	{
     		case 0: format(string,sizeof(string),"%s",RealCarNames[VehicleModel[playerid]-400]); // the color yellow
            case 1: format(string,sizeof(string),"~b~%s",RealCarNames[VehicleModel[playerid]-400]); // the color blue
            case 2: format(string,sizeof(string),"~g~%s",RealCarNames[VehicleModel[playerid]-400]); // the color green
            case 3: format(string,sizeof(string),"~r~%s",RealCarNames[VehicleModel[playerid]-400]); // the color red
            case 4: format(string,sizeof(string),"~p~%s",RealCarNames[VehicleModel[playerid]-400]); // the color purple
            case 5: format(string,sizeof(string),"~w~%s",RealCarNames[VehicleModel[playerid]-400]); // the color white
            case 6: format(string,sizeof(string),"%~|~s",RealCarNames[VehicleModel[playerid]-400]); // the color black
        }
        GameTextForPlayer(playerid,string,2000,1);
        ChangeTimer = SetTimerEx("ChangeCheck",1000,true,"i",playerid);
        return 1;
}

stock GetPlayerVehicleModel(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new model = GetVehicleModel(vehicleid);
    return model;
}
my version of using GetPlayerVehicleModel is faster for me, idk and idc if it's fast for you but I like to use it.
Master_Gangster is offline   Reply With Quote
Old 20/02/2011, 09:43 PM   #2
damiantof7
Big Clucker
 
damiantof7's Avatar
 
Join Date: Apr 2010
Location: Oldenzaal, Netherlands
Posts: 66
Reputation: 0
Default Re: Advanced Real Car Names

hmmm this can be used too in speedometers
maybe i am gonna to use it

Good work
__________________
damiantof7 is offline   Reply With Quote
Old 20/02/2011, 09:44 PM   #3
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 579
Reputation: 69
Default Re: Advanced Real Car Names

I like the idea
Chaprnks is offline   Reply With Quote
Old 20/02/2011, 09:44 PM   #4
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,410
Reputation: 203
Default Re: Advanced Real Car Names

Nice, good dedication.
You could maybe in the future do a pack of mods for each car, like the Gamer X img file.
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Old 20/02/2011, 09:46 PM   #5
Master_Gangster
Huge Clucker
 
Master_Gangster's Avatar
 
Join Date: Jan 2009
Posts: 269
Reputation: 0
Default Re: Advanced Real Car Names

Quote:
Originally Posted by damiantof7 View Post
hmmm this can be used too in speedometers
maybe i am gonna to use it

Good work
Quote:
Originally Posted by Chaprnks View Post
I like the idea
Quote:
Originally Posted by CyNiC View Post
Nice, good dedication.
You could maybe in the future do a pack of mods for each car, like the Gamer X img file.
thanks guys (:
Master_Gangster is offline   Reply With Quote
Old 20/02/2011, 10:01 PM   #6
Baddark2131
Banned
 
Join Date: Apr 2010
Posts: 404
Reputation: 0
Default Re: Advanced Real Car Names

Good Job Man !
Baddark2131 is offline   Reply With Quote
Old 20/02/2011, 10:08 PM   #7
[WTF]Godfather
Big Clucker
 
[WTF]Godfather's Avatar
 
Join Date: Dec 2010
Location: Morocco
Posts: 67
Reputation: 0
Default Re : Advanced Real Car Names

Good job!!
__________________
Scripting Knowledge: Advanced Beginner
Mapper : Pro Mapper
Admin Skill: 10/10
[B][CENTER]
Most Wanted Gamemode Realease
40%

[WTF]Godfather is offline   Reply With Quote
Old 21/02/2011, 03:36 PM   #8
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,391
Reputation: 127
Default Re: Advanced Real Car Names

Nice script, I was looking for this list since a long time!
Sasino97 is offline   Reply With Quote
Old 13/07/2011, 11:55 AM   #9
Jantjuh
Gangsta
 
Jantjuh's Avatar
 
Join Date: Jul 2010
Location: Bailando
Posts: 579
Reputation: 742
Default Re: Advanced Real Car Names

Cool, I was looking for this! ty!
__________________
Hello.
Jantjuh is offline   Reply With Quote
Old 29/04/2014, 11:57 AM   #10
RoW001
Little Clucker
 
Join Date: Jul 2012
Posts: 42
Reputation: 4
Default Re: Advanced Real Car Names

wow verry advanced ...
RoW001 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
[Include] ALL model names (and bone names) Slice Includes 14 26/11/2010 08:48 PM
[FilterScript] [FS] Real car names by [SP]Charlie_UK [MXS]CharlieXD Filterscripts 7 27/10/2010 11:26 PM
[FilterScript] [FS] Homer's REAL Clock - NEW VERSION!!! - Real Time + Date! Homerman Filterscripts 36 28/02/2010 02:32 AM
[HELP]Real Time and Real Weather djejsy Help Archive 0 21/12/2009 03:51 PM
[FilterScript] [FS] Real Vehicle Names pspleo Filterscripts 45 17/02/2009 12:52 AM


All times are GMT. The time now is 02:47 AM.


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