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;