From 3504a065d36399192fe58feaa378ae7c2254a7a2 Mon Sep 17 00:00:00 2001 From: Stev Date: Tue, 25 Dec 2018 16:11:17 +0000 Subject: [PATCH] reverting the change to fix mute detections. --- gamemodes/irresistible/cnr/auth/login.pwn | 7 ------- gamemodes/sf-cnr.pwn | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gamemodes/irresistible/cnr/auth/login.pwn b/gamemodes/irresistible/cnr/auth/login.pwn index a57290c..91f8fc8 100644 --- a/gamemodes/irresistible/cnr/auth/login.pwn +++ b/gamemodes/irresistible/cnr/auth/login.pwn @@ -17,13 +17,6 @@ hook OnPlayerText( playerid, text[ ] ) { if ( ! IsPlayerNPC( playerid ) ) { - if ( GetPlayerScore( playerid ) < 10 ) { - return SendServerMessage( playerid, "You need at least 10 score to talk. "COL_GREY"Use /ask or /report to talk to an admin in the meanwhile." ), Y_HOOKS_BREAK_RETURN_1; - } - - if ( ! IsPlayerLoggedIn( playerid ) ) { - return SendError( playerid, "You must be logged in to talk." ), Y_HOOKS_BREAK_RETURN_1; - } } return Y_HOOKS_CONTINUE_RETURN_1; } diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index d773dea..c9f536e 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -1934,6 +1934,14 @@ public OnPlayerText( playerid, text[ ] ) new time = g_iTime; + if ( GetPlayerScore( playerid ) < 10 ) { + return SendServerMessage( playerid, "You need at least 10 score to talk. "COL_GREY"Use /ask or /report to talk to an admin in the meanwhile." ), return 0; + } + + if ( ! IsPlayerLoggedIn( playerid ) ) { + return SendError( playerid, "You must be logged in to talk." ), return 0; + } + if ( textContainsIP( text ) ) return SendServerMessage( playerid, "Please do not advertise." ), 0;