yet another question -
WillyP - 04.09.2010
say if you did something like
new veh;
veh = createvehicle blabla
then
some onplayerkeystatechange stuff
then
if veh = true
showplayertextdraw?
im sure its something like that, just im tryna fix loads of my n00b errors D:
Re: yet another question -
Vince - 04.09.2010
if(vehicle) will return true if it's not 0 (obviously).
Re: yet another question -
Ironboy500[TW] - 04.09.2010
Can you explain a bit more what your problem is and what do you want to make?
Re: yet another question -
Backwardsman97 - 04.09.2010
Are you asking if this is possible or what? It's pretty much just how you showed it. Pseudocode wise anyways.
Re: yet another question -
WillyP - 04.09.2010
Quote:
Originally Posted by Ironboy500[TW]
Can you explain a bit more what your problem is and what do you want to make?
|
ok
so like onplayerrequestclass
you go left and right to change skins,
but you go left and right, and you change cars.
but when you change car, the textdraw changes too, so say you had a infernus chosen the textdraw would say infernus
then went right and up came a zr-350, then the textdraw would say zr-350 and so on
This forum requires that you wait 120 seconds between posts. Please try again in 2 seconds.
OMG
Re: yet another question -
Ironboy500[TW] - 04.09.2010
Check your server package and fsdebug.pwn
You'll find everything there =)
Re: yet another question -
WillyP - 04.09.2010
Quote:
Originally Posted by Ironboy500[TW]
Check your server package and fsdebug.pwn
You'll find everything there =)
|
dont get it D:
Re: yet another question -
Ironboy500[TW] - 04.09.2010
What part is confusing you?
Re: yet another question -
WillyP - 04.09.2010
the fact that it shows me nothing about changing states with the camera..
Re: yet another question -
LarzI - 04.09.2010
Ok, first of all you need to find a good spot for your camera to be placed.
Get the coords for the position, and use SetCameraPos + TogglePlayerControllable to freeze the player and look at the cars.
Spawn the first car in the line with CreateVehicle and show a textdraw for the player (which obviously already is made under OnGameModeInit).
Use variables to declare if player is scrolling through vehicles, and if he is (variable = true), use OnPlayerKeyStateChange to change vehicle (DestroyVehicle, CreateVehicle) and of course the textdraw (TextDrawHideForPlayer, TextDrawSetString, TextDrawShowForPlayer).
As Ironboy said, fsdebug includes this type of function, so you should really look it up and learn from it.
Good luck :]