30.10.2010, 10:40
Hai all,i need the skin command for dcmd.
the command will give a player the choice of all skins.
It's possible?Thanks
the command will give a player the choice of all skins.
It's possible?Thanks
dcmd_skin(playerid,params[])
{
new skin;
if(sscanf(params,"d",skin)) return SendClientMessage(playerid,red,"USAGE: /skin [skinid]");
else if(skin > 299 || skin < 0) return SendClientMessage(playerid,red,"ERROR: Invalid skin ID!");
else if(skin == GetPlayerSkin(playerid)) return SendClientMessage(playerid,red,"ERROR: That player already have this skin ID!");
else
{
SetPlayerSkin(playerid,skin);
SendClientMessage(playerid,ORANGE,"Your skin has been changed, and auto saved");
}
return 1;
}