CLEO Help ON/OFF on CLEO FOV

CLEO related
Status
Not open for further replies.

Lukaluka1812

Member
Joined
Dec 23, 2018
Messages
19
Reaction score
0
Hello, someone could help me to setup ON/OFF on this cleo? Thanks.



// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

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

:NONAME_2
wait 0
if and
Player.Defined($PLAYER_CHAR)
82D8: not actor $PLAYER_ACTOR current_weapon == 99
jf @NONAME_2
0922: set_camera_zoom_from 103.0 to 0.0 timelimit 15000 smooth_transition 2
jump @NONAME_53

:NONAME_53
wait 0
if
82D8: not actor $PLAYER_ACTOR current_weapon == 99
jf @NONAME_2
0922: set_camera_zoom_from 103.0 to 0.0 timelimit 15000 smooth_transition 2
jump @NONAME_53
 

Attachments

  • Building_Effect_LONGE.cs
    17.2 KB · Views: 7

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
PHP:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

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

:Noname_2
wait 0 
if and
    Player.Defined($PLAYER_CHAR)
    82D8:   not actor $PLAYER_ACTOR current_weapon == 99
    0AB0: key_pressed 90 //keycode for Z 
jf @Noname_2 
0922: set_camera_zoom_from 103.0 to 0.0 timelimit 15000 smooth_transition 2 
goto @Noname_53 

:Noname_53
wait 0 
if and 
    82D8:   not actor $PLAYER_ACTOR current_weapon == 99
    0AB0: key_pressed 90 //keycode for Z 
jf @Noname_2 
0922: set_camera_zoom_from 103.0 to 0.0 timelimit 15000 smooth_transition 2 
goto @Noname_53

I think :thinking:
 

Lukaluka1812

Member
Joined
Dec 23, 2018
Messages
19
Reaction score
0

No, I already tested it. When I click Z, it starts working but automatically ZOOMING or something like that.

this CLEO is for FOV. I want only one thing. for ex: press Z, *changes fov* - press Z again *default fov*
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
PHP:
{$CLEO .cs}
0000: NOP 

repeat
    wait 50
until SAMP.Available()

31@ = false

while true
    wait 0
    if
        0AB0: 90 //keycode Z
    then
        if
            31@ == true
        then
            0922: set_camera_zoom_from 0.0 to 103.0 timelimit 15000 smooth_transition 2
            31@ = false
        else
            0922: set_camera_zoom_from 103.0 to 0.0 timelimit 15000 smooth_transition 2
            31@ = true
        end
        wait 1500    
    end    
end

I don't really understand what the script is supposed to do tbh, try that
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
If you’d have specified your version before hand, we wouldn’t be having this problem :areyoukiddingme:

I’ll do it tomorrow, unless someone beats me to it.
 
Status
Not open for further replies.
Top