weapon pickups not destroying?
#5

Now you are deleting only the very last weapon

PHP код:
function create_player_drops(playerid)
{
    new 
FloatxFloatyFloatzp_weaponp_ammogetspace;
    
// Health
    
GetPlayerPos(playeridxyz);
    
pickup_Health CreatePickup(12403xy+1z, -1); // 1240 health pickup
        
    
for (new 012i++){
    
         
// weapon pickups
        
GetPlayerWeaponData(playeridip_weaponp_ammo);
        if(
p_weapon 0)
        {
              
pickup_Weapon[getspace] = CreatePickup(WeaponObject(p_weapon), 3x+getspaceyz, -1);
              
getspace++;
        }
    }
        
    
SetTimerEx("DestroyPlayerDrops"10000false"i"playerid);
        
    return 
1;

do the same with deletion part
Reply


Messages In This Thread
weapon pickups not destroying? - by severance - 27.09.2018, 12:50
Re: weapon pickups not destroying? - by jasperschellekens - 27.09.2018, 14:42
Re: weapon pickups not destroying? - by severance - 27.09.2018, 14:43
Re: weapon pickups not destroying? - by KinderClans - 27.09.2018, 14:52
Re: weapon pickups not destroying? - by TORKQ - 27.09.2018, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)