[PEDIDO] Arma de 2 Mгos em 1 Mгo
#7

Para colocar armas nas costas:
PHP код:
    #define SlotAKM4 1
    
if(!IsPlayerInAnyVehicle(playerid))
    {
        new 
Arma[MAX_PLAYERS],Bala[MAX_PLAYERS];
        
GetPlayerWeaponData(playerid, 5, Arma[playerid], Bala[playerid]);
        if(
Arma[playerid] == 30 && Bala[playerid] >= 1)//Ak-47
        
{
               if(
GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid,SlotAKM4);
               else 
SetPlayerAttachedObject(playerid, SlotAKM4, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
        }
        else if(
Arma[playerid] == 31 && Bala[playerid] >= 1) //M4
        
{
            if(
GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid,SlotAKM4);
            else 
SetPlayerAttachedObject(playerid, SlotAKM4, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
        }
        else
        {
            
RemovePlayerAttachedObject(playerid,SlotAKM4);
        }
        
GetPlayerWeaponData(playerid, 3, Arma[playerid], Bala[playerid]);
    } 
Reply


Messages In This Thread
[PEDIDO] Arma de 2 Mгos em 1 Mгo - by Th4 L&noN! - 01.04.2012, 19:27
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by Lуs - 01.04.2012, 19:43
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by Th4 L&noN! - 05.04.2012, 06:54
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by Lуs - 05.04.2012, 06:59
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by Th4 L&noN! - 06.04.2012, 17:23
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by Lуs - 06.04.2012, 17:24
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by GReeN_WOoD - 06.04.2012, 17:35
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo - by Ricop522 - 06.04.2012, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)