mohamed hussein Posted April 13, 2017 Share Posted April 13, 2017 شباب كيف اسوي مود الافك في تاب يعني كيف اخلي لما حد يعمل /afk او يدوس على ال hud اللي انا عاملها يظهر للكل في tab ان الشخص ده افك يظهر جمب اسمو AFK Link to comment
#BrosS Posted April 13, 2017 Share Posted April 13, 2017 (edited) addCommandHandler setElementData حط ل Tab الداتا اللي حطيتها بعد الاكسبورت .... Edited April 13, 2017 by #BrosS Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 انا عاوز اصلا الاكسبورت لأني ما اعرف استخدمه Link to comment
AHMED MOSTAFA Posted April 13, 2017 Share Posted April 13, 2017 11 hours ago, Jack Tom said: شباب كيف اسوي مود الافك في تاب يعني كيف اخلي لما حد يعمل /afk او يدوس على ال hud اللي انا عاملها يظهر للكل في tab ان الشخص ده افك يظهر جمب اسمو AFK ما جربته .. سويته عالسريع ذذ exports.scoreboard:addScoreboardColumn( 'AFK' ) function killerProjectScoreboard ( ) for _, v in pairs( getElementsByType( "player" ) ) do if getElementData ( v,"AFKstats" ) == "AFK" then setElementData( v, "AFK" , "AFK" ) elseif getElementData ( v,"AFKstats" ) == "notAFK" then setElementData( v, "AFK" , "" ) end end end addEventHandler("onElementDataChange",root, killerProjectScoreboard ) function killerProjectAFKstats ( player ) if getElementData ( player,"AFKstats" ) == "AFK" then setElementData ( player,"AFKstats","notAFK" ) elseif getElementData ( player,"AFKstats" ) == "notAFK" then setElementData ( player,"AFKstats","AFK" ) end end addCommandHandler ( "AFK", killerProjectAFKstats ) addCommandHandler ( "afk", killerProjectAFKstats ) Link to comment
Adham Posted April 13, 2017 Share Posted April 13, 2017 exports.scoreboard:addScoreboardColumn عشان تضيف كلومن جديد في السكوري بورد " التاب " و تسوي اذا الاعب واقف م يتحرك تسوي له داتا واذا اتحرك تشيل الداتا منه . Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 (edited) يعني ده مود لوحدو و لا اضيفه على الاكواد بتاعت ال afk بتاعتي ولا احطه لوحدو في ملف client واعمله meta? @Killer Project Edited April 13, 2017 by Jack Tom Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 7 minutes ago, Killer Project said: ما جربته .. سويته عالسريع ذذ exports.scoreboard:addScoreboardColumn( 'AFK' ) function killerProjectScoreboard ( ) for _, v in pairs( getElementsByType( "player" ) ) do if getElementData ( v,"AFKstats" ) == "AFK" then setElementData( v, "AFK" , "AFK" ) elseif getElementData ( v,"AFKstats" ) == "notAFK" then setElementData( v, "AFK" , "" ) end end end addEventHandler("onElementDataChange",root, killerProjectScoreboard ) function killerProjectAFKstats ( player ) if getElementData ( player,"AFKstats" ) == "AFK" then setElementData ( player,"AFKstats","notAFK" ) elseif getElementData ( player,"AFKstats" ) == "notAFK" then setElementData ( player,"AFKstats","AFK" ) end end addCommandHandler ( "AFK", killerProjectAFKstats ) addCommandHandler ( "afk", killerProjectAFKstats ) wrong n't right Link to comment
Adham Posted April 13, 2017 Share Posted April 13, 2017 شف ذا المثال كمل عليه : addCommandHandler ( "AFK", function ( player ) setElementInterior ( player, 0, x, y, z ) -- المكان التبيه يروح له setElementFrozen ( player, true ) outputChatBox ( "تم نقلك للافك", player, 255,255,255,true ) else setElementInterior ( player, 0, x, y, z ) -- جط x,y,z للمكان التبيه يرجع له لين يكتب افك مرأ اخرا setElementFrozen ( player, false ) outputChatBox ( "تم نقلك للعالم العادي", player, 255,255,255,true ) end end ) Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 Just now, Deativated said: شف ذا المثال كمل عليه : addCommandHandler ( "AFK", function ( player ) setElementInterior ( player, 0, x, y, z ) -- المكان التبيه يروح له setElementFrozen ( player, true ) outputChatBox ( "تم نقلك للافك", player, 255,255,255,true ) else setElementInterior ( player, 0, x, y, z ) -- جط x,y,z للمكان التبيه يرجع له لين يكتب افك مرأ اخرا setElementFrozen ( player, false ) outputChatBox ( "تم نقلك للعالم العادي", player, 255,255,255,true ) end end ) حبي ما اقدر اسوي هذا لاني في رول بلاي ما اقدر اخليه يروح لمكان الافك انا زبطله مود انو يظهر فوقيه علامة afk و يتغير لون اسمو و ما يقدر يتحرك فاضل بس كيف اربطها بالحالة في تاب @Deativated Link to comment
Adham Posted April 13, 2017 Share Posted April 13, 2017 Just now, Jack Tom said: حبي ما اقدر اسوي هذا لاني في رول بلاي ما اقدر اخليه يروح لمكان الافك انا زبطله مود انو يظهر فوقيه علامة afk و يتغير لون اسمو و ما يقدر يتحرك فاضل بس كيف اربطها بالحالة في تاب @Deativated قصدك الكان مثل في طارة القديم ؟ Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 Just now, Deativated said: قصدك الكان مثل في طارة القديم ؟ ما شفت اللي كان في طاره بس هو انت تدوس على ايقونة تقلب لون اسمك و تخليك ثابت في ماكنك و يظهرلك شارة انك afk بس فاضلي اربطة ب tab Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 2 minutes ago, Jack Tom said: حبي ما اقدر اسوي هذا لاني في رول بلاي ما اقدر اخليه يروح لمكان الافك انا زبطله مود انو يظهر فوقيه علامة afk و يتغير لون اسمو و ما يقدر يتحرك فاضل بس كيف اربطها بالحالة في تاب @Deativated سويتها بالداتا ولا بوشو؟ Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 Just now, Master_MTA said: سويتها بالداتا ولا بوشو؟ بمود لوحدو في سيرفرات الرول بلاي Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 (edited) Just now, Jack Tom said: بمود لوحدو في سيرفرات الرول بلاي وانا كيف اعرف ؟ روح شيك على المود حق الافك شف مسويها بالداتا في f8 ولا واللاعب موقف ولا وشو Edited April 13, 2017 by Master_MTA Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 14 minutes ago, Killer Project said: ما جربته .. سويته عالسريع ذذ exports.scoreboard:addScoreboardColumn( 'AFK' ) function killerProjectScoreboard ( ) for _, v in pairs( getElementsByType( "player" ) ) do if getElementData ( v,"AFKstats" ) == "AFK" then setElementData( v, "AFK" , "AFK" ) elseif getElementData ( v,"AFKstats" ) == "notAFK" then setElementData( v, "AFK" , "" ) end end end addEventHandler("onElementDataChange",root, killerProjectScoreboard ) function killerProjectAFKstats ( player ) if getElementData ( player,"AFKstats" ) == "AFK" then setElementData ( player,"AFKstats","notAFK" ) elseif getElementData ( player,"AFKstats" ) == "notAFK" then setElementData ( player,"AFKstats","AFK" ) end end addCommandHandler ( "AFK", killerProjectAFKstats ) addCommandHandler ( "afk", killerProjectAFKstats ) انا عاوز اعرف الاكسبورت هو ده قربت قوي بس قلي اعملو في مود لوحدة ؟@Killer Project Just now, Master_MTA said: وانا كيف اعرف ؟ روح شيك على المود حق الافك شف مسويها بالداتا ولا command في f8 addEventHandler("onPlayerJoin",getRootElement(), function () setElementData(source,"afk_state","back") setElementData(source,"HideState","disabled") end) addEventHandler( "onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") end end) addCommandHandler("afk", function (thePlayer) if getElementData(thePlayer,"afk_state") == "back" then triggerClientEvent(thePlayer,"god_mode",thePlayer) setPedFrozen(thePlayer,true) setPlayerNametagText (thePlayer, "|AFK|" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is AFK!",getRootElement(),255,50,0) setElementData(thePlayer,"afk_state","afk") if getPedOccupiedVehicle(thePlayer) then fixVehicle(getPedOccupiedVehicle(thePlayer),true) setVehicleFrozen(getPedOccupiedVehicle(thePlayer),true) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),true) end elseif getElementData(thePlayer,"afk_state") == "afk" then setElementData(thePlayer,"afk_state","back") triggerClientEvent(thePlayer,"disable_god_mode",thePlayer) setPedFrozen(thePlayer,false) setPlayerNametagText (thePlayer, "" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is back!",getRootElement(),0,255,0) if getPedOccupiedVehicle(thePlayer) then setVehicleFrozen(getPedOccupiedVehicle(thePlayer),false) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),false) end end end) اهو المود Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 exports.scoreboard:addScoreboardColumn( 'afk_state' ) addEventHandler("onPlayerJoin",getRootElement(), function () setElementData(source,"afk_state","back") setElementData(source,"HideState","disabled") end) addEventHandler( "onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") end end) addCommandHandler("afk", function (thePlayer) if getElementData(thePlayer,"afk_state") == "back" then triggerClientEvent(thePlayer,"god_mode",thePlayer) setPedFrozen(thePlayer,true) setPlayerNametagText (thePlayer, "|AFK|" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is AFK!",getRootElement(),255,50,0) setElementData(thePlayer,"afk_state","afk") if getPedOccupiedVehicle(thePlayer) then fixVehicle(getPedOccupiedVehicle(thePlayer),true) setVehicleFrozen(getPedOccupiedVehicle(thePlayer),true) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),true) end elseif getElementData(thePlayer,"afk_state") == "afk" then setElementData(thePlayer,"afk_state","back") triggerClientEvent(thePlayer,"disable_god_mode",thePlayer) setPedFrozen(thePlayer,false) setPlayerNametagText (thePlayer, "" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is back!",getRootElement(),0,255,0) if getPedOccupiedVehicle(thePlayer) then setVehicleFrozen(getPedOccupiedVehicle(thePlayer),false) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),false) end end end) جرب لاني ما جربت Link to comment
AHMED MOSTAFA Posted April 13, 2017 Share Posted April 13, 2017 @Jack Tom سوي ملف جديد سيرفر وميتا وضيف ذا بملف السيرفر -- server exports.scoreboard:addScoreboardColumn( 'AFK' ) function killerProjectScoreboard ( ) for _, v in pairs( getElementsByType( "player" ) ) do if getElementData ( v,"AFKstats" ) == "AFK" then setElementData( v, "AFK" , "AFK" ) elseif getElementData ( v,"AFKstats" ) == "notAFK" then setElementData( v, "AFK" , "" ) end end end addEventHandler("onElementDataChange",root, killerProjectScoreboard ) for _, v in pairs( getElementsByType( "player" ) ) do setElementData( v, "AFKstats" , "notAFK" ) end function killerProjectAFKstats ( player ) if getElementData ( player,"AFKstats" ) == "AFK" then setElementData ( player,"AFKstats","notAFK" ) outputChatBox ( "you are now not afk", player ) elseif getElementData ( player,"AFKstats" ) == "notAFK" then setElementData ( player,"AFKstats","AFK" ) outputChatBox ( "you are now afk", player ) end end addCommandHandler ( "AFK", killerProjectAFKstats ) addCommandHandler ( "afk", killerProjectAFKstats ) @#BrosS sorry bross Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 7 minutes ago, Jack Tom said: انا عاوز اعرف الاكسبورت هو ده قربت قوي بس قلي اعملو في مود لوحدة ؟@Killer Project addEventHandler("onPlayerJoin",getRootElement(), function () setElementData(source,"afk_state","back") setElementData(source,"HideState","disabled") end) addEventHandler( "onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") end end) addCommandHandler("afk", function (thePlayer) if getElementData(thePlayer,"afk_state") == "back" then triggerClientEvent(thePlayer,"god_mode",thePlayer) setPedFrozen(thePlayer,true) setPlayerNametagText (thePlayer, "|AFK|" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is AFK!",getRootElement(),255,50,0) setElementData(thePlayer,"afk_state","afk") if getPedOccupiedVehicle(thePlayer) then fixVehicle(getPedOccupiedVehicle(thePlayer),true) setVehicleFrozen(getPedOccupiedVehicle(thePlayer),true) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),true) end elseif getElementData(thePlayer,"afk_state") == "afk" then setElementData(thePlayer,"afk_state","back") triggerClientEvent(thePlayer,"disable_god_mode",thePlayer) setPedFrozen(thePlayer,false) setPlayerNametagText (thePlayer, "" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is back!",getRootElement(),0,255,0) if getPedOccupiedVehicle(thePlayer) then setVehicleFrozen(getPedOccupiedVehicle(thePlayer),false) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),false) end end end) اهو المود 1 minute ago, Killer Project said: @Jack Tom سوي ملف جديد سيرفر وميتا وضيف ذا بملف السيرفر -- server exports.scoreboard:addScoreboardColumn( 'AFK' ) function killerProjectScoreboard ( ) for _, v in pairs( getElementsByType( "player" ) ) do if getElementData ( v,"AFKstats" ) == "AFK" then setElementData( v, "AFK" , "AFK" ) elseif getElementData ( v,"AFKstats" ) == "notAFK" then setElementData( v, "AFK" , "" ) end end end addEventHandler("onElementDataChange",root, killerProjectScoreboard ) for _, v in pairs( getElementsByType( "player" ) ) do setElementData( v, "AFKstats" , "notAFK" ) end function killerProjectAFKstats ( player ) if getElementData ( player,"AFKstats" ) == "AFK" then setElementData ( player,"AFKstats","notAFK" ) outputChatBox ( "you are now not afk", player ) elseif getElementData ( player,"AFKstats" ) == "notAFK" then setElementData ( player,"AFKstats","AFK" ) outputChatBox ( "you are now afk", player ) end end addCommandHandler ( "AFK", killerProjectAFKstats ) addCommandHandler ( "afk", killerProjectAFKstats ) @#BrosS sorry bross why loop? Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 مشكوووور كلكو يا شباب 1 Link to comment
AHMED MOSTAFA Posted April 13, 2017 Share Posted April 13, 2017 9 hours ago, Master_MTA said: why loop? كيف هتحط قدام كل واحد الداتا بتعته !! Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 4 minutes ago, Killer Project said: كيف هتحط قدام كل واحد الداتا بتعته !! راجع الايفينت 5 minutes ago, Jack Tom said: مشكوووور كلكو يا شباب العفو بالتوفيق 1 Link to comment
AHMED MOSTAFA Posted April 13, 2017 Share Posted April 13, 2017 9 hours ago, Master_MTA said: راجع الايفينت العفو بالتوفيق مش هتفرق المهم انها شغالة 1 Link to comment
Master_MTA Posted April 13, 2017 Share Posted April 13, 2017 Just now, Killer Project said: مش هتفرق المهم انها شغالة +_+ Link to comment
mohamed hussein Posted April 13, 2017 Author Share Posted April 13, 2017 شباب ولا مود اشتغل --__-- 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