GetPlayerSpecialAction
Description:
Function GetPlayerSpecialAction retrieves a player's current special action.
Parameters:
(playerid)
int | playerid | The ID of the player to get the special action of. |
Return Values:
The special action of the player.
Examples:
public OnPlayerUpdate(playerid) { // Ban players if they have a jetpack if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) { Ban(playerid); } return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerSpecialAction: Set a player's special action.
- GetPlayerState: Get a player's current state.