yet another question
#1

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

if(vehicle) will return true if it's not 0 (obviously).
Reply
#3

Can you explain a bit more what your problem is and what do you want to make?
Reply
#4

Are you asking if this is possible or what? It's pretty much just how you showed it. Pseudocode wise anyways.
Reply
#5

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

Check your server package and fsdebug.pwn
You'll find everything there =)
Reply
#7

Quote:
Originally Posted by Ironboy500[TW]
Посмотреть сообщение
Check your server package and fsdebug.pwn
You'll find everything there =)
dont get it D:
Reply
#8

What part is confusing you?
Reply
#9

the fact that it shows me nothing about changing states with the camera..
Reply
#10

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 :]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)