Stuck in OnPlayerRequestClass
#1

-- DELETED --
Reply
#2

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?
Reply
#3

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.
Reply
#4

pInfo[playerid][pStatus] -> Debug it in OnPlayerRequestClass.
Also show us OnPlayerRequestSpawn
Reply
#5

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
pInfo[playerid][pStatus] -> Debug it in OnPlayerRequestClass.
Also show us OnPlayerRequestSpawn
I don't use OnPlayerRequestSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)