01.12.2013, 17:45
pawn Код:
CMD:skin(playerid, params[])
{
new skinid, string[128];
if(sscanf(params, "d", skinid))
return SendClientMessage(playerid, COLOR_RED, "USAGE: /s(kin) [skinID].");
else if(skinid < 0 || skinid > 299) return SendClientMessage(playerid, 0xFF000000, "You can't use skin above 299 or lower than 0.");
SetPlayerSkin(playerid, skinid);
format(string, sizeof(string), "You have set your skinID to %d.", skinid);
SendClientMessage(playerid, COLOR_GREEN, string);
return true;
}