Custom Class Selection Spawn Bug.
#1

I have made a custom class selection. I am avoiding Requestclass using TogglePlayerSpectating.

After that I am using a textdraw to choose to get spawned. After that They suppose to get spawned with skin id 108 but they get spawned with a cop skin and they actually get spawned about 50thousand more feets in the air.. Obviously totally bugged.. if i use my cmd /ls to get teleported it kicks me.

How to spawn my player after an enabled spectator mode?
I already used Spectating mode toggled to false and then spawn but it it doesnt spawn him.
Reply
#2

You have to use TogglePlayerSpectating and set it to false before spawning the player.
Reply
#3

Quote:
Originally Posted by Gammix
Посмотреть сообщение
You have to use TogglePlayerSpectating and set it to false before spawning the player.
Gammix Sorry i just re-edit my post. I did but didn't really work out..
Reply
#4

Set the player's spawn info, toggle spectating mode off and spawn the player when they request a class (callback).
Reply
#5

So should i completely remove spectating mode from REQUEST class and add a timer of 1 milisecond to spawn player?
Reply
#6

Toggling spectating mode off should be used to send the player to the default class selection, do your things there, and spawn the player.
Reply
#7

Found the solution i had put two times spectate enabled and disabled it just once.. Thank you both for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)