SA-MP Forums Archive
[FilterScript] [FS]Vehicle Names v1.1.1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Vehicle Names v1.1.1 (/showthread.php?tid=133452)



[FS]Vehicle Names v1.1.1 - biltong - 12.03.2010

VEHICLE NAMES
by biltong
v1.1.1

Since 0.3 Vehicle names no longer appear when you get into one. This is a simple filterscript that replaces that system, and works in 0.3.

This is my first filterscript so please report any bugs and suggestions here.

Changelog:
1.0:1.11.1.1 KNOWN BUGS: DOWNLOAD:
1.1.1:

Pastebin

If all else fails see attachments.

INSTALLATION:
The .rar: Open the file with Winrar and extract the files in there to your server's filterscripts folder. Then open your server.cfg file and add "vehiclenames" to the filterscripts line. Start up your server and look at the pretty text :3
Via Pastebin: Follow the link and scroll down to the bottom. Copy all text in the box there. Now open Pawno, paste the text into Pawno and compile it as "vehiclenames". Now open your server.cfg and add "vehiclenames"(or, if you changed the name of the file, replace "vehiclenames" with whatever you saved the file as) to the filterscripts line, start your server and enjoy

SCREENIES:




What's next?
Nothing as of yet. Suggestions please!


Re: [FS]Vehicle Names - JPs_ - 12.03.2010

nice


Re: [FS]Vehicle Names - Joe Staff - 12.03.2010

You should use
pawn Code:
if((newstate==PLAYER_STATE_DRIVER)||(newstate==PLAYER_STATE_PASSENGER))
  {
    GameTextForPlayer(playerid,VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400],6000,1);
    return 1;
  }
instead of
pawn Code:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  {
    new vehicleid = GetPlayerVehicleID(playerid);
    new model = (GetVehicleModel(vehicleid))-400;
    new string[32];
    format(string,sizeof(string),"%s",VehicleNames[model]);
    GameTextForPlayer(playerid,string,6000,1);
    return 1;
  }
So it runs faster and more efficiently.


Re: [FS]Vehicle Names - biltong - 12.03.2010

Quote:
Originally Posted by Joe Staff
You should use
pawn Code:
if((newstate==PLAYER_STATE_DRIVER)||(newstate==PLAYER_STATE_PASSENGER))
  {
    GameTextForPlayer(playerid,VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400],6000,1);
    return 1;
  }
instead of
pawn Code:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  {
    new vehicleid = GetPlayerVehicleID(playerid);
    new model = (GetVehicleModel(vehicleid))-400;
    new string[32];
    format(string,sizeof(string),"%s",VehicleNames[model]);
    GameTextForPlayer(playerid,string,6000,1);
    return 1;
  }
So it runs faster and more efficiently.
Thanks! I'll fix that, and I just thought of a few things to add too. Though, I question the amount of CPU this will take. It's a very small piece of code.

Gonna wait a bit then release new version. Hopefully I'll get the changing vehicles bug sorted by then.


Re: [FS]Vehicle Names - Lejo - 12.03.2010

Simple but nice.


Re: [FS]Vehicle Names v1.1 RELEASED - biltong - 14.03.2010

Version 1.1 released!

You can now change the color of the text by opening the script and changing the number after
pawn Code:
#define GAMETEXT_COLOR
0(default) = yellow
1 = blue
2 = green
3 = red
4 = purple
5 = white
6 = black

I also fixed the changing vehicles bug. Please keep the feedback coming guys
Enjoy


Re: [FS]Vehicle Names v1.1 RELEASED - XRVX - 14.03.2010

looks good
nice work



Re: [FS]Vehicle Names v1.1 RELEASED - Las Venturas CNR - 16.03.2010

Sweet! Can you make one of these for areas? So it says the area names?


Re: [FS]Vehicle Names v1.1 RELEASED - Rzzr - 16.03.2010

Quote:
Originally Posted by World War III
Sweet! Can you make one of these for areas? So it says the area names?
Use search, it already exists...
http://forum.sa-mp.com/index.php?topic=44902.0


Re: [FS]Vehicle Names v1.1 RELEASED - biltong - 16.03.2010

Quote:
Originally Posted by LowCo.
Actually, that is an include that only gets the name of the zone that the player is in, it doesn't display the zone. It could be used to make such a FS though. I'll look into it during my school holidays, which are 2 weeks away.

EDIT: Here is a script that shows the zone name
http://forum.sa-mp.com/index.php?topic=5311.0


Re: [FS]Vehicle Names v1.1 RELEASED - ALASAD - 16.03.2010

Nice job.


Re: [FS]Vehicle Names v1.1 RELEASED - Las Venturas CNR - 16.03.2010

Quote:
Originally Posted by biltong
Quote:
Originally Posted by LowCo.
Actually, that is an include that only gets the name of the zone that the player is in, it doesn't display the zone. It could be used to make such a FS though. I'll look into it during my school holidays, which are 2 weeks away.

EDIT: Here is a script that shows the zone name
http://forum.sa-mp.com/index.php?topic=5311.0
Thanks a lot man!


Re: [FS]Vehicle Names v1.1 RELEASED - biltong - 17.03.2010

Glad you guys like

Have you found any bugs yet?


Re: [FS]Vehicle Names v1.1 RELEASED - ALASAD - 17.03.2010

Nope. It's perfect


Re: [FS]Vehicle Names v1.1.1 - biltong - 26.03.2010

Version 1.1.1 released.

Made a few changes to code, now smaller but hopefully more optimized.

Enjoy!


Re: [FS]Vehicle Names v1.1.1 - johnathon956 - 19.05.2010

this isnt an fs on my game its part of my gm


Re: [FS]Vehicle Names v1.1.1 - ViruZZzZ_ChiLLL - 19.05.2010

Really nice release here I'm also thinking of using
this for teh server :P


Re: [FS]Vehicle Names v1.1.1 - [MWR]Blood - 19.05.2010

Good work mate, useful FS!
I will surely use it for my server :P


Re: [FS]Vehicle Names v1.1.1 - TheRob - 02.12.2010

Thanks for this. I'll use it.


Re: [FS]Vehicle Names v1.1.1 - jordy.kiesebrink - 08.02.2011

Great job.
this is the perfect script i was looking for but one little question:
does the name stay appeared when in in a vehicle
i need that but the most of the scripts i downloaded just appeared for about 10 seconds

sorry for my bad englisch

Greatzz [JJ]Jordy