iyaad Posted August 20, 2017 Posted August 20, 2017 addEventHandler("onPlayerWasted", root, function(_, killer) local Team = getPlayerTeam ( killer ) local count = #getAlivePlayersInTeam(Team) or 0 if count == 0 then test1() end end ); مود توب حق تكتيك ما يخرج لما يموت التيم الأخر وش المشكلة ارجوالرد
Scripting Moderators xLive Posted August 20, 2017 Scripting Moderators Posted August 20, 2017 وش تبي تسوي بالضبط؟
iyaad Posted August 20, 2017 Author Posted August 20, 2017 3 minutes ago, xNawaf said: وش تبي تسوي بالضبط؟ ابي انو أول ما يخلص القيم ( الماتج ) من جمب الشاشة للأفضل 5 لاعبين هو جهاز وكل شي يطلع بس المشكلة وقت خروجو ابيه يطلع لما تخلص الجولة ممكن تصحيح الكود
Scripting Moderators xLive Posted August 20, 2017 Scripting Moderators Posted August 20, 2017 تقدر تستعمل حدث التكتيك لمن الماب يخلص addEventHandler ("onRoundFinish")
AHMED MOSTAFA Posted August 20, 2017 Posted August 20, 2017 Just now, iyaad said: addEventHandler("onPlayerWasted", root, function(_, killer) local Team = getPlayerTeam ( killer ) local count = #getAlivePlayersInTeam(Team) or 0 if count == 0 then test1() end end ); مود توب حق تكتيك ما يخرج لما يموت التيم الأخر وش المشكلة ارجوالرد getAlivePlayersInTeam يوزفل فنكشن هل انت مستعمل السورس كود حقها ؟
iyaad Posted August 20, 2017 Author Posted August 20, 2017 Just now, killerProject said: getAlivePlayersInTeam يوزفل فنكشن هل انت مستعمل السورس كود حقها ؟ يب حاط function getAlivePlayersInTeam(theTeam) local theTable = { } local players = getPlayersInTeam(theTeam) for i,v in pairs(players) do if not isPedDead(v) then theTable[#theTable+1]=v end end return theTable end شوف
Scripting Moderators xLive Posted August 20, 2017 Scripting Moderators Posted August 20, 2017 جرب ذا الكود وكلمني addEventHandler ("onRoundFinish",root, function () ... -- والأكواد حقتك end ) م يحتاج تسوي تحقق انه التيم مفيه احد حي , الحدث يوم ينتهي الماب 1
AHMED MOSTAFA Posted August 20, 2017 Posted August 20, 2017 (edited) Just now, iyaad said: يب حاط function getAlivePlayersInTeam(theTeam) local theTable = { } local players = getPlayersInTeam(theTeam) for i,v in pairs(players) do if not isPedDead(v) then theTable[#theTable+1]=v end end return theTable end شوف -- جرب ذذ function wasted (_, killer) setPlayerTeam ( source , getTeamFromName ( "team2" ) or createTeam ( "team2", 255, 255, 255 ) ) local count = #getAlivePlayersInTeam ( getPlayerTeam ( source ) ) or 0 if count == 0 then test1() end end addEventHandler("onPlayerWasted", root, wasted ) Edited August 20, 2017 by killerProject
iyaad Posted August 24, 2024 Author Posted August 24, 2024 On 21/08/2017 at 00:49, xLive said: جرب ذا الكود وكلمني addEventHandler ("onRoundFinish",root, function () ... -- والأكواد حقتك end ) م يحتاج تسوي تحقق انه التيم مفيه احد حي , الحدث يوم ينتهي الماب أشكرك زبط @xLive
Scripting Moderators xLive Posted August 26, 2024 Scripting Moderators Posted August 26, 2024 On 25/08/2024 at 01:54, iyaad said: أشكرك زبط @xLive عفوا
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