SA-MP Forums Archive
[AJUDA]Seletor de skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Seletor de skin (/showthread.php?tid=246145)



[AJUDA]Seletor de skin - Jhones - 03.04.2011

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


Re: [AJUDA]Seletor de skin - Macintosh - 03.04.2011

https://sampwiki.blast.hk/wiki/OnPlayerRequestClass