#7

pawn Код:
if (strcmp(cmdtext, "/skin", true, 11) == 0) {
        new string[128], skinid;
        if(!cmdtext[11]) return SendClientMessage(playerid, 0x33AA33AA, "Usage: /skin [skinid]");
        skinid = strval(cmdtext[12]);
        switch(skinid) {
            case 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289: { return SendClientMessage(playerid, 0x33AA33AA, "Error: invalid skin ID!"); }
            default:
            {
                SetPlayerSkin(playerid, skinid);
                format(string, sizeof(string), "You have successfully changed your skin to %d", skinid);
                SendClientMessage(playerid, 0x33AA33AA, string);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Help - by Salsa - 16.10.2011, 14:56
Re : Help - by Naruto_Emilio - 16.10.2011, 15:29
Re: Help - by Kostas' - 16.10.2011, 15:38
Re : Re: Help - by Naruto_Emilio - 16.10.2011, 15:41
Re: Help - by Salsa - 16.10.2011, 15:47
Re: Help - by Salsa - 16.10.2011, 15:51
Re: Help - by Kostas' - 16.10.2011, 15:56
Re: Help - by Salsa - 16.10.2011, 16:04
Re: Help - by Kostas' - 16.10.2011, 16:10
Re: Help - by Salsa - 16.10.2011, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)