Skin command with dcmd
#1

Hai all,i need the skin command for dcmd.

the command will give a player the choice of all skins.

It's possible?Thanks
Reply
#2

pawn Код:
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;
}
im using the one from my admin system dadmin on progress and i took uneeded stuff u didnt need
but the prob its with sscanf
Reply
#3

Umh..i dont need sscanf :/
Reply
#4

Quote:
Originally Posted by dark_clown
Посмотреть сообщение
but the prob its with sscanf
Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Umh..i dont need sscanf :/
What's the problem using sscanf?
Reply
#5

Without sscanf, parameters are useless.

If you make a /ban command WITHOUT sscanf, then it will just tell you the command syntax and not return the ban to the player you want to ban.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)