Thread: [Solved] Event, Timer ? Client
View Single Post
Author Message
Djctavia
Junior Member
Join Date: Oct 2016
Old 11-01-2016 , 15:39   Event, Timer ? Client
Reply With Quote #1

Hi guys,
I was thinking about those functions : "OnClientDisconnect_Post" and "OnClientConnected".

I see on https://wiki.alliedmods.net/Counter-...ent_disconnect there is event for client disconnect, but, I would like check in same time if someone succesfuly connect or disconnect.

I was more thinking about timer, cause Hook... there is only client_disconnect...

I have not tried yet, maybe should I try for being sure but, if I do a timer like:

Code:
public Action Timer_checkClients(Handle timer)
{
	if(OnClientConnected() || OnClientDisconnect_Post())
	{
		joueurs[MaxClients];
	}

	return Plugin_Continue;
}

Last edited by Djctavia; 11-01-2016 at 15:52.
Djctavia is offline