Making commands to change skin, etc
#10

Quote:
Originally Posted by Jack.7331
Посмотреть сообщение
Onyx, that wouldn't necessarily work, because there isn't a skin for every number from 0 to 299.
"These skins (3, 4, 5, 6, 8, 42, 65, 86, 119, 149, 208, 273, 289) were added in SA-MP 0.3d RC5 and will not work in earlier versions!"

But, there is only one skin which is still, not exist.

pawn Код:
CMD:skin(playerid, params[])
{
    new
        skinid,
        a_string[65]
    ;

    if(sscanf(params, "i", skinid))
    {
        return SendClientMessage(playerid, -1, "USAGE: /skin [skinid]");
    }

    if(skinid > 299 || skinid < 0 || skinid == 74)
    {
        return SendClientMessage(playerid, -1, "Invalid skin ID.");
    }

    SetPlayerSkin(playerid, skinid);
    format(a_string, 65, "You've changed your skin to ID %i.", skinid);
    SendClientMessage(playerid, -1, a_string);

    return 1;
}
Reply


Messages In This Thread
Making commands to change skin, etc - by Trekkx - 09.04.2012, 20:58
Re: Making commands to change skin, etc - by Jack.7331 - 09.04.2012, 21:08
Re: Making commands to change skin, etc - by .FuneraL. - 09.04.2012, 21:24
Re: Making commands to change skin, etc - by Trekkx - 09.04.2012, 21:26
Re: Making commands to change skin, etc - by Trekkx - 09.04.2012, 21:28
Re: Making commands to change skin, etc - by Onyx - 09.04.2012, 21:42
Re: Making commands to change skin, etc - by Jack.7331 - 09.04.2012, 21:44
Re: Making commands to change skin, etc - by Toreno - 09.04.2012, 21:45
Re: Making commands to change skin, etc - by WarriorEd22 - 09.04.2012, 21:49
Re: Making commands to change skin, etc - by Toreno - 09.04.2012, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)