@Craxor what is the purpose of using rounded time? Rounded time in your code gives not 10 secs, but from 9.5 to 10.5 secs.
So:
PHP Code:
#define GetCurrentGameTime get_gametime
new Float:g_nextNotificationTime[MAX_PLAYERS + 1];
public PlayerTouch(touchedPlayer, toucher)
{
if (GetCurrentGameTime() >= g_nextNotificationTime[touchedPlayer])
{
// Notify touched player
const delaySeconds = 10;
g_nextNotificationTime[touchedPlayer] = GetCurrentGameTime() + delaySeconds;
}
// if you need to count remain seconds you can use this:
// floatround(g_nextNotificationTime[touchedPlayer] - GetCurrentGameTime(), floatround_ceil)
}
__________________