Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CheckBan( p )
- {
- local q = QuerySQL( db, "SELECT * FROM Bans WHERE UID='" + p.UniqueID + "' COLLATE NOCASE" );
- local uid = GetSQLColumnData( q, 5 );
- if ( uid ) return 1;
- else return 0;
- }
- function onPlayerJoin( player )
- {
- if ( CheckBan( player ) == 1 ) Kick( player, "Server", "banned from server" );
- }
Add Comment
Please, Sign In to add comment