Detect Passenger & Unknown command
#4

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
i don't see how this will teleport all the passengers ?

for the "UNKNOWN" msg u need to "return" something at the end before the last closing bracket of the "if" statement for the command
You're right, it will teleport only one passenger. As Vince said i'll require loops.
Second issue fixed by the way, thanks

Quote:
Originally Posted by Vince
Посмотреть сообщение
You're going to need a loop anyway. I think it's the easiest to use IsPlayerInVehicle (not AnyVehicle).
If i'm going to use my first logic then IsPlayerInVehicle will also check driver and put him as a passenger.
I believe arrays can help me. I can store "player id" in array every time player state changes to "passenger" and then just check in loop that array. That may cause passenger to switch seats with each other but its okay.

This will take some time to learn arrays and write fully working code. If someone interested i can post it here as soon as i finish it.

Thanks for help guys
Reply


Messages In This Thread
Detect Passenger & Unknown command - by Kophaer - 09.12.2013, 08:38
Re: Detect Passenger & Unknown command - by park4bmx - 09.12.2013, 09:06
Re: Detect Passenger & Unknown command - by Vince - 09.12.2013, 09:25
Re: Detect Passenger & Unknown command - by Kophaer - 09.12.2013, 10:55
Re: Detect Passenger & Unknown command - by Threshold - 09.12.2013, 10:58
Re: Detect Passenger & Unknown command - by Kophaer - 09.12.2013, 14:52
Re: Detect Passenger & Unknown command - by Jefff - 09.12.2013, 16:46
Re: Detect Passenger & Unknown command - by Threshold - 09.12.2013, 21:12
Re: Detect Passenger & Unknown command - by Jefff - 09.12.2013, 22:04
Re: Detect Passenger & Unknown command - by Threshold - 10.12.2013, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)