Aller au contenu principal

GetPlayerSpecialAction

Description

Retrieves a player's current special action.

NameDescription
playeridThe 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;
}