Stuck in OnPlayerRequestClass - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Stuck in OnPlayerRequestClass (
/showthread.php?tid=628788)
Stuck in OnPlayerRequestClass -
danielpalade - 15.02.2017
-- DELETED --
Re: Stuck in OnPlayerRequestClass -
Threshold - 15.02.2017
Quote:
Originally Posted by SA-MP Wiki
Returning 0 in this callback will prevent the player from spawning. The player can be forced to spawn when SpawnPlayer is used, however the player will re-enter class selection the next time they die.
|
Also note that setting TogglePlayerSpectating to false will also call 'OnPlayerSpawn' for that player, so you have two instances of spawning the player essentially.
I'm assuming that 'pInfo[playerid][pStatus]' does not equal 1 when you're attempting this?
Re: Stuck in OnPlayerRequestClass -
danielpalade - 15.02.2017
Quote:
Originally Posted by Threshold
Also note that setting TogglePlayerSpectating to false will also call 'OnPlayerSpawn' for that player, so you have two instances of spawning the player essentially.
I'm assuming that 'pInfo[playerid][pStatus]' does not equal 1 when you're attempting this?
|
The variable is set to 1 when logging in.
Re: Stuck in OnPlayerRequestClass -
DRIFT_HUNTER - 15.02.2017
pInfo[playerid][pStatus] -> Debug it in OnPlayerRequestClass.
Also show us OnPlayerRequestSpawn
Re: Stuck in OnPlayerRequestClass -
danielpalade - 15.02.2017
Quote:
Originally Posted by DRIFT_HUNTER
pInfo[playerid][pStatus] -> Debug it in OnPlayerRequestClass.
Also show us OnPlayerRequestSpawn
|
I don't use OnPlayerRequestSpawn