Advertisement
KingOfVC

pp

Oct 21st, 2014
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. function AccInfo( id )
  2. {
  3. local player = FindPlayer( id );
  4. if ( player )
  5. {
  6. //TBanned( player );
  7. local q = QuerySQL( db, "SELECT Level, Bank, Cash, Joins FROM Account WHERE Name='" + player.Name.tolower() + "'" );
  8. local lvl = GetSQLColumnData( q, 0 );
  9. status[ id ].Bank = GetSQLColumnData( q, 1 ); status[ id ].Cash = GetSQLColumnData( q, 2 ); status[ id ].Joins = GetSQLColumnData( q, 3 );
  10. FreeSQLQuery( q );
  11. if ( lvl >= 0 )
  12. {
  13. status[ id ].IsReg = true;
  14. if ( player.UniqueID == GetMID( player ) )
  15. {
  16. ClientMessage("[#5555ff][NickServ][#65ff55] You have auto-logged in.",player, 153, 50, 204 );
  17. ClientMessage("[#5555ff][NickServ][#65ff55] Account information:- Name: [ " + player.Name + " ] Level: [ " + lvl + " ] State: [ " + GetLevelTag(player) + " ]",player, 153, 50, 204 );
  18. ClientMessage("[#5555ff][NickServ][#65ff55] MAC ID: [ "+ player.UniqueID +" ]",player, 153, 50, 204 );
  19. status[ id ].IsLogged = true;
  20. status[ id ].Level = lvl;
  21. IncJoins( player );
  22. }
  23. else
  24. {
  25. ClientMessage("[#5555ff][NickServ][#ff5555] Please login into the server.",player, 153, 50, 204 );
  26. ClientMessage("[#5555ff][NickServ][#ff5555] To login, type /login <password>.",player, 153, 50, 204 );
  27. status[ id ].IsLogged = false;
  28. }
  29. }
  30. else
  31. {
  32. ClientMessage("[#5555ff][NickServ][#ff5555] Please register your nickname.",player, 153, 50, 204 );
  33. ClientMessage("[#5555ff][NickServ][#ff5555] To register, type /register <password>.",player, 153, 50, 204 );
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement