[FilterScript] [FS] Real Vehicle Names
#1

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
Reply
#2

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 .
Reply
#3

UPDATED
Reply
#4

really nice I am going to use this for sure!
Reply
#5

niice done!!
Reply
#6

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
Reply
#7

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!
Reply
#8

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
Reply
#9

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
Reply
#10

@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
Reply
#11

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)
Reply
#12

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.
Reply
#13

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
Reply
#14

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

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

think you can upload to www.pastebin.ca ?

WeeDarr
Reply
#17

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

WeeDarr
Actually he can\'t...since its down
Reply
#18

Yes its down...

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

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

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.
Reply
#20

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)
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)