This cleo disconnects you from the server you are connected to if the player's life goes down more than 10 :D
requirements
cleo 4 and sampfuncs 5.3.3
activation /desactivation
type nodie // cheat code
[attachment=5164]
With this cleo, it will automatically disconnect from the server if the player's life equals 10 or less
Activate/deactivate
cheat code= nodie
Update 23.11.2017
Added file 10hp-d.ini to configure
Source code: https://pastebin.com/EuFPpL8n
[attachment=5169]
why does not compare the text of the variable $p_name with the file 2@
alloc $p_name 50
0AC8: 14@ = allocate_memory_size 256
if
0A9A: 0@ = openfile "cleo\names.txt" mode "r"
then
wait 100
0AC8: 2@ = allocate_memory_size 4096...
example
alloc 1@ 32
while true
wait 0
for 0@ = 0 to 1000
if 0B23: samp is_player_connected 0@
then
0B36: samp 1@ = get_player_nickname 0@
if
// nickname contains the...
can someone tell me where the error is
code
chatlog
[19:51:28] Excellent delivery! Your earnings are: {00CC00}$2250{FFFFFF} and {FF3300} 7 pieces{FFFFFF} to create weapons.
{$CLEO .cs}
0000: NOP
alloc 2@ 280
while true
wait 0
if or
00DD: actor $PLAYER_ACTOR driving_car_with_model #YANKEE...
I need the code or cleo incardata 0.3.7 r1
some pass it to me
it's like this
0B2E: 3@ = read_samp_memory offset 0x4D10 size 1
0B2D: write_samp_memory offset 0x4D10 value 0xC3 size 1
a code to let me know when minutes have passed from the game time someone could pass it to me
I'm not very good with this
{$CLEO .cs}
0000: NOP
while true
wait 0
00BF: 27@ = current_time_hours, 27@ = current_time_minutes
if
then
chatmsg "6" -1
help me fix my code
I want the integer value obtained from the dialogue to be equal to or greater than 0 and less than 99000 as you can see my code does not work
I'm not very good at this if someone expert can fix the code to make it work well
{$CLEO .cs}
0000: NOP
while true
wait 0...
How do I make the text entered in the dialog appear in the chat
or how do I store the text of the dialogue in a variable someone knows
/// dialog_style_input
{$CLEO .cs}
0000: NOP
repeat
wait 0
until SAMP.Available()
0B34: samp register_client_command "sgt" to_label @cmd_mycmd
while...
use the opcode 0AF9:
while true
wait 0
if and
0AB0: key_pressed 12@
0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
then
0B2B: samp 4@ = get_player_id_by_actor_handle 3@
0AF9: samp say_msg "/guard %d 200" 4@
end
end
I want to do something like a chronometer that counts the minutes after scanning the text in the chat even if the game is in pause keep counting the time
how can I do it?
with server time
0AC8: 2@ = allocate_memory_size 260
while true
wait 0
0AB1: call...
{$CLEO .cs}
0000: NOP
while true
wait 0
if
player.Defined($PLAYER_CHAR)
then
0226: 0@ = actor $PLAYER_ACTOR health
if
0@ <= 60
then
0AC6: 1@ = label @label offset
0AB1: call_scm_func @SAY 1 1@
end
end
end
:SAY
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x65C60 // sendcmd 0.3.7 R1
0AA5: call...
idk
{$CLEO .cs}
0000: NOP
0B34: samp register_client_command "ant" to_label @cmd_mycmd
WHILE TRUE
wait 0
if
0@ == 1
then
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 1@ closest_ped_to 2@
if
056D: actor 2@ defined
then
0B2B...
the operation code 0AD4: you can not extract a chain from the chain
use the 16-byte variable 4@v
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: "sms" @Command
WHILE TRUE
WAIT 0
END
:Command
0B35: 0@ = get_last_command_params
if
0AD4: 30@ = scan_string 0@ format "%d %s" 1@ 4@v //IF and...
scan a line in the chat?
{$CLEO}
{$INCLUDE SF}
0000: NOP
while not SAMP.Available()
wait 400
end
0BE3: raknet setup_incoming_rpc_hook @in_rpc
WHILE TRUE
WAIT 0
END
:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRCLIENTMESSAGE
then
0BE5: raknet...
install this
http://files.sa-mp.com/sa-mp-0.3.7-install.exe (nametag work in R-1)
http://www.gtagarage.com/mods/show.php?id=21709
you can try to reinstall everything again in your gta you must have some damaged mod
here you have to edit the commands to make it work
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: samp register_client_command "mr" to_label @Noname // command
WHILE TRUE
WAIT 0
IF AND
056D: actor $PLAYER_CHAR defined
0@ == 1
jf continue
0AF9...
[attachment=5189] will be disconnected in exactly 50 hp
[attachment=5190] will be disconnected if it is less than or equal to 10
do not delete it just modify the publication but the moderator has not approved it xd
sampfuncs is for version R-1
here
http://files.sa-mp.com/sa-mp-0.3.7-install.exe
optional if no it work
http://www.gtagarage.com/mods/show.php?id=21709
https://es.dll-files.com/d3dx9_25.dll.html
https://es.dll-files.com/d3dx9_43.dll.html
https://es.dll-files.com/msvcp100.dll.html...
actually, there is a way
{
call @getTargetMarkerHandle 0 returnTo: 0@
}
:getTargetMarkerHandle
0A8D: 0@ = read_memory 0xBA6774 size 4 virtual_protect 0
ret 1 0@
{
call @setStateTargetMarker 1 state 0
}
:setStateTargetMarker
call @getTargetMarkerHandle 0 return: 1@
if 1@ > 0
then
if 0@...
In your code I see things that can cause you to crash
here a little explanation
{$CLEO .cs}
0000:
0B34: samp register_client_command "mycmd" to_label @cmd_mycmd
// 0BDE: pause_thread 0
:idle_loop // You can put the inactive loop in this way if you do not need to use it or use the operation...
get name through the command
:noname
0B35: samp 0@ = get_last_command_params
if
0AD4: 1@ = scan_string 0@ format "%d" 2@
then
0B36: samp 3@ = get_player_nickname 2@
chatmsg "name %s" -1 3@
end
0B43: samp cmd_ret
With this cleo, it will automatically disconnect from the server if the player's life equals 10 or less
Activate/deactivate
cheat code= nodie
*Update* 23.11.2017
Added file 10hp-d.ini to configure
Source code: https://pastebin.com/EuFPpL8n
[attachment=5169]
This cleo disconnects you from the server you are connected to if the player's life goes down more than 10 :D
requirements
cleo 4 and sampfuncs 5.3.3
activation /desactivation
type nodie // cheat code
[attachment=5164]
How can I write more than 16 bytes of text?
:cmd
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = scan_string 0@ format "18+49 %s" 6@v
then
0AF1: write_int 18 to_ini_file "cleo\config.ini" section "Settings" key "intkey1"
0AF1: write_int 49 to_ini_file "cleo\config.ini" section "Settings"...
I did not understand very well what he said but
open sanny builder press F12> Cleo 3 Code Library> Virtual Keys codes (for 0AB0)
key_down and 0AB0: key_pressed they are the same
here an example:
{$CLEO}
0000:
:Noname
wait 0
if 0AB0: key_pressed 51 // Check if the key is pressed 3
004D...
Try installing these files
for windows 7 32 bits: https://yadi.sk/d/zoWBr9Jc3PCNCT
for windows 7 64 bits https://yadi.sk/d/gbzbXT993PCP3M
all files are replaced in the gta sa directory
{$CLEO}
0000:
Repeat
wait 0
until 0AFA: is_samp_available
While true
wait 0
if and
8B21: not samp is_chat_opened
0AB0: key_pressed 88
then
wait 120
say "/stats"
end
end
// press x for say /stats
[attachment=5150]
you must use the correct and necessary opcodes and get the correct memory address, since it may be changing every time you close gta_sa
my money code :D
{$CLEO .cs}
0000:
:Noname
wait 0
if
0AB0: key_pressed 71
004D: jump_if_false @Noname
0A8D: 10@ = read_memory 0xB7CE50 size 4...
you need to learn a tutorial for sanny builder
http://bit.ly/2yLj2nz
{$CLEO}
0000:
0B34: samp register_client_command "truck" to_label @truck
while true
wait 0 ms //wait 0 ms milliseconds
if
0@ == 1
then
if
00DF: actor $PLAYER_ACTOR driving
then
00A1: put_actor $PLAYER_ACTOR at 0.0 0.0...
this is a condition if you find an open dialog the code goes beyond
if
0B4C: samp is_dialog_active -1
then
0B4E: 0 @ // get the open dialog id
chatmsg "DIALOG ID% d" 0@ // %d 0@ parameters displays the dialog id obtained by opcode 0B43
try opening with another dialog should give a...
{$CLEO}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: "didon" @ON
0B34: "didoff" @OFF
WHILE TRUE
WAIT 0
IF
0@ == 1
THEN
IF
056D: actor $PLAYER_ACTOR defined
THEN
0B4E: samp 1@ = get_current_dialog_id
chatmsg...
https://blast.hk/wiki/opcodes:0b27
https://blast.hk/wiki/opcodes:0b28
you can download the cleo below and see your source code
http://ugbase.eu/Thread-REL-FakeKick-0-3-7-cmd
If the player takes the pickup continue down ..
that opcode is available which is ?
{$CLEO}
0000:
repeat
wait 0
until player.Defined($PLAYER_ACTOR)
while true
wait 0
if
0AB0: key_pressed 51
then
0213: 0@ = create_pickup 1318 type 3 at 2001.8024 -1445.972 13.5612
if
opcode for if the actor...
because the client command "build player" does not work try with a shorter command and if it works how can I make the command work with spaces
{$CLEO}
0000:
repeat
wait 100
until 0AFA: is_samp_available
Model.Load(#ARMY)
Model.Load(#M4)
038B: load_requested_models
0B34: samp...
resize the object
what is the opcode to resize the object?
{$CLEO .cs}
THREAD 'ABASDKJ'
:noname_13
wait 0
00D6: if and
0256: player $PLAYER_ACTOR defined
0ADC: test_cheat "SPC"
jf @noname_13
018C: play_sound 1052 at 0.0 0.0 0.0
0ACD: show_text_highpriority "Obect set 18948"...
sanny builder code to put objects to the player like the one seen in the image
here the cleo to put the object http://www.mediafire.com/file/2edemud71alqdc2/loro.cs
the problem is that the cleo is encrypted
I want the uncrypted code or how I put an object of this to the player...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.