Posts: 38
Threads: 12
Joined: Aug 2013
Reputation:
0
Hey there! I'm beginning to script a freeroam gamemode. I've already created the command to spawn vehicles with "/v name vehicle"... in the list of vehicles there is too the "Rhino". Then, I've tryed to remove the "Rhino" from the list, but in the game if I try to spawn for example an "Hydra", the script spawn me a "Shamal". On the contrary if keep the "Rhino" on the list, the Hydra spawn succesfully. The Hydra is just an example.. The problem is with all the vehicles ... For this reason I was forced to put again the Rhino in the list... Anyway, how i can remove-kill a player from the "Rhino" when he enter on it?
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Well, your problem lies somewhere else. Shamal has an id = 519, while hydra has id = 520. If someone wants to spawn 520, he gets 519. What if someone will try to spawn id 400? You have somewhere off by one error.
Posts: 191
Threads: 24
Joined: Jun 2013
Reputation:
0
Post the code of ShowPlayerDialog for those vehicles and OnPlayerDialog part or the whole OnPlayerDialog here, I will FIX it for you instead of using your approach. Removing Rhino could be less fun for your script. Hehe.
Posts: 191
Threads: 24
Joined: Jun 2013
Reputation:
0
Refer to post below me. He beat me to it. :P