GetPlayerSpecialAction
From SA-MP Wiki
Returns what special action the player is using
(playerid)
| playerid | The ID of the player you want to get the special action of |
| Returns | Returns the special action of the player. |
public OnPlayerUpdate(playerid) { if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) { Ban(playerid); // Ban players if they have a jetpack } 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.
