ForceClassSelection

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:38, 18 October 2009
Cezar (Talk | contribs)

← Previous diff
Revision as of 13:24, 27 September 2011
Smithy (Talk | contribs)
(Related callbacks)
Next diff →
Line 23: Line 23:
{{SetPlayerSkin}} {{SetPlayerSkin}}
{{GetPlayerSkin}} {{GetPlayerSkin}}
 +
 +{{RelatedCallbacksFunction}}
 +{{OnPlayerRequestClass}}
[[Category:Scripting Functions]] [[Category:Scripting Functions]]

Revision as of 13:24, 27 September 2011




Description:

Forces a player to go back to the class selection.


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

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.


Return Values:

This function does not return any specific values.


if(!strcmp(cmdtext, "/class", true))
{
    ForceClassSelection(playerid);
    SetPlayerHealth(playerid,0);
    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