Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AccInfo( id )
- {
- local player = FindPlayer( id );
- if ( player )
- {
- //TBanned( player );
- local q = QuerySQL( db, "SELECT Level, Bank, Cash, Joins FROM Account WHERE Name='" + player.Name.tolower() + "'" );
- local lvl = GetSQLColumnData( q, 0 );
- status[ id ].Bank = GetSQLColumnData( q, 1 ); status[ id ].Cash = GetSQLColumnData( q, 2 ); status[ id ].Joins = GetSQLColumnData( q, 3 );
- FreeSQLQuery( q );
- if ( lvl >= 0 )
- {
- status[ id ].IsReg = true;
- if ( player.UniqueID == GetMID( player ) )
- {
- ClientMessage("[#5555ff][NickServ][#65ff55] You have auto-logged in.",player, 153, 50, 204 );
- ClientMessage("[#5555ff][NickServ][#65ff55] Account information:- Name: [ " + player.Name + " ] Level: [ " + lvl + " ] State: [ " + GetLevelTag(player) + " ]",player, 153, 50, 204 );
- ClientMessage("[#5555ff][NickServ][#65ff55] MAC ID: [ "+ player.UniqueID +" ]",player, 153, 50, 204 );
- status[ id ].IsLogged = true;
- status[ id ].Level = lvl;
- IncJoins( player );
- }
- else
- {
- ClientMessage("[#5555ff][NickServ][#ff5555] Please login into the server.",player, 153, 50, 204 );
- ClientMessage("[#5555ff][NickServ][#ff5555] To login, type /login <password>.",player, 153, 50, 204 );
- status[ id ].IsLogged = false;
- }
- }
- else
- {
- ClientMessage("[#5555ff][NickServ][#ff5555] Please register your nickname.",player, 153, 50, 204 );
- ClientMessage("[#5555ff][NickServ][#ff5555] To register, type /register <password>.",player, 153, 50, 204 );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement