SA-MP Forums Archive
[FilterScript] [FS] Real Vehicle Names - 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] Real Vehicle Names (/showthread.php?tid=18279)

Pages: 1 2 3


[FS] Real Vehicle Names - pspleo - 29.11.2007

Real vehicle names version 2
Updates:
Now added commands, "/realname", and "/gamename".

Pastebin:


PS. Finnaly i learned some scripting

==========================================

Real Vehicle Names Version 2.5
Updates:
Added commands "/nameoff", "/nameon" and "/namehelp".


Pastebin:
Version 2.5

==========================================

Real Vehicle Names Version 2.6
Updates:
Changed indent, added some functions and made it .inc

Scripting:
ShowCredits(bool:toggle); - toggle credits on / off
ToggleVehicleNames(playerid, bool:toggle); - set player vehicle names on/off
SetPlayerVehicleNamesType(playerid, type); - set the type. see further down
SetPlayerTextDisplay(playerid, onenter); - set the entering type. see further down
ToggleVehicleNamesForAll(bool:toggle); - set vehicle names for everyone

VEHNAMES_OFF - vehicle names off
VEHNAMES_REAL - vehicle names - real
VEHNAMES_GAME - vehicle names - game (original)

VEHNAMES_STATECHANGE - vehicle names on OnPlayerStateChange
VEHNAMES_ENTERVEHICLE - vehicle names on OnPlayerEnterVehicle

Info:
Report bugs here and sorry for the noob questions at the topic\'s beginning


Download:
Version 2.6


Re: [FS] ‡‡Real Vehicle Names‡‡ - Antironix - 29.11.2007

Code:
It seems that you are not allowed to download or view attachments on this board.
Please login below or register an account with IA015\'s Forum.
upload it somewhere else please .


Re: [FS] ‡‡Real Vehicle Names‡‡ - pspleo - 29.11.2007

UPDATED


Re: [FS] ‡‡Real Vehicle Names‡‡ - Antironix - 29.11.2007

really nice I am going to use this for sure!


Re: [FS] ‡‡Real Vehicle Names‡‡ - IA015 - 29.11.2007

niice done!!


Re: [FS] ‡‡Real Vehicle Names‡‡ - kaisersouse - 29.11.2007

You know what would be cool is if you put BOTH the real names and SA names in the FS and let players choose what the want to see via command.

/realname
/gamename

or something.

Just a thought


Re: [FS] ‡‡Real Vehicle Names‡‡ - pspleo - 29.11.2007

Hmh i dont know howtodo that.. but im learning all the time:

Quote:

Well i have a problem here.. the PutPlayerInVehicle doesnt work for some reason..
I tried to do a command to spawn a nrg next to you..
Heres the code:
Code:
	
//------------------- /nrg

	if (strcmp (cmd, "/nrg", true) == 0) {
	  SendClientMessage(playerid, COLOR_RED, "Success!");
    CreateVehicle(522,1.0,-0.1,1.0,180,10,11,50000);
		PutPlayerInVehicle(playerid,522,0);

		return 1;
 	}


Any suggestions?
Remember that? i was a scripting beginner
Now ive done a own FS..
Which means that im learning all the time!


Re: [FS] ‡‡Real Vehicle Names‡‡ - Antironix - 29.11.2007

just make a variable

you have this now:
pawn Code:
if (newstate == 2 || newstate == 3)
  {
    format(str, sizeof(str), "~y~Vehicle ID: %d ~n~~r~Model ID: %d ~n~~g~%s", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)), vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
    GameTextForPlayer(playerid, str, 4000, 1);
  }
and have a look at this:
pawn Code:
if (newstate == 2 || newstate == 3)
  {
  if(oldnew == 0)
  {
    format(str, sizeof(str), "~y~Vehicle ID: %d ~n~~r~Model ID: %d ~n~~g~%s", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)), vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
    GameTextForPlayer(playerid, str, 4000, 1);
  }
  else
  {
  format(str, sizeof(str), "~y~Vehicle ID: %d ~n~~r~Model ID: %d ~n~~g~%s", GetPlayerVehicleID(playerid), GetVehicleModel(GetPlayerVehicleID(playerid)), OldvehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
    GameTextForPlayer(playerid, str, 4000, 1);
  }
  }
Look at the format line. --> OldvehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);

i just renamed it to old. You must now make a whole new list with the normal cars in it.

Good luck!

grtz Anti



Re: [FS] ‡‡Real Vehicle Names‡‡ - kaisersouse - 29.11.2007

Yes you\'ve grown up quite fast :P

Looking at the original list I have a few more tweaks:

*The military warplane isn\'t an F-16, its an AV-8 Harrier Jump-Jet
*The "NYC Cab" is technically called a Caprice Classic
*Late 80\'s Honda sedan is likely an Accord. If it shaped like a wedge its a Prelude
*Hovercraft has one "e"
*I didn\'t see what the Freeway is called...but it\'s a Harley Davidson soft tail
*I don\'t THINK Jeep Grand Cherokees were around back then. It would\'ve been a Jeep Wagoneer if not.
*The old cab I can research but its a 30\'s/40\'s Chevrolet I know that much


EDIT: and just use Beckzy\'s code (with credits!) for the SA car names


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - pspleo - 29.11.2007

@Antironix: Erhm.. so that means that i have todo a whole new list?

And whats the new code does? Something better?

@kaisersouse: Well, has somebody done the same type of FS as me?

Ill replace some names with youre new names.
@kaisersouse old post: /realname and /gamename sounds very interesting.. but i dont know how todo it.. i have to learn.. and maybe some day ill show my gamename/realname FS


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - kaisersouse - 29.11.2007

Quote:
Originally Posted by PaoloP
@Antironix: Erhm.. so that means that i have todo a whole new list?

And whats the new code does? Something better?

@kaisersouse: Well, has somebody done the same type of FS as me?

Ill replace some names with youre new names.
No no. BeckzyBoi made some code that would display the San Andreas names (Sultan, Freeway, etc) like it does in single player. What I\'m saying is if you use Anti\'s code along with Beckzy\'s list in his code...you\'ll have waht I mentioned before (ability to show either format of car name...real life or san andreas)


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - Antironix - 29.11.2007

the new code will just check if you want to use the new list ( put 0 then ) or the old list of cars.

And yes, you need to create 2 lists then. But if you copy beckzy\'s code, then it\'s done in notime.


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - pspleo - 29.11.2007

EDIT: Ive made it.. still got one error:
Code:
C:\Documents and Settings\PaoloP\Desktop\VehNames.pwn(453) : error 017: undefined symbol "oldnew"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
But im learning all the time


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - pspleo - 29.11.2007

Well i cant solve it... ill post on scripting board ok?


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - kaisersouse - 29.11.2007

(It\'s not "Jeep Grand Wagoneer" its just "Jeep Wagoneer")


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - weedarr - 29.11.2007

think you can upload to www.pastebin.ca ?

WeeDarr


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - kaisersouse - 29.11.2007

Quote:
Originally Posted by WeeDarr-ѕ
think you can upload to www.pastebin.ca ?

WeeDarr
Actually he can\'t...since its down


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - pspleo - 29.11.2007

Yes its down...

Update: New .amx and .pwn
Sorry for rapidshare.

Well i have togo to bed now. see you all tomorrow.


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - TerrySolid - 30.11.2007

The "Range Rover Freelander" is not a freelander. The Land Rover Freelander is a relatively new SUV. Just "Range Rover" would be more accurate. It looks to be a first generation 1980 - 1988 Range Rover judging by the rear side windows and fuel flap.

The Apache is an AH-64A in the new designation, as it does not have the fire control radar. (also it only has one seat dumb rockstar)

Other than that, nice, I have been waiting to see this done in samp.


Re: [FS] {‡‡~\'[Real Vehicle Names]\'~‡‡} - kaisersouse - 30.11.2007

Quote:
Originally Posted by TerrySolid
The "Range Rover Freelander" is not a freelander. The Land Rover Freelander is a relatively new SUV. Just "Range Rover" would be more accurate. It looks to be a first generation 1980 - 1988 Range Rover judging by the rear side windows and fuel flap.

The Apache is an AH-64A in the new designation, as it does not have the fire control radar. (also it only has one seat dumb rockstar)

Other than that, nice, I have been waiting to see this done in samp.
The apache would\'ve been much cooler if it kept with the pilot/gunner scenario but I guess I can understand why they didn\'t do that from a technical/ease of play standpoint. SA was designed as a single-player game and as such that one player needs to be able to perform all available functions in a vehicle. Would be boring to snag the Apache in SP and not be able to kill anyone with it (weapon wise anyways. There are always rotors lol)

Also I\'ve seen this argument before so i\'ll head it off at the pass: The first person who says the Sultan is a Lancer Evolution will get a punch in their filthy mouth. (Disclaimer: I\'m a subaru fanboi)