iyaad Posted August 20, 2017 Share 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 ); مود توب حق تكتيك ما يخرج لما يموت التيم الأخر وش المشكلة ارجوالرد Link to comment
Scripting Moderators xLive Posted August 20, 2017 Scripting Moderators Share Posted August 20, 2017 وش تبي تسوي بالضبط؟ Link to comment
iyaad Posted August 20, 2017 Author Share Posted August 20, 2017 3 minutes ago, xNawaf said: وش تبي تسوي بالضبط؟ ابي انو أول ما يخلص القيم ( الماتج ) من جمب الشاشة للأفضل 5 لاعبين هو جهاز وكل شي يطلع بس المشكلة وقت خروجو ابيه يطلع لما تخلص الجولة ممكن تصحيح الكود Link to comment
Scripting Moderators xLive Posted August 20, 2017 Scripting Moderators Share Posted August 20, 2017 تقدر تستعمل حدث التكتيك لمن الماب يخلص addEventHandler ("onRoundFinish") Link to comment
AHMED MOSTAFA Posted August 20, 2017 Share 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 يوزفل فنكشن هل انت مستعمل السورس كود حقها ؟ Link to comment
iyaad Posted August 20, 2017 Author Share 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 شوف Link to comment
Scripting Moderators xLive Posted August 20, 2017 Scripting Moderators Share Posted August 20, 2017 جرب ذا الكود وكلمني addEventHandler ("onRoundFinish",root, function () ... -- والأكواد حقتك end ) م يحتاج تسوي تحقق انه التيم مفيه احد حي , الحدث يوم ينتهي الماب 1 Link to comment
AHMED MOSTAFA Posted August 20, 2017 Share 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 Link to comment
iyaad Posted August 24 Author Share Posted August 24 On 21/08/2017 at 00:49, xLive said: جرب ذا الكود وكلمني addEventHandler ("onRoundFinish",root, function () ... -- والأكواد حقتك end ) م يحتاج تسوي تحقق انه التيم مفيه احد حي , الحدث يوم ينتهي الماب أشكرك زبط @xLive Link to comment
Scripting Moderators xLive Posted August 26 Scripting Moderators Share Posted August 26 On 25/08/2024 at 01:54, iyaad said: أشكرك زبط @xLive عفوا 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