27.02.2011, 09:03
Here you go mate:
This is rough example. You should code it a little bit more if you want to solve all the bugs that comes with that command.
pawn Код:
COMMAND:skin(playerid, params[])
{
new skinid;
if(!sscanf(params, "i",skinid))
{
if(skinid < 300)
{
SetPlayerSkin(playerid, skinid);
SendClientMessage(playerid, COLOR_WHITE," You have new skin!! Wooho!");
}
else return SendClientMessage(playerid, COLOR_LIGHTRED,"Please use skin ID's between 0 and 299!");
}
else return SendClientMessage(playerid, COLOR_WHITE,"Usage: /skin [ID (0-299)]");
return 1;
}
