16.06.2016, 11:53
Hello,
I need that when you use the /skin showed up list where the skins and when /skin ID In order to give players skin, but did not show skin list. How to do it? I need to make it inconsistent. My DCMD code:
dcmd(skin,4,cmdtext);
dcmd_skin(playerid,params[])
{
{
DestroySelectionMenu(playerid);
SetPVarInt(playerid, "skinc_active", 1);
CreateSelectionMenu(playerid);
SelectTextDraw(playerid, 0xACCBF1FF);
}
{
if(IsValidSkin(strval(params)) == 0) return SendClientMessage(playerid,COLOR_RED,"bad id.");
else return SetPlayerSkin(playerid,strval(params));
}
}
I need that when you use the /skin showed up list where the skins and when /skin ID In order to give players skin, but did not show skin list. How to do it? I need to make it inconsistent. My DCMD code:
dcmd(skin,4,cmdtext);
dcmd_skin(playerid,params[])
{
{
DestroySelectionMenu(playerid);
SetPVarInt(playerid, "skinc_active", 1);
CreateSelectionMenu(playerid);
SelectTextDraw(playerid, 0xACCBF1FF);
}
{
if(IsValidSkin(strval(params)) == 0) return SendClientMessage(playerid,COLOR_RED,"bad id.");
else return SetPlayerSkin(playerid,strval(params));
}
}