Trying to use multiple numbers in one value...
#6

pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, 0x919191FF, "Usage: /skin [SKINID]");
        return 1;
    }
    if(PlayerInfo[playerid][pAdmin] < 1 )
    {
        switch(strval(tmp))
        {
            case 280:
            {
                //code
            }
        }
    }
    else if(IsAtClothShop(playerid) || PlayerInfo[playerid][pDonateRank] >= 1)
    {
        new chosenskin = strval(tmp);
        SetPlayerSkin(playerid, chosenskin);
        PlayerInfo[playerid][pModel] = chosenskin;
        return 1;
    }
    else {
    SendClientMessage(playerid, COLOR_YELLOW, "  You are not inside a clothing store!");
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)