[Pedido] comando de skin por id
#6

Adicione isto ao seu OnPlayerCommandText :


pawn Код:
if(!strfind(cmdtext, "/skin", true))
    {
        if(cmdtext[5] == '\0' || cmdtext[5] == ' ')
        {
            if(cmdtext[5] != ' ' || cmdtext[6] == '\0')   return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /skin [id da skin]");
            for(new x = 6; cmdtext[x] != EOS; x++)
            {
                if(cmdtext[x] != ' ')
                {
                    new STR[4];
                    strcat(STR, cmdtext[x]);
                    for(new y = 0; STR[y] != EOS; y++)
                    {
                        if(STR[y] < '0' || STR[y] > '9')
                        {
                            SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /skin [id da skin]");
                            return true;
                        }
                    }
                    new SkinID = strval(cmdtext[x]);
                    if(SkinID > 299)  return  SendClientMessage(playerid, 0xFFFFFFAA, "IDs de skins sгo vбlidos atй 299 !");
                    SetPlayerSkin(playerid, SkinID);
                    SendClientMessage(playerid, 0x33CCFFAA, "Sua skin foi definida com sucesso !");
                    return true;
                }
            }
            SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /skin [id da skin]");
            return true;
        }
    }


Espero ter ajudado .
Reply


Messages In This Thread
comando de skin por id - by xXCallXX - 02.02.2014, 23:47
Re: comando de skin por id - by FallweN - 02.02.2014, 23:49
Re: comando de skin por id - by kevinho.007 - 02.02.2014, 23:54
Re: comando de skin por id - by xXCallXX - 03.02.2014, 00:01
Re: comando de skin por id - by kevinho.007 - 03.02.2014, 00:24
Re: comando de skin por id - by rjjj - 03.02.2014, 00:45
Re: comando de skin por id - by giovanehen - 03.02.2014, 01:20

Forum Jump:


Users browsing this thread: 3 Guest(s)