SA-MP Forums Archive
[Ajuda] Porque isso nгo funciona ? - 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] Porque isso nгo funciona ? (/showthread.php?tid=424302)



Porque isso nгo funciona ? - DAKOT4 - 21.03.2013

Eu encontrei esse cуdigo na net . й sobre armas nas costas . mais ele nгo ta funcionando , as armas nгo aparecem nas costas como deveriam .

ta ai o cуdigo :

pawn Код:
#define M4-AK 1
#define PUMP  2

public OnPlayerUpdate(playerid)
{
    if (!IsPlayerInAnyVehicle(playerid))
    {
        new
            Armas[MAX_PLAYERS],
            Balas[MAX_PLAYERS]
        ;
       
        GetPlayerWeaponData(playerid, 5, Armas[playerid], Balas[playerid]);
        if (Armas[playerid] == 30 && Balas[playerid] >= 1)
        {
            if (GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid, M4-AK);
            else SetPlayerAttachedObject(playerid, M4-AK, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
        }
        else if (Armas[playerid] == 31 && Balas[playerid] >= 1)
        {
            if (GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid, M4-AK);
            else SetPlayerAttachedObject(playerid, M4-AK, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
        }
        else
        {
            RemovePlayerAttachedObject(playerid, M4-AK);
        }
        GetPlayerWeaponData(playerid, 3, Armas[playerid], Balas[playerid]);
        if (Armas[playerid] == 25 && Balas[playerid] >= 1)
        {
            if (GetPlayerWeapon(playerid) == 25) RemovePlayerAttachedObject(playerid, PUMP);
            else SetPlayerAttachedObject(playerid, PUMP, 349, 1, -0.109260, -0.059651, -0.066210, 186.310729, 42.375362, 6.716565);
        }
        else if (Armas[playerid] == 27 && Balas[playerid] >= 1)
        {
            if (GetPlayerWeapon(playerid) == 27) RemovePlayerAttachedObject(playerid, PUMP);
            else SetPlayerAttachedObject(playerid, PUMP, 351, 1, -0.181073, -0.056285, -0.081242, 181.269729, 39.399085, 12.246994);
        }
        else
        {
            RemovePlayerAttachedObject(playerid, PUMP);
        }
    }
    return 1;
}
Alguйm pode me ajudar ?


Re: Porque isso nгo funciona ? - Sky™ - 21.03.2013

como deveriam ele n aparece ou aparece de outra forma?


Re: Porque isso nгo funciona ? - DAKOT4 - 22.03.2013

as armas nгo aparecem nas costas do player . nem a ak , nem a m4 nem a chromegun .


Re: Porque isso nгo funciona ? - DAKOT4 - 22.03.2013

up ai gente por favor .