Jump to content

pls fix bug


Scripting

Recommended Posts

Server-side:

addCommandHandler('unfire', 
    function(thePlayer,cmd) 
        toggleControl(thePlayer,"fire",true) 
    end 
) 

Or this ( type /fire to enable / disable fire )

local control = true 
  
addCommandHandler('fire', 
    function(thePlayer,cmd) 
        if control then 
            toggleControl(thePlayer,'fire',false) 
            control = false 
        else 
            toggleControl(thePlayer,'fire',true) 
            control = true 
        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...