SetPlayerFightingStyle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Changes a player's fighting style, most only change the 'special attack' which is done using the Aim and Enter keys. | Changes a player's fighting style, most only change the 'special attack' which is done using the Aim and Enter keys. | ||
STYLE_STANDARD | {| border="2" cellpadding="2" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;" | ||
STYLE_BOXING | |'''Fighting Style''' | ||
STYLE_KUNG_FU | |'''ID''' | ||
STYLE_KNEE_HEAD | |- | ||
|STYLE_STANDARD | |||
STYLE_GRAB_KICK | |4 | ||
STYLE_ELBOWS | |- | ||
|STYLE_BOXING | |||
|5 | |||
|- | |||
|STYLE_KUNG_FU | |||
|6 | |||
|- | |||
|STYLE_KNEE_HEAD | |||
|7 | |||
|- | |||
|STYLE_GRAB_KICK | |||
|15 | |||
|- | |||
|STYLE_ELBOWS | |||
|16 | |||
|- | |||
|} | |||
==Syntax== | ==Syntax== |
Revision as of 18:30, 5 August 2007
Changes a player's fighting style, most only change the 'special attack' which is done using the Aim and Enter keys.
Fighting Style | ID |
STYLE_STANDARD | 4 |
STYLE_BOXING | 5 |
STYLE_KUNG_FU | 6 |
STYLE_KNEE_HEAD | 7 |
STYLE_GRAB_KICK | 15 |
STYLE_ELBOWS | 16 |
Syntax
setPlayerFightingStyle ( player, int style )
Required Arguments
- Player: Tells the function to give the fighting style to a player
- Style: A whole integer specifying the style of fighting you want to give to the player
Example
This example sets the player's fighting style to the desired style when he types "style" folldowed by a number from 4 to 16 in console.
addCommandHandler ( "style", "style" ) -- add a command handler for setcash function style ( player, command, id ) --when the style function is called setPlayerFightingStyle ( player, id ) --set players fighting style end
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState