ForceClassSelection

From SA-MP Wiki

Jump to: navigation, search

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.


Parameters:
(playerid)
playeridThe 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.

Personal tools