GetPlayerSkin: Difference between revisions
Jump to navigation
Jump to search
(updated to new syntax) |
mNo edit summary |
||
Line 9: | Line 9: | ||
===Returns=== | ===Returns=== | ||
Returns an [[int]] indicating which skin the player has. See [[ | Returns an [[int]] indicating which skin the player has. See [[Character Skins]]. | ||
==Example== | ==Example== |
Revision as of 01:07, 7 January 2007
This function returns an integer containing the ID number of the selected player's skin.
Syntax
int getPlayerSkin ( player thePlayer )
Required Arguments
- player: The player whose skin you want to retrieve.
Returns
Returns an int indicating which skin the player has. See Character Skins.
Example
-- Spawn a player if ( spawnPlayer ( myPlayer, 1000, 1000, 1000, 90, 650 ) ) then -- Tell the player what skin they've spawned with outputChatBox ( "Your skin ID is: "..getPlayerSkin ( myPlayer ), myPlayer ) 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