warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetPlayerSpecialAction
Description
Retrieves a player's current special action.
Name | Description |
---|---|
playerid | The ID of the player to get the special action of. |
Returns
The special action of the player (see: Special Actions).
Examples
public OnPlayerUpdate(playerid)
{
// Ban players if they have a jetpack
if (GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
Ban(playerid);
}
return 1;
}
Related Functions
- SetPlayerSpecialAction: Set a player's special action.
- GetPlayerState: Get a player's current state.