17.03.2017, 12:46
My script
On the top
OnPlayerDeath callback
This one create pickup if player dead
Ongamemodeinit
Set timer for 20 seconds
And this should destroy pickup if time passed. Bat pickup still stay, he doesn't even gone if time is passed
On the top
Код:
new meatDrops[MAX_PLAYERS];
Код:
meatDrops[playerid] = CreatePickup(2804,19,Float:x,Float:y,Float:z,0);
Ongamemodeinit
Код:
SetTimer("Destroypickup", 20000, false);
Код:
forward Destroypickup(playerid); public Destroypickup(playerid) { DestroyPickup(meatDrops[playerid]); // destroying pickup after 20 second }