Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "!unban" )
- {
- if ( level < 3 ) EchoNotice1( user, ICOL_RED + "Error - Your level is not high enough to use that command." );
- else if ( !text ) EchoNotice1(user, ICOL_RED+"Syntax: " + cmd + " <playername>" );
- else
- {
- local q = QuerySQL( db, "SELECT * FROM Bans WHERE Name='" + text + "' COLLATE NOCASE" );
- if ( GetSQLColumnData( q, 0 ) )
- {
- Message( "IRC-Admin [ " + user + " ] has unbanned the player: [ " + text + " ]." );
- EchoMessage( ICOL_BLUE+"Admin [ " + user + " ] has unbanned the player: [ " + text + " ]." );
- EchoMessage1( ICOL_BLUE+"Admin [ " + user + " ] has unbanned the player: [ " + text + " ]." );
- QuerySQL( db, "DELETE FROM Bans WHERE Name='" + text + "'" );
- }
- else EchoNotice1(user, ICOL_RED+"The player is not in our banlist" );
- FreeSQLQuery( q );
- }
- }
Add Comment
Please, Sign In to add comment