SetPlayerFightingStyle
From SA-MP Wiki
SetPlayerFightingStyle
Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.
SetPlayerFightingStyle will allow you to change the player's fighting style.
(playerid, style)
| playerid | The player you want to change the fighting style of. |
| style | The fighting style that should be set. |
This function does not return a specific value.
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 might be useful as well, as they're related to this function in one way or another.
- GetPlayerFightingStyle: Get a player's fighting style.
