SetPlayerSpecialAction
From SA-MP Wiki
SetPlayerSpecialAction
This Function allows to set players special action
(playerid, actionid)
| playerid | The player that should perform the action |
| actionid | The action that should be performed. |
This function does not return a specific value.
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.
- GetPlayerSpecialAction: Get a player's current special action.
- ApplyAnimation: Apply an animation to a player.
