Jump to content

Vip Godmode


Karuzo

Recommended Posts

Posted

hey guys ,

i want to give a vip player godmode if he clicked on the Button ,

but i don't know how :/

cause i don't know how i should put

cancelEvent  

and

onClientPlayerDamage 

in my

"onClientGUIClick" 

Function.

Any ideas ?

Posted
function godmode () 
cancelEvent() 
end 
addEventHandler("onClientPlayerDamage", godmode) 

Hi i know that.

but i want it to enable the godmode if the player presses a button.

Posted

Just like that ?

  
function godmode () 
cancelEvent() 
addEventHandler("onClientPlayerDamage", godmode) 
end 
addEventHandler("onClientGUIClick", VIP.button[5], godmode) 

Posted

No, like this:

function godmode ( ) 
    cancelEvent ( ) 
end 
  
addEventHandler ( "onClientGUIClick", VIP.button[5], 
    function ( ) 
        addEventHandler ( "onClientPlayerDamage", localPlayer, godmode ) 
    end 
    ,false 
) 

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