Admigo Posted December 11, 2011 Share 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 Link to comment
12p Posted December 11, 2011 Share Posted December 11, 2011 No. Nobody will. Learn how to script or pay money to someone for doing it. Simple as pie. Link to comment
Admigo Posted December 11, 2011 Author Share 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:( Link to comment
12p Posted December 11, 2011 Share Posted December 11, 2011 I must say: Thank you for understanding the point. Good luck! Link to comment
Otto Posted December 11, 2011 Share Posted December 11, 2011 Simple as pie. IS PIE SIMPLE? Link to comment
Blaawee Posted December 11, 2011 Share 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) Link to comment
Otto Posted December 11, 2011 Share 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". Link to comment
Jaysds1 Posted December 11, 2011 Share 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. Link to comment
AGENT_STEELMEAT Posted December 12, 2011 Share Posted December 12, 2011 IS PIE SIMPLE? Link to comment
SnoopCat Posted December 12, 2011 Share 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.... Link to comment
Admigo Posted December 12, 2011 Author Share 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. Link to comment
Blaawee Posted December 12, 2011 Share Posted December 12, 2011 try to download the last admin panel , and try reconnect Link to comment
Admigo Posted December 12, 2011 Author Share Posted December 12, 2011 try to download the last admin panel , and try reconnect Link pls. I cant find it in resources. Link to comment
NotAvailable Posted December 12, 2011 Share 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) Link to comment
CapY Posted December 12, 2011 Share Posted December 12, 2011 Maybe add a resource to Admin acl. Link to comment
AGENT_STEELMEAT Posted December 12, 2011 Share 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. Link to comment
Admigo Posted December 12, 2011 Author Share 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. Link to comment
AGENT_STEELMEAT Posted December 12, 2011 Share Posted December 12, 2011 Then perhaps you should pick something else to work on... 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