SetPlayerSkin
From SA-MP Wiki
SetPlayerSkin
Set the skin of a player.
(playerid, skinid)
| playerid | The ID of the player to set the skin of. |
| skinid | The skin the player should use. |
This function does not return a specific value.
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/fireman", true) == 0) { // Set the player's skin to ID 277, which is a fireman. SetPlayerSkin(playerid, 277); return 1; } return 0; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- GetPlayerSkin: Get a player's current skin.
- SetSpawnInfo: Set the spawn setting for a player.
