04.12.2018, 17:20
You need to manually set the spawn info (SetPlayerSpawnInfo) in OnPlayerRequestClass and then toggle the player spectating (on and off again).
The return value of OnPlayerRequestClass just defines whether or not the player will recieve the spawn info, but not if the player stays in the class selection or not.
If you want to restrict a player from spawning, you need to return 0 in OnPlayerRequestSpawn.
Also this has been asked a few hundred times, you could just search for a solution.
Quote:
Код:
public OnPlayerRequestClass(playerid, classid) { if(LoggedIn[playerid] == 0) { return 0; } return 1; } |
If you want to restrict a player from spawning, you need to return 0 in OnPlayerRequestSpawn.
Also this has been asked a few hundred times, you could just search for a solution.