From 80370a861ac3d797ef2f0986417ae18c5b93e2d1 Mon Sep 17 00:00:00 2001 From: Dogan Date: Wed, 10 Jul 2019 23:18:34 +0200 Subject: [PATCH] someone end my life --- ConnectAnnounce/scripting/ConnectAnnounceNewPlayers.sp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ConnectAnnounce/scripting/ConnectAnnounceNewPlayers.sp b/ConnectAnnounce/scripting/ConnectAnnounceNewPlayers.sp index 36c51ad2..e1283235 100644 --- a/ConnectAnnounce/scripting/ConnectAnnounceNewPlayers.sp +++ b/ConnectAnnounce/scripting/ConnectAnnounceNewPlayers.sp @@ -199,9 +199,10 @@ public void OnClientDisconnect(int client) g_bNewPlayerChatBlock[client] = false; } -public Action BlockChat(Handle timer, int clientid) +public Action BlockChat(Handle timer, int serialid) { - if ((client = GetClientFromSerial(clientid)) == 0) + int client; + if ((client = GetClientFromSerial(serialid)) == 0) return; g_bNewPlayerChatBlock[client] = false;