21.05.2013, 03:49
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
}
#define ENTER_EXIT_DELAY 3000
EnterTime[playerid] = GetTickCount();
now simply do a check....
if(GetTickCount() - EnterTime[playerid] > ENTER_EXIT_DELAY)
{
// Valid activation
}