Jump to content

Peace dxdraw/tooglecontrol?!


yoya99

Recommended Posts

Posted

is there a possibility to make a peace mode where you dont can fire anyweopens and you are damageprotectet?

maybe like a Button in the f1...but i dont have any idea how todo it....maybe with toogle control?...help pls

thx in advance

And the snail starts to sing

Posted

To add the button in F1, it would mean you would need to re-script the freeroam resource ( i don't know which file it is ), but here are some functions that you could use/learn.

guiCreateButton 
addEventHandler 
toggleControl 
cancelEvent 

events for use:

onClientGUIClick 
onClientPlayerDamage 

There are different ways to make it, but using these functions/event it's the easiest (in my opinion of course)

[You will need if statements to toggle it back on and variables.]

Looking for tutorials or information? check out: www.simpleask.co.uk

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