[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(playerid, 5, Armas[playerid], Balas[playerid]);
        if(
Armas[playerid] == 30 && Balas[playerid] >= 1)//Ak-47
        
{
            if(
GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
            else 
SetPlayerAttachedObject(playerid, SlotAKeFUZIL, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
        }
        else if(
Armas[playerid] == 31 && Balas[playerid] >= 1) //FUZIL
        
{
            if(
GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
            else 
SetPlayerAttachedObject(playerid, SlotAKeFUZIL, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
        }
        else
        {
            
RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
        }
        
GetPlayerWeaponData(playerid, 3, Armas[playerid], Balas[playerid]);
        if(
Armas[playerid] == 25 && Balas[playerid] >= 1)//escopeta
        
{
            if(
GetPlayerWeapon(playerid) == 25) RemovePlayerAttachedObject(playerid,SlotEscopeta);
             else 
SetPlayerAttachedObject(playerid, SlotEscopeta, 349, 1, -0.109260, -0.059651, -0.066210, 186.310729, 42.375362, 6.716565);
        }
        else if(
Armas[playerid] == 27 && Balas[playerid] >= 1) //escopeta de combate
        
{
              if(
GetPlayerWeapon(playerid) == 27) RemovePlayerAttachedObject(playerid,SlotEscopeta);
            else 
SetPlayerAttachedObject(playerid, SlotEscopeta, 351, 1, -0.181073, -0.056285, -0.081242, 181.269729, 39.399085, 12.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)