Quantcast

Jump to content

» «
Photo

A quick question regarding a CLEO script!

9 replies to this topic
DaDenz
  • DaDenz

    Player Hater

  • New Members
  • Joined: 23 Aug 2014
  • None

#1

Posted 23 August 2014 - 11:14 PM

Hello everyone!, I am new to this community,

And so far, it looks very nice here, and the people look very supporting.

 

I had little question regarding CLEO though,

I have this mod (.cs) which I like,

But it's active in game, all the time. i would to have it like this that when is press 

1 and 2 at once, or something like that, that it get's deactivated or such.

Before I posted, i decided to try it myself, and look at some of the guides,

Unfortunately i didn't manage to make it work.

So i hoped that one of you guys, could help me with this!

 

Thank you in advance!

 

(the link may be handy for the mod)

http://www.mediafire...ug47ay/Cbug.rar


Node
  • Node

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • United-Kingdom

#2

Posted 24 August 2014 - 12:26 AM Edited by ChopTheDog., 24 August 2014 - 02:25 PM.

//Removed


DaDenz
  • DaDenz

    Player Hater

  • New Members
  • Joined: 23 Aug 2014
  • None

#3

Posted 24 August 2014 - 12:35 AM

Thankyou very much!!
i only get the error when compiling:

 

Label "TurnModOff" not found.


Node
  • Node

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • United-Kingdom

#4

Posted 24 August 2014 - 12:37 AM Edited by ChopTheDog., 24 August 2014 - 02:25 PM.

//Removed


DaDenz
  • DaDenz

    Player Hater

  • New Members
  • Joined: 23 Aug 2014
  • None

#5

Posted 24 August 2014 - 02:07 PM

Thanks for your help!

but the code didn't work unfortunately,

i pressed 1, but the key didn't activate the mod tho.

I hope someone else have a solution?


DaDenz
  • DaDenz

    Player Hater

  • New Members
  • Joined: 23 Aug 2014
  • None

#6

Posted 27 August 2014 - 01:06 PM

Anyone please help?


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#7

Posted 27 August 2014 - 03:58 PM

1. your rquest belongs to the request topic: http://gtaforums.com...est-mod-thread/
but anyway, i'll help

2. can you compile the script by yourself or do you need a finished cs file?

3. you said, that you need to deactivate the script by keypress 1 and 2 at once

i would to have it like this that when is press
1 and 2 at once, or something like that, that it get's deactivated or such.


but you didn't said anything about activating

later, after ChopTheDog gave help, you noticed that the function couldn't get activated

but the code didn't work unfortunately,
i pressed 1, but the key didn't activate the mod tho.


Please explain exactly how you want to deactivate the function and how you want to activated the function

DaDenz
  • DaDenz

    Player Hater

  • New Members
  • Joined: 23 Aug 2014
  • None

#8

Posted 01 September 2014 - 08:34 PM

1. your rquest belongs to the request topic: http://gtaforums.com...est-mod-thread/
but anyway, i'll help

2. can you compile the script by yourself or do you need a finished cs file?

3. you said, that you need to deactivate the script by keypress 1 and 2 at once

i would to have it like this that when is press
1 and 2 at once, or something like that, that it get's deactivated or such.


but you didn't said anything about activating

later, after ChopTheDog gave help, you noticed that the function couldn't get activated

but the code didn't work unfortunately,
i pressed 1, but the key didn't activate the mod tho.


Please explain exactly how you want to deactivate the function and how you want to activated the function

 

I just want it like this,

when i press 1 it activates

when i press 1 again it deactivates.

like that, since the code is running all the time.


flabed7
  • flabed7

    Player Hater

  • New Members
  • Joined: 20 Aug 2014
  • Brazil

#9

Posted 02 September 2014 - 10:08 PM Edited by flabed7, 02 September 2014 - 11:37 PM.

 

1. your rquest belongs to the request topic: http://gtaforums.com...est-mod-thread/
but anyway, i'll help

2. can you compile the script by yourself or do you need a finished cs file?

3. you said, that you need to deactivate the script by keypress 1 and 2 at once

i would to have it like this that when is press
1 and 2 at once, or something like that, that it get's deactivated or such.


but you didn't said anything about activating

later, after ChopTheDog gave help, you noticed that the function couldn't get activated

but the code didn't work unfortunately,
i pressed 1, but the key didn't activate the mod tho.


Please explain exactly how you want to deactivate the function and how you want to activated the function

 

I just want it like this,

when i press 1 it activates

when i press 1 again it deactivates.

like that, since the code is running all the time.

 

 

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagamin...opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'MYHACK'

$isON = 0

:MYHACK_11
if
$isON == 1
then  
gosub @MYHACK_46
end

wait 100
if
0AB0: key_pressed 0x31
jf @MYHACK_11

if
$isON == 0
then
$isON = 1
0ACB: show_styled_text 'Enabled' time 1000 style 4
jump @MYHACK_11
end

if
$isON == 1
then
$isON = 0
0ACB: show_styled_text 'Disabled' time 1000 style 4
jump @MYHACK_11
end

:MYHACK_46

//YOUR CODE HERE

return


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#10

Posted 03 September 2014 - 04:07 PM

 

1. your rquest belongs to the request topic: http://gtaforums.com...est-mod-thread/
but anyway, i'll help

2. can you compile the script by yourself or do you need a finished cs file?

3. you said, that you need to deactivate the script by keypress 1 and 2 at once

i would to have it like this that when is press
1 and 2 at once, or something like that, that it get's deactivated or such.


but you didn't said anything about activating

later, after ChopTheDog gave help, you noticed that the function couldn't get activated

but the code didn't work unfortunately,
i pressed 1, but the key didn't activate the mod tho.


Please explain exactly how you want to deactivate the function and how you want to activated the function

 

I just want it like this,
when i press 1 it activates
when i press 1 again it deactivates.
like that, since the code is running all the time.

 

{$CLEO .cs}
thread 'CBUG' 

while true
wait 0 
    if  and
        0@ == 0
        0AB0:   key_pressed 49// 	1 key
    then
        0@ = 1
        repeat
            wait 0
        until 8AB0: not  key_pressed 49// 	1 key       
    end
    if  and
        0@ == 1
        0AB0:   key_pressed 49// 	1 key
    then
        0@ = 0
        repeat
            wait 0
        until 8AB0: not  key_pressed 49// 	1 key         
    end    
    if 
        0@ == 1
    then
        gosub @HIT_WALK        
    end           
end

:HIT_WALK
if
    0256:   player $PLAYER_CHAR defined
then
    if 
        02E0:   actor $PLAYER_ACTOR aggressive
    then
        0A8C: write_memory 12006520 size 2 value 255 virtual_protect 0 
        0001: wait 70 ms 
        0812: AS_actor $PLAYER_ACTOR perform_animation "HIT_WALK" IFP_file "PED" 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time 1 // versionB
    end
end
return

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users