Pickup problem
#10

It would be better if you checked under timers all players and then created pickups because here even if you destroy the pickup, it would appear as if they have picked it up. For example -
pawn Код:
SetTimer("do_something", 5000, 1, "d", playerid);
foreach(Player:i)
{
   do_something( i );
}
forward public do_something( playerid );
public do_something( playerid )
{
     new Float:health; GetPlayerHealth( playerid, health );
     if( health > 85 ) return DestroyPickup( healthpickup );
     else // do nothing, let it be displayed to them.
     return 1;
}
Reply


Messages In This Thread
Pickup problem - by Face9000 - 15.04.2013, 20:30
Re : Pickup problem - by DaTa[X] - 15.04.2013, 20:34
Re: Re : Pickup problem - by Face9000 - 15.04.2013, 20:41
Re : Re: Re : Pickup problem - by DaTa[X] - 15.04.2013, 20:43
Re: Pickup problem - by Face9000 - 15.04.2013, 20:50
Re : Re: Pickup problem - by DaTa[X] - 15.04.2013, 20:54
Re: Pickup problem - by Face9000 - 15.04.2013, 20:58
Re: Pickup problem - by Face9000 - 16.04.2013, 09:54
Re: Pickup problem - by Giroud12 - 16.04.2013, 10:01
Re: Pickup problem - by RajatPawar - 16.04.2013, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)