I'm new to scripting.
#2

You need to use the SetPlayerSkin function, which like it's name suggests, sets the skin of the specified player. You can find a list of available skin IDs here: https://sampwiki.blast.hk/wiki/Skins

For example, here is one you may be interested in using (ID 137): https://sampwiki.blast.hk/wiki/Image:Skin_137.png

An example how you would implement this into the command:
pawn Код:
COMMAND:valur( playerid, params[ ] )
{
   SetPlayerSkin( playerid, 137 ); // Set the player skin to ID 137
   SendClientMessage( playerid, COLOR_GREY, "Congratulation, you are a valur !" ); // Send the message
   return 1;
}
Reply


Messages In This Thread
I'm new to scripting. - by Darnell - 09.08.2011, 07:59
Re: I'm new to scripting. - by Grim_ - 09.08.2011, 08:04
Re: I'm new to scripting. - by Jack_Leslie - 09.08.2011, 08:04
Re: I'm new to scripting. - by Darnell - 09.08.2011, 08:07

Forum Jump:


Users browsing this thread: 1 Guest(s)