KILER-XD Posted May 8, 2014 Share Posted May 8, 2014 السلام عليكم شباب ابي كود برمجه السلاب يعني اسوي منطقه معينه والي يخش فيها يديه تحذير انه يخرج منها وله 15 ثانيه مثلا ولو ماخرج ينصك سلاب لو لوكان في تيم وقروب معين انا احدده اتمنى الرد في اسرع وقت Link to comment
KILER-XD Posted May 8, 2014 Author Share Posted May 8, 2014 السلام عليكم شباب ابي كود برمجه السلاب يعني اسوي منطقه معينه والي يخش فيها يديه تحذير انه يخرج منها وله 15 ثانيه مثلا ولو ماخرج ينصك سلاب لو لوكان في تيم وقروب معين انا احدده اتمنى الرد في اسرع وقت يعني الكل اذا دخل المنطقه ينصك الا قروب وتيم معين انا احدده Link to comment
The Killer Posted May 8, 2014 Share Posted May 8, 2014 تقدر تستخدم الكول شيب Event # 'onColShapeHit' function # createColCuboid -- for the area getPlayerTeam getTeamName table -- for the timer isTimer killTimer setTimer killPed Link to comment
KILER-XD Posted May 8, 2014 Author Share Posted May 8, 2014 لو سمحت ابي واحد جاهز ممكن Link to comment
KILER-XD Posted May 8, 2014 Author Share Posted May 8, 2014 اسمع انا حاولت اعبيه ابيك تعرف صخ ولا لا addEventHandler ("onColShapeHit", getRootElement(), xxx_joinhousees) function NooBLeave( hitElem, matchingDimension ) local ColSwat = createColSphere ( 30.94892, -1685.62085, 6.30625, 80 ) if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then return getTeamName(team) table.concat({...}, " ") if isTimer(carsTimer[source]) then killTimer(TimerToLeave) setTimer ( fadeCamera, 1000, 1, hitElem, true, 1 ) killPed ( hitElem, hitElem ) Link to comment
</Mr.Tn6eL> Posted May 8, 2014 Share Posted May 8, 2014 اسمع انا حاولت اعبيه ابيك تعرف صخ ولا لا addEventHandler ("onColShapeHit", getRootElement(), xxx_joinhousees) function NooBLeave( hitElem, matchingDimension ) local ColSwat = createColSphere ( 30.94892, -1685.62085, 6.30625, 80 ) if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then return getTeamName(team) table.concat({...}, " ") if isTimer(carsTimer[source]) then killTimer(TimerToLeave) setTimer ( fadeCamera, 1000, 1, hitElem, true, 1 ) killPed ( hitElem, hitElem ) روح نام شكلك نعسان من اول سطر الى الاخير غلط Link to comment
The Killer Posted May 8, 2014 Share Posted May 8, 2014 local col = createColCuboid ( x,y,z, width, depth, height ) Timer = {} addEventHandler ("onColShapeHit", col, function ( hitElem ) if getElementType (hitElem) == "player" then if getPlayerTeam( hitElem ) and getTeamName( getPlayerTeam( hitElem ) ) ~= 'No Team' then if isTimer(Timer[hitElem]) then killTimer(Timer[hitElem]) end outputChatBox ("You have to leave this place in 15 secs.", hitElem, 255, 0, 0) Timer[hitElem] = setTimer (function () killPed (hitElem) end) end end end ) addEventHandler ("onColShapeLeave", col, function (leaveElem) if getElementType (leaveElem) == "player" then outputChatBox ("You have left this area.", leaveElem, 0, 255, 0) killTimer (timer[leaveElem]) end end ) Link to comment
</Mr.Tn6eL> Posted May 8, 2014 Share Posted May 8, 2014 Timer[hitElem] = setTimer (function () killPed (hitElem) end, !!, !!) ?? Link to comment
The Killer Posted May 9, 2014 Share Posted May 9, 2014 Timer[hitElem] = setTimer (function () killPed (hitElem) end, !!, !!) ?? مشكور ع التنبيه التصحيح local col = createColCuboid ( x,y,z, width, depth, height ) Timer = {} addEventHandler ("onColShapeHit", col, function ( hitElem ) if getElementType (hitElem) == "player" then if getPlayerTeam( hitElem ) and getTeamName( getPlayerTeam( hitElem ) ) ~= 'No Team' then if isTimer(Timer[hitElem]) then killTimer(Timer[hitElem]) end outputChatBox ("You have to leave this place in 15 secs.", hitElem, 255, 0, 0) Timer[hitElem] = setTimer (function () killPed (hitElem) end, 15000, 1) end end end ) addEventHandler ("onColShapeLeave", col, function (leaveElem) if getElementType (leaveElem) == "player" then outputChatBox ("You have left this area.", leaveElem, 0, 255, 0) killTimer (timer[leaveElem]) end end ) Link to comment
TAPL Posted May 9, 2014 Share Posted May 9, 2014 Timer = {} local col = createColCuboid(x, y, z, width, depth, height) addEventHandler("onColShapeHit", col, function(hitElem) if getElementType(hitElem) == "player" then local team = getPlayerTeam(hitElem) if team and getTeamName(team) ~= "No Team" then if isTimer(Timer[hitElem]) then killTimer(Timer[hitElem]) Timer[hitElem] = nil end outputChatBox("You have to leave this place in 15 secs.", hitElem, 255, 0, 0) Timer[hitElem] = setTimer(function(hitElem) killPed(hitElem) Timer[hitElem] = nil end, 15000, 1, hitElem) end end end) addEventHandler("onColShapeLeave", col, function(leaveElem) if getElementType(leaveElem) == "player" then outputChatBox("You have left this area.", leaveElem, 0, 255, 0) if isTimer(Timer[leaveElem]) then killTimer(Timer[leaveElem]) Timer[leaveElem] = nil end end end) addEventHandler("onPlayerQuit", root, function() if isTimer(Timer[source]) then killTimer(Timer[source]) Timer[source] = nil end end) 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