Hurtworld Permissions via SQL

Discussion in 'Plugin Requests' started by Crazzel, Jul 5, 2016.

  1. Hello.
    I want to create my own VIP system (via SMS) - so i create script in php who add variables into mysql.

    Example:
    User|VIP|TIME
    Max|true|30d

    So how Can I add player permissions when VIP == true? I know - in chat I can use command /grant user blablabla, but I want create it automatically.


    Thanks! :)
     
  2. Can someone write for me a plugin.
    This plugin will make a command from MySQL base if player was logined and next remove this command from mysql
     
  3. Wulf

    Wulf Community Admin

    You may want to expand on what you want, as your thread title doesn't seem to match your description.
     
  4. I think that @Wulf must create oxide extension for .sql files first.
     
  5. Wulf

    Wulf Community Admin

    No, they can use the MySQL or SQLite extensions to connect to databases.
     
  6. Good to know it ;)
     
  7. I have all without permissions, php script connect with mysql and add vip to player after succesfull payment, but i don't know how to add permissions during player connect to server (I want to create it automatically).

    How function I should use? I want to add player in group after connection (by use example timed permissions).
     
  8. @Crazzel you can use the Player's hooks to know when he connects and then grant the group like: permission.AddUserGroup(playerid, group);