Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "!alias" )
- {
- 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 + " Error - Syntax: " + cmd + " <player name>" );
- else
- {
- local q = QuerySQL( db, "SELECT * FROM Alias WHERE Name='" + text + "'" );
- if ( GetSQLColumnData( q, 0 ) )
- {
- EchoMessage1( ICOL_PURPLE+"UID alias of " + text );
- local a;
- while ( GetSQLColumnData( q, 0 ) )
- {
- if ( a ) a = a + ", " + GetSQLColumnData(q,0);
- else a = GetSQLColumnData(q,0);
- GetSQLNextRow( q );
- }
- if ( a ) EchoMessage1( ICOL_PURPLE + "Aliasess [ " + a + " ]");
- }
- else EchoNotice1( user, "Error - " + text + " is not having any alias." );
- FreeSQLQuery(q);
- }
- }
Add Comment
Please, Sign In to add comment