16.04.2013, 10:03
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;
}