Better a think time man.
PHP Code:
new gf_timeafterGotOut[33]
// When gets out
gf_timeafterGotOut[id] = get_gametime() // the moment when the player got out
public Client_PreThink(id)
{
// Not interested whether he entered the zone
if (gf_timeafterGotOut[id] == 0.0)
return PLUGIN_CONTINUE
new gametime = get_gametime()
if (float(floatround(gametime)) - 0.05 <= gf_timeafterGotOut[id] - gametime <= float(floatround(gametime)) + 0.05)
{
client_print(id, print_chat, "%d seconds have passed from getting out of the zone", floatround( gf_timeafterGotOut[id] - gametime ))
}
}
__________________