Aller au contenu principal

ForceClassSelection

Description​

Forces a player to go back to class selection.

NameDescription
playeridThe player to send back to class selection.

Returns​

This function does not return any specific values.

Examples​

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

Notes​

attention