timer between pickups?
#3

Quote:
Originally Posted by DavidBilla
Посмотреть сообщение
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
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(..........);
This will kinda cycle it,it'll keep reoccuring according to the time you set in the timer.
Well thanks, but it's not what I am asking for, I meant like..you have to wait around 5 seconds between entering pickups, which will prevent spam aswell
Reply


Messages In This Thread
timer between pickups? - by Stroker - 12.06.2014, 18:34
Re: timer between pickups? - by DavidBilla - 12.06.2014, 18:59
Re: timer between pickups? - by Stroker - 12.06.2014, 19:56
Re: timer between pickups? - by Stroker - 13.06.2014, 16:07
Re: timer between pickups? - by Manyula - 13.06.2014, 16:14
Re: timer between pickups? - by Stroker - 14.06.2014, 16:53
Re: timer between pickups? - by Threshold - 15.06.2014, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)