SetPlayerFightingStyle

From SA-MP Wiki

Jump to: navigation, search

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.


Parameters:
(playerid, style)
playeridThe player you want to change the fighting style of.
styleThe 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.

Personal tools