GetPlayerSkin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 10: Line 10:


==Example==
==Example==
if ([[spawnPlayer]] ( player, 1000, 1000, 1000, 90, 650 ) )
if ([[spawnPlayer]] ( player, 1000, 1000, 1000, 90, 650 ) )
   [[serverChat]] ( "Player's skin ID is: ", [[getPlayerSkin]] (player) )
   [[serverChat]] ( "Player's skin ID is: ", [[getPlayerSkin]] (player) )
end
end

Revision as of 09:48, 15 April 2006

Description

This function returns an integer containing the ID number of the selected player's skin.

Syntax

int getPlayerSkin ( player player )

Required Arguments

  • player: The player whose skin you want to retrieve.

Example

if (spawnPlayer ( player, 1000, 1000, 1000, 90, 650 ) )
  serverChat ( "Player's skin ID is: ", getPlayerSkin (player) )
end