[Pedido] Sirene,Arma nas Costa e include
#3

Quote:
Originally Posted by kinhobryant
Посмотреть сообщение
Arma colada , by eu.

PHP код:
#include <a_samp>
#define SlotAKeFUZIL 1
#define SlotEscopeta 2
//----------------------------------------------------------------------------------------------------------------------------------------------------------------
public OnPlayerUpdate(playerid)
{
    if(!
IsPlayerInAnyVehicle(playerid))
    {
        new 
Armas[MAX_PLAYERS],Balas[MAX_PLAYERS];
        
GetPlayerWeaponData(playerid5Armas[playerid], Balas[playerid]);
        if(
Armas[playerid] == 30 && Balas[playerid] >= 1)//Ak-47
        
{
            if(
GetPlayerWeapon(playerid) == 30RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
            else 
SetPlayerAttachedObject(playeridSlotAKeFUZIL3551, -0.060921, -0.1416730.0000000.00000035.3627350.000000);
        }
        else if(
Armas[playerid] == 31 && Balas[playerid] >= 1//FUZIL
        
{
            if(
GetPlayerWeapon(playerid) == 31RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
            else 
SetPlayerAttachedObject(playeridSlotAKeFUZIL3561, -0.099681, -0.1334080.0000001.02759219.6677850.000000);
        }
        else
        {
            
RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
        }
        
GetPlayerWeaponData(playerid3Armas[playerid], Balas[playerid]);
        if(
Armas[playerid] == 25 && Balas[playerid] >= 1)//escopeta
        
{
            if(
GetPlayerWeapon(playerid) == 25RemovePlayerAttachedObject(playerid,SlotEscopeta);
             else 
SetPlayerAttachedObject(playeridSlotEscopeta3491, -0.109260, -0.059651, -0.066210186.31072942.3753626.716565);
        }
        else if(
Armas[playerid] == 27 && Balas[playerid] >= 1//escopeta de combate
        
{
              if(
GetPlayerWeapon(playerid) == 27RemovePlayerAttachedObject(playerid,SlotEscopeta);
            else 
SetPlayerAttachedObject(playeridSlotEscopeta3511, -0.181073, -0.056285, -0.081242181.26972939.39908512.246994);
        }
        else
        {
            
RemovePlayerAttachedObject(playerid,SlotEscopeta);
        }
    }
    return 
1;

Se qser colocar mais vai ter q adicionar mais e mudar o valor


Sirene eu nгo tenho D: sorry
Vc poderia colocar um codigo pra criar mais ?
Reply


Messages In This Thread
[Pedido] Sirene,Arma nas Costa e include - by henrique_wwi - 24.02.2012, 14:33
Re: [Pedido] Sirene,Arma nas Costa e include - by kinhobryant - 24.02.2012, 14:51
Re: [Pedido] Sirene,Arma nas Costa e include - by Caio_Freeze - 24.02.2012, 15:51
Re: [Pedido] Sirene,Arma nas Costa e include - by kinhobryant - 24.02.2012, 16:52
Re: [Pedido] Sirene,Arma nas Costa e include - by Hiuship - 24.02.2012, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)