Jump to content

hardnick

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by hardnick

  1. How can I get the player name in multiplayer server? When he operates the radio menu (MIST)
  2. 请问在多人伺服器里,当玩家使用F10无线电菜单选择项目时,如何同时获取该玩家的名称呢? 以下是我的测试(MIST),无论如何都是取得伺服器的ID,这可真伤脑筋 local function GetName() PlayerID = net.get_my_player_id( ) PlayerName = net.get_player_info(PlayerID , 'name') net.send_chat(PlayerName, all) end local Menu_Item = {"Menu1"} local SubMenu_Item_1 = {"Function1"} local Function_Menu1 = missionCommands.addSubMenuForCoalition(coalition.side.RED, Menu_Item[1], nil) missionCommands.addCommandForCoalition(coalition.side.RED, SubMenu_Item_1[1], Function_Menu1, GetName, {path={Menu_Item[1], SubMenu_Item_1[1]}}) 使用net.get_player_list( )可以抓到所有玩家列表,但其实我是需要每一次都显示出是哪一位玩家操作了F10无线电选单,感谢帮忙。
  3. Thank you very much for your help I don't understand about missionCommands.addCommandForGroup don't see in this page https://wiki.hoggitworld.com/view/Category:MIST At first I thought I would use the code below to catch the player who triggers the radio menu, but every time I get it it's my own name lol serverID = net.get_server_id( ) serverName = net.get_player_info(serverID , 'name') Anyway, this is really difficult for me, and I really appreciate everyone's help.
  4. Thank you! That's a shame...because so often people come and trick and we want to know who did it.
  5. How do I catch Username when the Players trigger event using the MIST radio menu ? (multiplayer server) Thanks! local function setFlagsRED(v) trigger.action.setUserFlag(v.flag, v.val) missionCommands.removeItemForCoalition(coalition.side.RED, {[1] = v.path[1], [2] = v.path[2]}) end local Menu_Item = {"Menu1","Menu2"} local SubMenu_Item_1 = {"Function1", "Function2", "Function3"} local SubMenu_Item_2 = {"Function1", "Function2"} local Function_Menu1 = missionCommands.addSubMenuForCoalition(coalition.side.RED, Menu_Item[1], nil) local Function_Menu2 = missionCommands.addSubMenuForCoalition(coalition.side.RED, Menu_Item[2], nil) missionCommands.addCommandForCoalition(coalition.side.RED, SubMenu_Item_1[1], Function_Menu1, setFlagsRED, {flag=1, val=true, path={Menu_Item[1], SubMenu_Item_1[1]}}) missionCommands.addCommandForCoalition(coalition.side.RED, SubMenu_Item_1[2], Function_Menu1, setFlagsRED, {flag=2, val=true, path={Menu_Item[1], SubMenu_Item_1[2]}}) missionCommands.addCommandForCoalition(coalition.side.RED, SubMenu_Item_1[3], Function_Menu1, setFlagsRED, {flag=3, val=true, path={Menu_Item[1], SubMenu_Item_1[3]}}) missionCommands.addCommandForCoalition(coalition.side.RED, SubMenu_Item_2[1], Function_Menu2, setFlagsRED, {flag=4, val=true, path={Menu_Item[2], SubMenu_Item_2[1]}}) missionCommands.addCommandForCoalition(coalition.side.RED, SubMenu_Item_2[2], Function_Menu2, setFlagsRED, {flag=5, val=true, path={Menu_Item[2], SubMenu_Item_2[2]}})
  6. Keep waiting for a good solution. thanks!
  7. I also encountered the same problem Don’t know if the problem has improved? thanks
  8. I definitely want to buy it, but I thought I needed to buy two sets of one for the server ^^
  9. Me too, does the server have to buy a Supercarrier? Thanks.
  10. SU34 lost his Perform Task - Bombing (The Spawn after five seconds) Is there a solution? Thank you! MOOSE TEST.miz
  11. 大神!!! 請受小第一拜~~~~ 太感謝您了....差五分鐘我就重灌了.... 果然是因為我在UI Layer裡面有綁定按鍵 這下節省了寶貴的重灌時間 哈哈 謝謝您喔!
  12. 各位好 : 我的thrustmaster hotas warthog搖桿在遊戲進行中某些按鈕會失效 以前蠻正常的 直到最近開始出現問題 使用windows 10控制台裡面的裝置測試 搖桿的每個按鈕都沒問題 (既使在遊戲設定頁面裡面也都正常)唯獨在遊戲進行時失效 就算換了別的飛機 那幾個失效的按鈕一樣是沒有作用 已經拔除搖桿USB重新插入 也換過USB孔來使用 刪除過C:\Users\使用者\Saved Games\DCS.openbeta\Config\Input讓他恢復預設 看起來就像是搖桿沒有問題 而是DCS程式運作有些問題 請問我該怎麼處理呢? 請看影片 https://drive.google.com/file/d/1ssgQCzFfDeSIoESAkZG8TBfkyOxCQYv2/view
  13. I have the same problem and I can't solve the problem if I unplugging and re-plugging the joystick. Video https://drive.google.com/open?id=1ssgQCzFfDeSIoESAkZG8TBfkyOxCQYv2
  14. 您好 我的遊戲設置是仿真(沒有無線電輔助 也不是簡易通訊) 在我製作的JTAC任務中 只要是在空中重生的大黃蜂可以輕易連絡上JTAC (調好頻率133MHz) 但是在地面重生的大黃蜂調整好頻率之後 卻怎麼都無法聯絡上JTAC 就算是起飛到目標上空也是沒有辦法連絡上JTAC 請問這是什麼原因呢? 有點傷腦筋阿~~~ 附上任務檔給您試試 先感謝解答 JTAC.miz
  15. OH~"internal ECM" I understand now, thank you for your help.
  16. Thank you, but their pylons are empty, and the distance is less than 50 kilometers.
  17. Maybe this is a bug.....or what did I miss? MiG-29S TWS2 mode cannot lock enemy aircraft https://drive.google.com/file/d/1B7CNRIqAlRVV1d8aRETLDgNvSOBU8Pnf/view?usp=sharing
  18. 慘了~哈哈 那我不就又亂了..... 因為更新完怪怪的 我就重新設定了 到目前為止 我已經重新設定過3~4次了 Orz
  19. 好像最近DCS更新完之後 我的搖桿設定就會跑掉 還是只有我的電腦這樣呢? 謝謝
  20. Ok~Thank you! I still have a lot to learn about Lua ^^
×
×
  • Create New...