MrXz Posted January 7, 2012 Share Posted January 7, 2012 (edited) Please, could help me find a script or a resouce which can take the flag in the scoreboard of each country (show_country Resouce). They are would greatly appreciate. AD: Sorry for my Bad English Edited January 7, 2012 by Guest Link to comment
Castillo Posted January 7, 2012 Share Posted January 7, 2012 There are many anti AFK resources in the MTA community, you should search before ask. https://community.multitheftauto.com/index.php?p= ... ls&id=1069 https://community.multitheftauto.com/index.php?p= ... ls&id=3114 Link to comment
MrXz Posted January 7, 2012 Author Share Posted January 7, 2012 (edited) What I seek is AFK detector that in passing a given time, the server kicked you and the script of the flag of every country in the scoreboad Edited January 7, 2012 by Guest Link to comment
12p Posted January 7, 2012 Share Posted January 7, 2012 Test them before posting anything else. Link to comment
MrXz Posted January 7, 2012 Author Share Posted January 7, 2012 This image is from countries with a flag on the scoreboard, that's what I'm looking Link to comment
12p Posted January 7, 2012 Share Posted January 7, 2012 Use "admin" source code to figure out how to do it. Tip: getPlayerCountry + get the flags icons. Link to comment
MrXz Posted January 7, 2012 Author Share Posted January 7, 2012 I want a full script, plus I already try and it did not work Link to comment
Castillo Posted January 7, 2012 Share Posted January 7, 2012 We don't give out scripts like that, we help you to seek/fix errors in your scripts. Link to comment
MrXz Posted January 7, 2012 Author Share Posted January 7, 2012 exports.scoreboard:addScoreboardColumn('Country') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) I made this script does not detect the country and not detect the flag Link to comment
Castillo Posted January 7, 2012 Share Posted January 7, 2012 To show the country flag in the scoreboard you must the scoreboard himself, right now it just draw's texts. Link to comment
Blaawee Posted January 7, 2012 Share Posted January 7, 2012 (edited) EDIT : mybe this will help you Orange : we don't need your crap useless post's help or shut up and don't spam ----flag.lua exports.scoreboard:addScoreboardColumn('Home') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) <meta> <script src="flag.lua" type="server" /> </meta> add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent) elseif column.name == "Pic" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) Edited January 7, 2012 by Guest Link to comment
JR10 Posted January 7, 2012 Share Posted January 7, 2012 He already copied that script and edited the name of the column. You need to edit the scoreboard resource, so it draws image instead of text. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now