Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. function ClanCheck(player)
  2. {
  3. local ne = player.Name.tolower();
  4. local ccc,cccc;
  5. ccc = player.Name.slice(0,3).tolower();
  6. cccc = player.Name.slice(0,4).tolower();
  7. if ( ccc == "ulk" )
  8. {
  9. MessagePlayer("You are a ULK",player);
  10. local q = QuerySQL(aDB, "SELECT Nick,Status FROM ulklist WHERE Nick = '"+ne+"'" );
  11. MessagePlayer(" "+GetSQLColumnData(q,0)+" "+GetSQLColumnData(q,1)+"",player);
  12. if ( GetSQLColumnData(q,0) == null)
  13. {
  14. MessagePlayer(" Your Nick wasnt Found in the clan database . \n Please Contact your clan leader or visit the Forums " , player );
  15. KickPlayer(player);
  16. q = GetSQLNextRow(q);
  17. }
  18. else
  19. {
  20. MessagePlayer("Worked.",player);
  21. MessagePlayer("Worked again " , player);
  22. local clan = "ULK";
  23. local Sttus = GetSQLColumnData (q,1 );
  24. return clan,sttus ;
  25.  
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement