Jump to content

Help | Trying to do the basic command. "Godmode"


Recommended Posts

  • 6 months later...

I think, now you can do it only with a timer. ( but it's not the best mode)

(I dont tested it and i dont know player.id is valid)

var gm_timer = [];

function fillHealth(player)
	player.health = 100; 

	 gm_timer[player.id] = setInterval(fillHealth, 100, player);

	clearInterval( gm_timer[player.id] );


Link to comment
Share on other sites

  • 7 months later...

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