SetPlayerFightingStyle
From SA-MP Wiki
Description:
Set a player's special fighting style. To use in-game, aim and press the 'secondary attack' key (ENTER by default).
(playerid, style)
playerid | The ID of player to set the fighting style of. |
style | The fighting style that should be set. |
Return Values:
This function does not return any specific values.
Note | This does not affect normal fist attacks - only special/secondary attacks (aim + press 'secondary attack' key). |
Example Usage:
if (strcmp(cmdtext, "/boxing", true) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to boxing!"); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerFightingStyle: Get a player's fighting style.