SA-MP Forums Archive
[PEDIDO] Arma de 2 Mгos em 1 Mгo - 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: [PEDIDO] Arma de 2 Mгos em 1 Mгo (/showthread.php?tid=330568)



[PEDIDO] Arma de 2 Mгos em 1 Mгo - Th4 L&noN! - 01.04.2012

Como Colocar Armas de 2 Mгos em 1 Mгo??

EX:

http://www.netupload.org/files/boenv3fp2wbnn0k4bdey.png
http://www.netupload.org/files/1rd43yk5ts0y5wugg670.png

DUVIDA ADD: Como Colocar Armas nas Costas?

Vlww..

OBS: Ja Usei o Search e nгo achei



Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - Lуs - 01.04.2012

AttachObject


Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - Th4 L&noN! - 05.04.2012

UP! Alguen ?


Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - Lуs - 05.04.2012

Quote:
Originally Posted by Los
Посмотреть сообщение
AttachObject
....

@edit

Agora que entendi!

https://sampforum.blast.hk/showthread.php?tid=205666


Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - Th4 L&noN! - 06.04.2012

vlw por esse, so que o que eu mais requesito e nao achei й segurar
armas de 2 maos ex: m4, 12, sniper em 1 mгo sу



Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - Lуs - 06.04.2012

Entгo, й AttachObject.


Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - GReeN_WOoD - 06.04.2012

Para colocar armas nas costas:
PHP код:
    #define SlotAKM4 1
    
if(!IsPlayerInAnyVehicle(playerid))
    {
        new 
Arma[MAX_PLAYERS],Bala[MAX_PLAYERS];
        
GetPlayerWeaponData(playerid5Arma[playerid], Bala[playerid]);
        if(
Arma[playerid] == 30 && Bala[playerid] >= 1)//Ak-47
        
{
               if(
GetPlayerWeapon(playerid) == 30RemovePlayerAttachedObject(playerid,SlotAKM4);
               else 
SetPlayerAttachedObject(playeridSlotAKM43551, -0.060921, -0.1416730.0000000.00000035.3627350.000000);
        }
        else if(
Arma[playerid] == 31 && Bala[playerid] >= 1//M4
        
{
            if(
GetPlayerWeapon(playerid) == 31RemovePlayerAttachedObject(playerid,SlotAKM4);
            else 
SetPlayerAttachedObject(playeridSlotAKM43561, -0.099681, -0.1334080.0000001.02759219.6677850.000000);
        }
        else
        {
            
RemovePlayerAttachedObject(playerid,SlotAKM4);
        }
        
GetPlayerWeaponData(playerid3Arma[playerid], Bala[playerid]);
    } 



Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - Ricop522 - 06.04.2012

Use SetPlayerWeaponSkill para colocar armas de 2 mгos em uma mгo.
E use AttachObject para colocar as armas nas costas, pesquise no fуrum que existe!