Advertisement
Mouamle

A Method

Feb 10th, 2017
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. _G_DataBaseTable = {}
  2.  
  3. function save(database_table)
  4.   _G_DataBaseTable = database_table;
  5.   saveToFile(database_table);
  6. end
  7.  
  8. function load()
  9.   return _G_DataBaseTable;
  10. end
  11.  
  12.  
  13. function onMessage(msg)
  14.   if ( msg.hasText ) then
  15.     if ( _G_DataBaseTable[msg.from.id]["isGloballyBanned"] ) then
  16.       // the user is banned
  17.     end
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement