17.01.2013, 19:02
Try this
pawn Код:
COMMAND:myskin(playerid,params[])
{
if ( sscanf( params, "d", params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""COL_LIGHTBLUE"Usage:{FFFFFF} /myskin <skin>");
if ( !IsValidSkin( params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""COL_RED"ERROR:{FFFFFF} Invalid skin ID.");
SetPlayerSkin(playerid, params[ 0 ]);
Account[playerid][Skin] = params [ 0 ];
new String[180];
format( String, sizeof String, "{FFFFFF}You set your Skin to "COL_LIGHTBLUE"%d{FFFFFF} and it has been saved into your account succesfully!", params[ 0 ] );
SendClientMessage( playerid, -1, String );
return 1;
}