ForceClassSelection

From SA-MP Wiki

Revision as of 04:38, 19 June 2012; view current revision
←Older revision | Newer revision→
Jump to: navigation, search



Description:

Forces a player to go back to the class selection.


Parameters:
(playerid)
playeridThe player you want to send back to the class selection.


Return Values:

This function does not return any specific values.


Image:32px-Circle-style-warning.png

Important
Note

The player will not return to class selection until they re-spawn. This can be achieved with TogglePlayerSpectating, as seen in the below example.


if(!strcmp(cmdtext, "/class", true))
{
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, true);
    TogglePlayerSpectating(playerid, false);
    return 1;
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools