What calls this? I think it's OnPlayerRequestClass - Can I remove it fully?
#2

https://sampwiki.blast.hk/wiki/TogglePlayerSpectating

^^ the only function you can use to prevent this from happening. Generally, servers that don't use the regular way to select a "class" will use TogglePlayerSpectating() under OnPlayerConnect and then use it again [to disable it] when the player registers/authenticates.

When a player dies, it might be a good idea to set a 1-2 second timer that enables TogglePlayerSpectating() so you can do what you need. And then obviously, when you're ready to spawn them again, just disable TogglePlayerSpectating and set their position.
Reply


Messages In This Thread
What calls this? I think it's OnPlayerRequestClass - Can I remove it fully? - by EiresJason - 28.03.2013, 03:01
Re: What calls this? I think it's OnPlayerRequestClass - Can I remove it fully? - by Scenario - 28.03.2013, 03:07
Re: What calls this? I think it's OnPlayerRequestClass - Can I remove it fully? - by EiresJason - 28.03.2013, 03:20
Re: What calls this? I think it's OnPlayerRequestClass - Can I remove it fully? - by Scenario - 28.03.2013, 03:26

Forum Jump:


Users browsing this thread: 3 Guest(s)