Jump to content

problem z colshape


Recommended Posts

witam mam problem wynikający z mojego nieobeznania sie z LUA ale nie moge sobie z tym poradzic kolejny raz

chodzi o to ze chce podpalić wszytskich którzy bedą w zasiegu poza sobą samym i nie wiem jak to zrobic bo brakuje mi c++'owego "różny od"

  
    function immo(thePlayer, cmd) 
         local element = "player"        
         local radius = 50 
         local x, y, z = getElementPosition(thePlayer) 
         local colshape = createColSphere(tonumber(x), tonumber(y), tonumber(z), tonumber(radius)) 
      
         for index, value in ipairs(getElementsWithinColShape(colshape, element )) do 
    outputChatBox("player: "..getPlayerName(value), thePlayer) 
     
    outputChatBox("for: "..getPlayerName(value), thePlayer) 
        setPedOnFire ( value, true ) 
  
    end 
  
         end 
         destroyElement(colshape) 
    end 
     
    addCommandHandler("dg", immo) 
     
  

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