12.06.2014, 18:59
if you are talking about same pickup reappearing after each time you pick it up,yes there is a way.
when you create a pickup,assign a name to it.
example
This will kinda cycle it,it'll keep reoccuring according to the time you set in the timer.
when you create a pickup,assign a name to it.
example
pawn Код:
//under ongamemodeinit
new weaponpickup;
weaponpickup = CreatePickup(..........);
pawn Код:
//under OnPlayerPickupPickup
if(pickupid == weaponpickup)
{
GivePlayerWeapon(playerid,24,100);
DestroyPickup(weaponpickup);
SetTimerEx(......)
}
pawn Код:
//under the timer's function
weaponpickup = CreatePickup(..........);