Squirrel/Server/Functions/Misc/GetBodyPartName
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function returns a name for the given bodypart. == Syntax == <code>string GetBodyPartName( int iBodyPart )</code> == Arguments == * '''iBodyPart''' - The ID of the bodyp...) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "bodypart" ) GetBodyPartName( text.tointeger() ) | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This function is used to get the body part name of the given integer. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Misc}} | {{Squirrel/Server/Functions/Misc}} |
Revision as of 02:37, 7 January 2010
This function returns a name for the given bodypart.
Syntax
string GetBodyPartName( int iBodyPart )
Arguments
- iBodyPart - The ID of the bodypart in question
Example
function onPlayerCommand( player, command, text ) { if ( command == "bodypart" ) GetBodyPartName( text.tointeger() ) }
Notes
This function is used to get the body part name of the given integer.
Related Functions
- BanIP
- BanPlayer
- BanLUID
- UnbanLUID
- UnbanName
- GetBodyPartName
- GetDistrictName
- KickPlayer
- SendRconCommand
- UnbanIP