[Pedido] Weapons
#8

Eu fiz ontem usando "..."
Exemplo:
pawn Код:
RemovePlayerWeapon( playerid, 24 , 35 , 36 , 37 , 38 );
pawn Код:
RemovePlayerWeapon(playerid,{Float,_}:...)
{
    new
        ii = numargs(),
        weaponid,
        ammo,
        jj = 1,
        x
       
    ;

    for(; x < 13; ++x)
    {
        GetPlayerWeaponData(playerid,x,weaponid,ammo);

        do
        {
            if(weaponid == getarg(jj))
                SetPlayerAmmo(playerid,weaponid,0);
        }
        while(++jj < ii);  

    }
    return 1;
}
Reply


Messages In This Thread
[Pedido] Weapons - by diretor7 - 17.08.2011, 00:02
Re: [Pedido] Weapons - by Joao_VS - 17.08.2011, 00:07
Re: [Pedido] Weapons - by ViniBorn - 17.08.2011, 00:07
Re: [Pedido] Weapons - by Colgate - 17.08.2011, 00:09
Re: [Pedido] Weapons - by RockFire - 17.08.2011, 00:12
Re: [Pedido] Weapons - by Joao_VS - 17.08.2011, 00:14
Re: [Pedido] Weapons - by ViniBorn - 17.08.2011, 00:14
Re: [Pedido] Weapons - by RockFire - 17.08.2011, 00:19
Re: [Pedido] Weapons - by Colgate - 17.08.2011, 00:48
Re: [Pedido] Weapons - by ViniBorn - 17.08.2011, 00:58

Forum Jump:


Users browsing this thread: 2 Guest(s)