GetPlayerSpecialAction

From SA-MP Wiki

Jump to: navigation, search

GetPlayerSpecialAction


Returns what special action the player is using


Parameters:
(playerid)
playeridThe ID of the player you want to get the special action of


ReturnsReturns 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 might be useful as well, as they're related to this function in one way or another.

Personal tools