View Single Post
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 04-04-2021 , 11:33   Re: Unban without message ?
Reply With Quote #6

Code:
if(SQL_NumResults(Query) > 0)     {         new pName[32], UnbanTime[32];         for(new i; i < SQL_NumResults(Query); i++)         {             SQL_ReadResult(Query, 1, pName, charsmax(pName))             UnbanTime[i] = SQL_ReadResult(Query, 5);             if(UnbanTime[i] == 0)             {                 SCM(0, GREEN, "%s %s got unbanned.", TAG, pName);             }             SQL_NextRow(Query)         }         SQL_ThreadQuery(Handler, "IgnoreHandle", "DELETE FROM `bans` WHERE `UnbanTime` = '0'");     }     return PLUGIN_HANDLED;

Last edited by jimaway; 04-04-2021 at 12:55.
jimaway is offline