Ahmed Eka Posted September 18, 2016 Share Posted September 18, 2016 سلام عليكم شباب الحين انا مسوي مود لما لاعب يكتب كلمه باف 8 يموت جميع اللاعبين بس انا ابيه يموت الكل الا هذا اللاعب اللي كتب الكلمه وش استخدم ؟ Link to comment
!#NssoR_) Posted September 18, 2016 Share Posted September 18, 2016 تسوي لوب لجميع اللاعبين وتسوي تحقق ان اللاعب الي بالوب غير عن الي كتب الكومند وتقتل الباقي بهالكود killPed 1 Link to comment
#BrosS Posted September 18, 2016 Share Posted September 18, 2016 (edited) addCommandHandler ( "killall", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then killPed ( getRootElement() ) local name = getPlayerName(thePlayer) outputChatBox ( "قام الكونسول بقتل جميع الاعبين ", getRootElement(), 255, 0, 0, true ) end end ) Server. اللي معه رتبة كونسول مايموت . او اذا تبيها بسريال او حساب تقدر تغيرها . Edited September 18, 2016 by #KraTos^_^ Link to comment
#|_oskar_|# Posted September 18, 2016 Share Posted September 18, 2016 Just now, #KraTos^_^ said: addCommandHandler ( "killall", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then killPlayer ( getRootElement() ) local name = getPlayerName(thePlayer) outputChatBox ( "قام الكونسول بقتل جميع الاعبين ", getRootElement(), 255, 0, 0, true ) end end ) Server. اللي معه رتبة كونسول مايموت . او اذا تبيها بسريال او حساب تقدر تغيرها . This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use killPed instead. Link to comment
Ahmed Eka Posted September 18, 2016 Author Share Posted September 18, 2016 12 hours ago, #|_oskar_|# said: This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use killPed instead. بس الكل يموت حتى اليكتب الكلمه .. Link to comment
Ja[B]er[X]Pro Posted September 18, 2016 Share Posted September 18, 2016 (edited) addCommandHandler ( "killall",function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then setElementData(thePlayer,"Nokill",true) for _,p in ipairs(getElementsByType("player")) do if getElementData(p,"Nokill") == false then killPed (p) outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true ) setElementData(thePlayer,"Nokill",false) end end end end ) Edited September 18, 2016 by Ja[B]er[X]Pro Link to comment
!#NssoR_) Posted September 18, 2016 Share Posted September 18, 2016 ^ ليش تستعمل الداتا ؟ مع انك تقدر تسويها بدون داتا او اي شي مثال : for _,p in ipairs(getElementsByType("player")) do if ( p ~= thePlayer ) then killPed (p) outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true ) end end 2 Link to comment
N3xT Posted September 19, 2016 Share Posted September 19, 2016 local group = "Console" addCommandHandler ( "killall", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( group ) ) then for _,p in ipairs(getElementsByType("player")) do if ( p ~= thePlayer ) then killPed (p) outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true ) end end end end ) 1 Link to comment
Ja[B]er[X]Pro Posted September 19, 2016 Share Posted September 19, 2016 17 hours ago, NssoR said: ^ ليش تستعمل الداتا ؟ مع انك تقدر تسويها بدون داتا او اي شي مثال : for _,p in ipairs(getElementsByType("player")) do if ( p ~= thePlayer ) then killPed (p) outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true ) end end مشكور على المعلومة الجديدة ما كنت اعرف بأن هذه الطريقة تشتغل Link to comment
!#NssoR_) Posted September 19, 2016 Share Posted September 19, 2016 3 hours ago, Jaer[X]Pro said: مشكور على المعلومة الجديدة ما كنت اعرف بأن هذه الطريقة تشتغل 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