GetPlayerSpecialAction

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:27, 27 January 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 22:02, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 25: Line 25:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:GetPlayerSpecialAction]]

Revision as of 22:02, 1 February 2014



Description:

Retrieves a player's current special action.


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


Return Values:

The special action of the player.


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.

In other languages