Posts: 807
Threads: 62
Joined: Dec 2014
Reputation:
0
Hello when I do /spec, it start specing the player but when the player is entering a vehicle its not updating is there any way to make it detectable and when the player enter a vehicle to spec the vehicle
REP+
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
In OnPlayerStateChange:
if the new state is in vehicle (driver or passenger) for a player and this player is being spectated by others, re-spectate the vehicle the player is in.
else if the new state is on foot for a player and this player is being specated by others, re-spectate the player.
It's pretty much similar in OnPlayerInteriorChange, you have to change the interior of the players who are spectating the player whose interior is changed. It also applies for virtual worlds.
Posts: 807
Threads: 62
Joined: Dec 2014
Reputation:
0
Hmmm ok thanks for the info also I found a script that it has this features and I will modify it thanks for help anyway +REPed
Btw are you from Greece?