SetPlayerSpecialAction
From SA-MP Wiki
(Difference between revisions)
Revision as of 15:10, 4 September 2009 Mikep (Talk | contribs) ← Previous diff |
Revision as of 22:05, 1 February 2014 Connor Mead (Talk | contribs) (add fr link) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|This Function allows to set players special action }} | {{Description|This Function allows to set players special action }} | ||
Line 23: | Line 22: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetPlayerSpecialAction]] |
Revision as of 22:05, 1 February 2014
Description:
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. |
Return Values:
This function does not return any specific values.
if(strcmp(cmd, "/handsup", true) == 0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerSpecialAction: Get a player's current special action.
- ApplyAnimation: Apply an animation to a player.