Jump to content

How?


Scripting

Recommended Posts

  
function ClientExplosionFunction(x,y,z,theType) 
    if ( theType and theType == 2 or theType == 3 ) then 
              cancelEvent() 
         end 
end 
addEventHandler("onClientExplosion",getRootElement(),ClientExplosionFunction) 
  

Link to comment
  
function ClientExplosionFunction(x,y,z,theType) 
    if ( theType and theType == 2 or theType == 3 ) then 
              cancelEvent() 
         end 
end 
addEventHandler("onClientExplosion",getRootElement(),ClientExplosionFunction) 
  

This event not canceled.

Edited by Guest
Link to comment

since you don't want to use rockets just remove it from the creation

  
addEventHandler("onClientProjectileCreation",root,function(creator) --- this event cannot be canceled too. 
    local nType = getProjectileType(source) --- get the projectile type 
        if ( nType == 19 or nType == 20 ) then --- if its a rocket launcher , or a heat seek then 
            setTimer(setElementPosition,50,1,source,0,0,999*999) --- since it cant be canceled , move it up to the sky  [ you can remove the timer i just used it to see the rocket creation ] 
        end --- end 
end ) -- end and to close event ) 
  

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