Jump to content

طلب كود ضرووووووري


Recommended Posts

السلام عليكم شباب ابي كود برمجه السلاب يعني اسوي منطقه معينه والي يخش فيها يديه تحذير انه يخرج منها وله 15 ثانيه مثلا ولو ماخرج ينصك سلاب لو لوكان في تيم وقروب معين انا احدده اتمنى الرد في اسرع وقت

Link to comment

السلام عليكم شباب ابي كود برمجه السلاب يعني اسوي منطقه معينه والي يخش فيها يديه تحذير انه يخرج منها وله 15 ثانيه مثلا ولو ماخرج ينصك سلاب لو لوكان في تيم وقروب معين انا احدده اتمنى الرد في اسرع وقت

يعني الكل اذا دخل المنطقه ينصك الا قروب وتيم معين انا احدده

Link to comment

اسمع انا حاولت اعبيه ابيك تعرف صخ ولا لا

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
اسمع انا حاولت اعبيه ابيك تعرف صخ ولا لا
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

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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...