SetPlayerSpecialAction

From SA-MP Wiki

Jump to: navigation, search

SetPlayerSpecialAction


This Function allows to set players special action


Parameters:
(playerid, actionid)
playeridThe player that should perform the action
actionidThe action that should be performed.


This function does not return a specific value, it's best to simply ignore it.


if(strcmp(cmd, "/handsup", true) == 0)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.