bug fix with chuff saying random stuff in chat
This commit is contained in:
parent
fdd6f4297a
commit
7fe17a317f
@ -15,12 +15,16 @@
|
|||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
hook OnPlayerText( playerid, text[ ] )
|
hook OnPlayerText( playerid, text[ ] )
|
||||||
{
|
{
|
||||||
if ( GetPlayerScore( playerid ) < 10 )
|
if ( ! IsPlayerNPC( playerid ) ) {
|
||||||
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 ) )
|
if ( GetPlayerScore( playerid ) < 10 ) {
|
||||||
return SendError( playerid, "You must be logged in to talk." ), Y_HOOKS_BREAK_RETURN_1;
|
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;
|
return Y_HOOKS_CONTINUE_RETURN_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user