reverting the change to fix mute detections.

This commit is contained in:
Stev 2018-12-25 16:11:17 +00:00
parent 8e2101fad3
commit 3504a065d3
2 changed files with 8 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;