Admigo Posted December 11, 2011 Posted December 11, 2011 Heey all, I saw that you can add flags from your country in dxscoreboard. But i dont know how. Can anyone give me the code pls? Thanks Admigo
12p Posted December 11, 2011 Posted December 11, 2011 No. Nobody will. Learn how to script or pay money to someone for doing it. Simple as pie.
Admigo Posted December 11, 2011 Author Posted December 11, 2011 No. Nobody will.Learn how to script or pay money to someone for doing it. Simple as pie. Ooh okay,I will look what i can do:(
12p Posted December 11, 2011 Posted December 11, 2011 I must say: Thank you for understanding the point. Good luck!
Blaawee Posted December 11, 2011 Posted December 11, 2011 yeah it's Server Side : exports.scoreboard:addScoreboardColumn('Country') -- add a column called ('Country') function showFlag () local Home = call(getResourceFromName("admin"), "getPlayerCountry", source) -- then we get the country name from the admin panel setElementData(source,"Country",Home) -- then exported to the column end addEventHandler("onPlayerJoin",getRootElement(),showFlag)
Otto Posted December 11, 2011 Posted December 11, 2011 yeah it's Server Side : exports.scoreboard:addScoreboardColumn('Country') -- add a column called ('Country') function showFlag () local Home = call(getResourceFromName("admin"), "getPlayerCountry", source) -- then we get the country name from the admin panel setElementData(source,"Country",Home) -- then exported to the column end addEventHandler("onPlayerJoin",getRootElement(),showFlag) Benx said, "NOBODY WILL".
Jaysds1 Posted December 11, 2011 Posted December 11, 2011 well, he did... people have option to help or give, Ben said that "Nobody Will" because really no one would give out a code/script for free, but people like me and him would help.
SnoopCat Posted December 12, 2011 Posted December 12, 2011 but maybe he dont want that maybe he wants the image of the country , that script u gives is so simple as look in game comunity resource as countryid....
Admigo Posted December 12, 2011 Author Posted December 12, 2011 yeah it's Server Side : exports.scoreboard:addScoreboardColumn('Country') -- add a column called ('Country') function showFlag () local Home = call(getResourceFromName("admin"), "getPlayerCountry", source) -- then we get the country name from the admin panel setElementData(source,"Country",Home) -- then exported to the column end addEventHandler("onPlayerJoin",getRootElement(),showFlag) Thanks Dude,but its not working,Its adding a country collum buy when i login or not logged in nothings shows in the collum.
Blaawee Posted December 12, 2011 Posted December 12, 2011 try to download the last admin panel , and try reconnect
Admigo Posted December 12, 2011 Author Posted December 12, 2011 try to download the last admin panel , and try reconnect Link pls. I cant find it in resources.
NotAvailable Posted December 12, 2011 Posted December 12, 2011 try to download the last admin panel , and try reconnect Link pls. I cant find it in resources. nightly.multitheftauto.com (Without www. infront)
AGENT_STEELMEAT Posted December 12, 2011 Posted December 12, 2011 Use the admin resource to return the player's country code, and store it as element data to the player. Then, clientside (on all clients), draw the players country next to his/her name in the scoreboard. To do this, you need to copy over all the flags from the admin resource to the dxscoreboard resource, set up tables to determine which flag to use / the actual name of the country, and modify the rendering code of the scoreboard to draw the actual flag. Simple as that.
Admigo Posted December 12, 2011 Author Posted December 12, 2011 Use the admin resource to return the player's country code, and store it as element data to the player. Then, clientside (on all clients), draw the players country next to his/her name in the scoreboard. To do this, you need to copy over all the flags from the admin resource to the dxscoreboard resource, set up tables to determine which flag to use / the actual name of the country, and modify the rendering code of the scoreboard to draw the actual flag.Simple as that. U call it simple:P I am so noob in scripting mta.
AGENT_STEELMEAT Posted December 12, 2011 Posted December 12, 2011 Then perhaps you should pick something else to work on...
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