Jump to content

PreyofWar

Members
  • Posts

    8
  • Joined

  • Last visited

  1. Nickname: Simba Your profile at ED forum: http://forums.eagle.ru/member.php?u=100343 Chosen plane type: F86 Country of residence: United States of America Time: GMT-5 Language of communication: English Confirmation of familiarization with regulations of the tournament and the obligation to comply with them: Familiarized with regulations of this tournament, oblige myself to comply with them.
  2. Hello ladies and gents! I have a quick question, would it be easy for me, as a person who has messed with lua very limited, just switched some weapons onto other aircraft , to create a lua script with a command like "-admin say stop fighting or a ban for both of you!" to make that text into a text box like a trigger function on the mission editor at the top right of the screen? Or, with the default settings of Slmod, at the top right when you type -admin. You get the gist... And if it's easy enough, can you post the command here? I'll try to do my best and experiment with it, but until then, I'm kind of desperate . Thanks! EDIT: I'll pay a few bucks just to have this command, and to have it private, just for my server . EDIT #2: Quote: local ToggleSayVars = {} ToggleSayVars.menu = SlmodAdminMenu ToggleSayVars.description = 'Say in chat "-admin say" to tell everybody on the server something.' ToggleSayVars.active = true ToggleSayVars.options = {display_mode = 'chat', display_time = 5, privacy = {access = true, show = true}} ToggleSayVars.selCmds = { [1] = { [1] = { type = 'word', text = '-admin', required = true }, [2] = { type = 'word', text = 'say', required = true }, [3] = { type = 'word', text = 'admintext', required = true }. } } local AdminName if client_id == 1 then AdminName = net.get_name(1) elseif slmod.clients[client_id] and slmod.clients[client_id].ucid and Admins[slmod.clients[client_id].ucid] then AdminName = Admins[slmod.clients[client_id].ucid] else AdminName = '!UNKNOWN ADMIN!' -- should NEVER get to this. end if net.is_paused() then net.resume() slmod.scheduleFunctionByRt(slmod.basicChat, {'Slmod: admin "' .. AdminName .. '" said "'admintext'"'}, net.get_real_time() + 0.1) -- scheduled so that reply from Slmod appears after your chat message. end AdminItems[#AdminItems + 1] = SlmodMenuItem.create(ToggleSayVars) -- add the item into the items table. This is in the adminmenu file. What do I need to change here so that it works?... -Prey
  3. Hello ladies and gents! I have a quick question, would it be easy for me, as a person who has messed with lua very limited, just switched some weapons onto other aircraft ;), to create a lua script with a command like "-admin say stop fighting or a ban for both of you!" to make that text into a text box like a trigger function on the mission editor at the top right of the screen? Or, with the default settings of Slmod, at the top right when you type -admin. You get the gist... And if it's easy enough, can you post the command here? I'll try to do my best and experiment with it, but until then, I'm kind of desperate :). Thanks! EDIT: I'll pay a **** bucks just to have this command, and to have it private, just for my server :). EDIT #2: This is in the adminmenu file. What do I need to change here so that it works?... -Prey
  4. One more problem, though... After I shutdown the server and check the config file, it has like automatically reset itself back to its default, unedited state. Any suggestions?
  5. YES! Thank you so much! I had to give the DCS World files all of the permissions :) Thank you so much! :D
  6. Hello, Speed. First off, I want to thank you for taking your time to make this amazing server tool :) However, the reason I am posting this today is because I'm getting an error: [string "slmod.sendData()"]:1: attempt to index global 'slmod' (a nil value) stack traceback: [C]: ? [string "slmod.sendData()"]:1 in main chunk Please help! Thanks! :D
×
×
  • Create New...