Squirrel/Server/Functions/Misc/GetBodyPartName
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
|||
Line 15: | Line 15: | ||
function onPlayerCommand( player, command, text ) | function onPlayerCommand( player, command, text ) | ||
{ | { | ||
− | if ( command == "bodypart" ) GetBodyPartName( text.tointeger() ) | + | if ( command == "bodypart" ) Message( "The bodypart name is: " + GetBodyPartName( text.tointeger() ) ); |
} | } | ||
</code> | </code> |
Latest revision as of 23:43, 9 July 2013
This function returns a name for the given bodypart.
[edit] Syntax
string GetBodyPartName( int iBodyPart )
[edit] Arguments
- iBodyPart - The ID of the bodypart in question
[edit] Example
function onPlayerCommand( player, command, text ) { if ( command == "bodypart" ) Message( "The bodypart name is: " + GetBodyPartName( text.tointeger() ) ); }
[edit] Notes
This function is used to get the body part name of the given integer.
[edit] Related Functions
- BanIP
- BanPlayer
- BanLUID
- UnbanLUID
- UnbanName
- GetBodyPartName
- GetDistrictName
- KickPlayer
- SendRconCommand
- UnbanIP