sawser Posted November 21, 2017 Share Posted November 21, 2017 السلام عليكم و رحمه الله بحاول اعمل مود افك في لوحه تاب يعني لما اللاعب يصغر اللعبه onClientMinimize يظهر في لوحه تاب afk عند اسمه انا اول مره احاول اصنع مود و فكرت في هاد المود على اساس انه سهل بس طلع صعب ههه المهم بحط لكم الاكواد و شوفو لي وين المشكله و جزاكم الله كل خير server side function afk(thePlayer) setElementData ( player, "afk", "afk" ) end end addEvent( "gowno", true ) addEventHandler( "gowno", root, afk ) addEventHandler('onResourceStart', g_ResRoot, function() outputDebugString('afk') addRaceScoreboardColumns() end ) function addafkScoreboardColumns() exports.scoreboard:addScoreboardColumn("afk") end client side function handleMinimize() triggerServerEvent ( "gowno", root, localPlayer ) end addEventHandler( "onClientMinimize", root, handleMinimize ) meta <meta> <info author="sawser_charkass" description="afk_system" version="1.1" type="script" /> <include resource="scoreboard" /> <script src="afk_c.lua" type="client"/> <script src="afk_s.lua" type="server"/> </meta> Link to comment
DaHoM Posted November 24, 2017 Share Posted November 24, 2017 function afk(thePlayer) setElementData ( thePlayer, "afk", "afk" ) end addEvent( "gowno", true ) addEventHandler( "gowno", root, afk ) function Tag8() outputDebugString('afk') addRaceScoreboardColumns() end addEventHandler('onResourceStart', getRootElement(), Tag8) function addafkScoreboardColumns() exports.scoreboard:addScoreboardColumn("afk") end Link to comment
iyaad Posted November 24, 2017 Share Posted November 24, 2017 (edited) On 11/21/2017 at 17:46, sawser said: <script src="afk_c.lua" type="client"/> <script src="afk_s.lua" type="server"/> لازم في مسطره اخر كل واحدها بعدها سلاش <script src="afk_c.lua" type="client" /> <script src="afk_s.lua" type="server" /> <!-- حط مسافة اخر كل تاج ايند تاج <tag></tag> او <tag /> --> Edited November 24, 2017 by iyaad Link to comment
sawser Posted November 26, 2017 Author Share Posted November 26, 2017 On ٢٤/١١/٢٠١٧ at 16:33, DaHoM said: function afk(thePlayer) setElementData ( thePlayer, "afk", "afk" ) end addEvent( "gowno", true ) addEventHandler( "gowno", root, afk ) function Tag8() outputDebugString('afk') addRaceScoreboardColumns() end addEventHandler('onResourceStart', getRootElement(), Tag8) function addafkScoreboardColumns() exports.scoreboard:addScoreboardColumn("afk") end عملت هيك بس ما اشتغل لازم اضيف شي لل scoreboard ؟ Link to comment
Master_MTA Posted November 26, 2017 Share Posted November 26, 2017 2 hours ago, sawser said: عملت هيك بس ما اشتغل addRaceScoreboardColumns() مش اكسبورت ذي؟ Link to comment
sawser Posted November 26, 2017 Author Share Posted November 26, 2017 42 minutes ago, Master_MTA said: addRaceScoreboardColumns() مش اكسبورت ذي؟ ذي مشان تضيف مكان في سكور بورد زي id -- player name--hours played--ping بالصوره https://c.top4top.net/p_695hmtjg1.png Link to comment
Master_MTA Posted November 26, 2017 Share Posted November 26, 2017 11 minutes ago, sawser said: ذي مشان تضيف مكان في سكور بورد زي id -- player name--hours played--ping بالصوره طيب المفروض تسوي ذي كذا exports.scoreboard:addRaceScoreboardColumns() Link to comment
sawser Posted December 5, 2017 Author Share Posted December 5, 2017 On ٢٦/١١/٢٠١٧ at 20:28, Master_MTA said: طيب المفروض تسوي ذي كذا exports.scoreboard:addRaceScoreboardColumns() ERROR: afk/afk_s.lua:11: call failed to call 'scoreboard:addscoreboardcolumns'[string"?"] يعطيني هاي المشكله في debugscript 3 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