[AJUDA]Seletor de skin
#1

pawn Код:
ClassSel_SetupCharSelection(playerid)
{
    new Keys,ud,lr;
    GetPlayerKeys(playerid,Keys,ud,lr);
    if( (Keys & KEY_FIRE) || (Keys & KEY_SECONDARY_ATTACK) )
    {
        PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
        TogglePlayerControllable(playerid, 1);
        SpawnPlayer(playerid);
        return 1;
    }
    if(lr > 0)
    {
        switch (PlayerInfo[playerid][Org])
        {
            case 1:
            {
                if(GetPlayerSkin(playerid) == 265) return SetPlayerSkin(playerid, 266);
                if(GetPlayerSkin(playerid) == 266) return SetPlayerSkin(playerid, 267);
                if(GetPlayerSkin(playerid) == 267) return SetPlayerSkin(playerid, 280);
            }
            case 2:
            {
                if(GetPlayerSkin(playerid) == 285) return SetPlayerSkin(playerid, 286);
                if(GetPlayerSkin(playerid) == 286) return SetPlayerSkin(playerid, 285);
            }
    else if(lr < 0)
    {
        switch (PlayerInfo[playerid][Org])
        {
            case 1:
            {
                if(GetPlayerSkin(playerid) == 288) return SetPlayerSkin(playerid, 284);
                if(GetPlayerSkin(playerid) == 284) return SetPlayerSkin(playerid, 283);
                if(GetPlayerSkin(playerid) == 283) return SetPlayerSkin(playerid, 282);
            }
            case 2:
            {
                if(GetPlayerSkin(playerid) == 286) return SetPlayerSkin(playerid, 285);
                if(GetPlayerSkin(playerid) == 285) return SetPlayerSkin(playerid, 286);
            }
        }
    }
    return 1;
}
O problema й que nгo alterna as skins no LEFT and RIGHT, e nгo seleciona a skin no LMB
Reply


Messages In This Thread
[AJUDA]Seletor de skin - by Jhones - 03.04.2011, 07:31
Re: [AJUDA]Seletor de skin - by Macintosh - 03.04.2011, 13:36

Forum Jump:


Users browsing this thread: 3 Guest(s)