ForceClassSelection
From SA-MP Wiki
ForceClassSelection
Forces a player to go back to the class selection.
Important Note: To force a player to class selection, you must kill them after using this function. You can also use TogglePlayerSpectating.
(playerid)
| playerid | The player you want to send back to the class selection. |
This function does not return a specific value.
if(!strcmp(cmdtext, "/class", true)) { ForceClassSelection(playerid); SetPlayerHealth(playerid,0); return 1; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerSkin: Set a player's skin.
- GetPlayerSkin: Get a player's current skin.
