GRispro Posted September 2, 2015 Share Posted September 2, 2015 Hello everybody.My name is GRispro and I'd like to ask you If there is someone who can help me about something I want to make.Well it is a script(resource) which can change country flag in scoreboard.It is connected with the ACL and oonly from there or via a command you can change your flag.Ex My country is GR but I wanna change it without using VPN so with this script,I open ACL choose the country I want (ex Trinidad & Tobago (TT)) and then the scoreboeard show that I am from TT.The thing is that I dont know very good lua scripting yet.Is there anyone who can help me?Please help me Best regards, GRispro. Link to comment
JR10 Posted September 3, 2015 Share Posted September 3, 2015 The default scoreboard doesn't support flags. Yours must be edited. So how can we help you if we don't know what you're using to get someone's country? The admin panel maybe? Link to comment
GRispro Posted September 8, 2015 Author Share Posted September 8, 2015 yes from admin panel.There are some scoreboards which read the country of admin Link to comment
GRispro Posted September 15, 2015 Author Share Posted September 15, 2015 Can you help me guys?anyone? Link to comment
John Smith Posted September 15, 2015 Share Posted September 15, 2015 Usually doing something like setElementData(localPlayer,"Country","US") changes ur country, just change localPlayer to element/player that you want to apply country to Link to comment
GRispro Posted September 15, 2015 Author Share Posted September 15, 2015 Am I writing this in notepad and save it as Lua script?And add a meta.xml or I type it in f8(console)?Show me an example if you can. Link to comment
JR10 Posted September 15, 2015 Share Posted September 15, 2015 Make a command that changes the country to whatever you want. addCommandHandler('country', function(player, _, country) if (not country) then return end setElementData(player, 'Country', country) end) Link to comment
GRispro Posted September 17, 2015 Author Share Posted September 17, 2015 How to make a command?Please excuse me but as I said I don't know lua scripting so I paste that code in notepad and save it as Lua file(client or server?) do I have to connect this Lua file with meta.xml?Or none of them? Link to comment
JR10 Posted September 18, 2015 Share Posted September 18, 2015 You always have to specify which files to load in the meta.xml file. The code I posted is server-side. Link to comment
Recommended Posts