Pickup Teleports (Too fast!)
#5

You can make a variable EnterTime[MAX_PLAYERS]; then do the following when entering or exiting....

#define ENTER_EXIT_DELAY 3000

EnterTime[playerid] = GetTickCount();

now simply do a check....

if(GetTickCount() - EnterTime[playerid] > ENTER_EXIT_DELAY)
{
// Valid activation
}
Reply


Messages In This Thread
Pickup Teleports (Too fast!) - by Apprentice - 20.05.2013, 20:30
Re: Pickup Teleports (Too fast!) - by mrskull42 - 20.05.2013, 21:36
AW: Pickup Teleports (Too fast!) - by Nero_3D - 20.05.2013, 22:11
Re: Pickup Teleports (Too fast!) - by Apprentice - 20.05.2013, 23:39
Re: Pickup Teleports (Too fast!) - by Pottus - 21.05.2013, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)