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;