CLEO Help NameTag | License OPCODE

CLEO related
Status
Not open for further replies.

Dtkyss

Member
Joined
Oct 22, 2016
Messages
20
Reaction score
0
Hello! Few days ago I started edit a nameTag hack with my friend, but if I paste license system, it says Jump to zero offset, or idk. I dont know what is wrong with it, help me please.

Code:

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
       // The original NameTag plugin
//-------------MAIN-----------

:Load
wait 100 
if
  SAMP.Available
else_jump @Load

:license
wait 0
0B2B: samp 29@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 28@ = get_player_nickname 29@
if 
0C14: strcmp string1 28@ string2 "yournickhere"
then
    jump @cheat_11
else
    0AF8: samp add_message_to_chat "You have no license for this script." color -1
    jump @license
end

// lófasz
0000: NOP 
thread "SPRINGFIELD" 
wait 5000 
call @SPRINGFIELD_634 0 
31@ = 0 

:SPRINGFIELD_39
wait 0 
if and
key_down 18 
key_down 114 
else_jump @SPRINGFIELD_190 
0B12: 31@ = 31@ XOR 1 
if       
  31@ == 1 
else_jump @SPRINGFIELD_134 
call @SPRINGFIELD_255 0 
printf "NameTag ~g~Enabled!" 1337 
wait 200 
jump @SPRINGFIELD_190 

:SPRINGFIELD_134
if 
  31@ == 0 
else_jump @SPRINGFIELD_190 
call @SPRINGFIELD_415 0 
printf "NameTag ~r~Deactivated!" 1337 
wait 200 

:SPRINGFIELD_190
if 
  31@ == 1 
else_jump @SPRINGFIELD_248 
if 
key_down 119 
else_jump @SPRINGFIELD_248 
call @SPRINGFIELD_415 0 
wait 1000 
call @SPRINGFIELD_255 0 

:SPRINGFIELD_248
jump @SPRINGFIELD_39 

:SPRINGFIELD_255
0AA2: 30@ = load_library "samp.dll" // IF and SET 
0A8E: 1@ = 30@ + 457971 // int 
0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1 
0A8E: 2@ = 30@ + 458004 // int 
0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1 
0A8E: 3@ = 30@ + 458280 // int 
0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1 
0A8E: 4@ = 30@ + 462648 // int 
0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1 
0A8E: 5@ = 30@ + 462372 // int 
0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1 
0AA3: free_library 30@ 
ret 0 

:SPRINGFIELD_415
0AA2: 30@ = load_library "samp.dll" // IF and SET 
0A8E: 1@ = 30@ + 457971 // int 
0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1 
0A8E: 2@ = 1@ + 4 // int 
0A8C: write_memory 2@ size 2 value 0 virtual_protect 1 
0A8E: 3@ = 30@ + 458004 // int 
0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1 
0A8E: 4@ = 3@ + 4 // int 
0A8C: write_memory 4@ size 2 value 0 virtual_protect 1 
0A8E: 5@ = 30@ + 458280 // int 
0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1 
0A8E: 6@ = 30@ + 462648 // int 
0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1 
0A8E: 7@ = 30@ + 462372 // int 
0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1 
0A8E: 8@ = 7@ + 4 // int 
0A8C: write_memory 8@ size 2 value 0 virtual_protect 1 
0AA3: free_library 30@ 
ret 0 

:SPRINGFIELD_634
0AA2: 0@ = load_library "samp.dll" // IF and SET 
0085: 1@ = 0@ // (int) 
1@ += 2203876 
0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1 
0085: 2@ = 0@ // (int) 
2@ += 409616 
0AA6: call_method 2@ struct 3@ num_params 5 pop 0 0 -4129023 0 "NameTag for AAD - [ 0.3.7 ] - {00DDE8}ssss" 8  
ret 0

License system [1]:
Code:
:Load
wait 100 
if
  SAMP.Available
else_jump @Load

:license
wait 0
0B2B: samp 29@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 28@ = get_player_nickname 29@
if 
0C14: strcmp string1 28@ string2 "yournickhere"
then
    jump @cheat_11
else
    0AF8: samp add_message_to_chat "You have no license for this script." color -1
    jump @license
end

License system [2]

Code:
REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 1@ = get_player_nickname 0@
IF
8C14: strcmp string1 1@ string2 "DesK"
THEN
    0AF8: samp add_message_to_chat "Hey %s! You dont have a license!" color -1 1@
    004E: end_thread
END



WHILE TRUE
    WAIT 0
END
 

Mila.cs ✅

Well-known member
Joined
Jun 24, 2016
Messages
247
Reaction score
10
Location
̀́̀́
Why would you want to add a license system to a done Cleo?  :facepalm:

Anyway the problem is pretty obvious.
You don't have @Cheat_11 defined.
Code:
jump @cheat_11
 

Dtkyss

Member
Joined
Oct 22, 2016
Messages
20
Reaction score
0
Just for a test. Yes, if I edit jump @cheat_11 to jump @SPRINGFIELD_39 it says jump to zero offset found, but idk why..
(I WANT FOR TEST)
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
By edit you mean remove credits?

Original script said:
0AA6: call_method 2@ struct 3@ num_params 5 pop 0 0 -4129023 0 "WallHack PLUS - 0.3.7 - {00DDE8}UGBASE.EU" 8

Dtkyss said:
0AA6: call_method 2@ struct 3@ num_params 5 pop 0 0 -4129023 0 "NameTag for AAD - [ 0.3.7 ] - {00DDE8}ssss" 8  

Why would you add a license system for a cleo that's available to anyone?
 

Dtkyss

Member
Joined
Oct 22, 2016
Messages
20
Reaction score
0
I'm not edited this :) I just want to paste a license system, for my friend, we can test this. But please help me. :)
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
[shcode=cpp]
{$CLEO .cs}
0000: NOP

:Load //this checks if the samp is fully loaded
wait 100
if
SAMP.Available
else_jump @Load //if not then it checks again
goto @license //if samp is fully loaded it jumps to :licence

:license
wait 0
0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR //scans the main player id
0B36: samp 1@ = get_player_nickname 0@ //scans player nickname based on player id
if
8C14: strcmp string1 1@ string2 "Mr.Christmas" //checks if main player nickname is "Mr.Christmas"
then
print "~G~Licence granted." 2000 //if it is then it jumps to the main label of the cheat and prints "Licence granted"
jump @MAIN
else
print "~R~You have no license for this script" 2000 //if not then it prints "You have no licence for this script" continuously until the the player turns off gta;sa
jump @license
end

//structure of the cheat
:MAIN
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @MAIN

:ACTIVATION_CHECK
wait 0
if
0ADC: test_cheat "BIK"
else_jump @ACTIVATION_CHECK
print "BIKE ~G~ON" 1500
wait 0
08C6: set_actor $PLAYER_ACTOR stay_on_bike 1
wait 1000
jump @DEACTIVATION_CHECK

: DEACTIVATION_CHECK
wait 0
if
0ADC: test_cheat "BIK"
else_jump @DEACTIVATION_CHECK
print "BIKE ~R~OFF" 1500
08C6: set_actor $PLAYER_ACTOR stay_on_bike 0
wait 1000
jump @MAIN
[/shcode]
 
Status
Not open for further replies.
Top