Pickups didn't destroy after time over.
#1

My script

On the top
Код:
new meatDrops[MAX_PLAYERS];
OnPlayerDeath callback
Код:
meatDrops[playerid] = CreatePickup(2804,19,Float:x,Float:y,Float:z,0);
This one create pickup if player dead

Ongamemodeinit
Код:
SetTimer("Destroypickup", 20000, false);
Set timer for 20 seconds

Код:
forward Destroypickup(playerid);
public Destroypickup(playerid)
{
    DestroyPickup(meatDrops[playerid]); // destroying pickup after 20 second
}
And this should destroy pickup if time passed. Bat pickup still stay, he doesn't even gone if time is passed
Reply


Messages In This Thread
Pickups didn't destroy after time over. - by Pokemon64 - 17.03.2017, 12:46
Re: Pickups didn't destroy after time over. - by Threshold - 17.03.2017, 12:58
Re: Pickups didn't destroy after time over. - by raydx - 17.03.2017, 12:59
Re: Pickups didn't destroy after time over. - by Toroi - 17.03.2017, 13:00
Re: Pickups didn't destroy after time over. - by Pokemon64 - 17.03.2017, 13:44

Forum Jump:


Users browsing this thread: 4 Guest(s)