2018-12-22 13:06:42 +00:00
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc
* Module: cnr\auth\login.pwn
* Purpose: module associated with login componenets
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Definitions ** */
/* ** Variables ** */
/* ** Hooks ** */
hook OnPlayerText( playerid, text[ ] )
{
2018-12-23 01:35:32 +00:00
if ( ! IsPlayerNPC( playerid ) ) {
2018-12-22 13:06:42 +00:00
2018-12-23 01:35:32 +00:00
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;
}
2018-12-22 13:06:42 +00:00
2018-12-23 01:35:32 +00:00
if ( ! IsPlayerLoggedIn( playerid ) ) {
return SendError( playerid, "You must be logged in to talk." ), Y_HOOKS_BREAK_RETURN_1;
}
}
2018-12-22 13:06:42 +00:00
return Y_HOOKS_CONTINUE_RETURN_1;
}
/* ** Functions ** */