Skip to main content

SetPlayerFightingStyle

คำอธิบาย​

Set a player's special fighting style. To use in-game, aim and press the 'secondary attack' key (ENTER by default).

NameDescription
playeridThe ID of player to set the fighting style of.
styleThe fighting style that should be set.

ส่งคืน​

This function does not return any specific values.

ตัวอย่าง​

if (strcmp(cmdtext, "/boxing", true) == 0)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to boxing!");
return 1;
}

บันทึก​

หมายเหตุ

This does not affect normal fist attacks - only special/secondary attacks (aim + press 'secondary attack' key).

ฟังก์ชั่นที่เกี่ยวข้องกัน​

  • GetPlayerFightingStyle: Get a player's fighting style.