MuhammadZeeshan

salias cmd

Dec 12th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. else if ( cmd == "!salias" )
  2. {
  3. if ( level < 3 ) EchoNotice1( user, ICOL_RED + "Error - Your level is not high enough to use that command." );
  4. else if ( !text ) EchoNotice1( user, ICOL_RED + "Error: /"+cmd+" <player uid>");
  5. else
  6. {
  7. local q = QuerySQL( db, "SELECT * FROM Alias WHERE UID='" + text + "'" );
  8. if ( GetSQLColumnData( q,2 ) == text )
  9. {
  10. EchoMessage1(ICOL_PURPLE + "UID: [ " + GetSQLColumnData(q,2) +" ] ");
  11. EchoMessage1(ICOL_PURPLE + "Aliasess [ " + GetSQLColumnData(q,0) + " ]")
  12. }
  13. else EchoNotice1( user, ICOL_RED + " Error - " + text + " - invalid uid." );
  14. FreeSQLQuery(q);
  15. }
  16. }
Add Comment
Please, Sign In to add comment