#1 Re: GTA Modding » Sanny Builder / CLEO discussion » 23-12-2011 07:56

Alright, I need some help with this:
I have this cleo script here:

//-------------MAIN---------------
0000: NOP 

:NONAME_2
wait 0 
if 
0AB0:   key_pressed 90 
else_jump @NONAME_36 
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)

:NONAME_36
if 
0AB0:   key_pressed 88 
else_jump @NONAME_66 
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)

:NONAME_66
jump @NONAME_2

Now what I want to add is basically a timer, I press the key and the godmod actives for like 10 seconds then goes off and then goes on again, till I press the key to disable it.
Second what I want to add is one key to toggle it on and off. I hope someone can do this for me, because I'm newb when it comes to cleo scripting.

Much love, Testa

Board footer

Powered by FluxBB