Scripting/Squirrel/Functions/Misc/GetSkinName
From VC-MP Wiki
This returns the name of the skin that the player is using.
Syntax
string GetSkinName( player.Skin )
Arguments
player.Skin - This returns the skin ID that the player is using
Example
This example will return the player's skin name when they spawn.
function onPlayerSpawn( player ) { MessagePlayer( "You spawned as " + GetSkinName( player.Skin ) + ".", player ); }
Notes
The function MessagePlayer and call onPlayerSpawn were used in in this example. More info about them in corresponding pages.
Related Functions
- Message
- MessagePlayer
- MessageAllExcept
- PrivMessage
- PrivMessageAll
- ClientMessage
- ClientMessageToAll
- Announce
- AnnounceAll
- SendPlayerMessage
- KickPlayer
- BanPlayer
- BanIP
- UnbanIP
- GetWeaponName
- GetWeaponID
- GetDistrictName
- GetSkinName
- GetTickCount
- GetTime
- GetFullTime
- IsNum
- BindKey
- UnbindKey
- CallFunc
- InPoly
- DistanceFromPoint
- ReloadScripts
