TheyCallMe said:
Parazitas said:
TheyCallMe said:
Mila.cs ✅ said:
TheyCallMe said:
Bring
up
my
post
Code:
{$CLEO}
{$INCLUDE SF}
0000: NOP
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0BE3: raknet setup_incoming_rpc_hook @in_rpc
0B34: "cap" @cmd
while true
wait 0
end
:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRCLIENTMESSAGE
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_INT // color
0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_INT // message len
0AC8: 4@ = allocate_memory_size 144
0BE8: raknet bit_stream 1@ read_array 5@ size 2@ // read color
0BE8: raknet bit_stream 1@ read_array 4@ size 3@ // read message
0C1E: array 4@ element 3@ el_size 1 = 0x0 // \0
//chatmsg "Text: %s" -1 4@
IF AND
15@ == TRUE
0C29: $NOT_USED = stristr string1 4@ string2 "You have 5 minutes to sign the check before it becomes invalid."
THEN
say "/capturf"
say "/capture" // all i did :p
END
0AC9: free_allocated_memory 4@
end
0BE0: raknet hook_ret true
:cmd
0B12: 15@ = 15@ XOR TRUE
IF
15@ == TRUE
THEN
PRINTF " Auto capturf Enabled" 2000
ELSE
PRINTF " Auto capturf Disabled" 2000
END
0B43:
Did you try this?
It has:
say "/capturf"
and:
say "/capture"
Now the game crashes for some reason. What's going wrong?
PHP:
{$CLEO .cs}
0000:
REPEAT
wait 0
UNTIL 0AFA:
0B34: "cap" @cmd
0AC8: 1@ = allocate_memory_size 256
0AC8: 2@ = allocate_memory_size 256
WHILE TRUE
wait 0
FOR 0@ = 98 TO 99 /// GET 98 AND 99 CHAT LINES
0B75: samp get_chat_string 1@ text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
IF AND
15@ == TRUE // WORKS ONLY IF COMMAND ENABLED
0C29: $NOT_USED = stristr string1 2@ string2 "You have 5 minutes to sign the check before it becomes invalid."
THEN
0C8F: "/capturf"
wait 1000 // wait one sec and then say /capture
0C8F: "/capture"
0AF8: "This text color is: %x" -1 4@
END
END // END WHILE TRUE
END // END FOR 0@ = 98 TO 99 /// GET 98 AND 99 CHAT LINES
IF
15@ == TRUE
THEN
PRINTF "Auto capturf ~G~Enabled" 2000
ELSE
PRINTF "Auto capturf ~R~Disabled" 2000
END
0B43:
You checked this? .:
I just tried that. And yup, It still crashes for some reason.
Can't that be because of a certain Cleo I am using? If it's possible I can show my cleos if needed.
Joke? I give you two working code.....
Download this.:
http://www.mediafire.com/file/b7xgm4zcyr5lwrb/Cleo+ir+Sampfuncs.rar
Put all in Gta San Andreas and Replace you old file...
Edit.:
Also if you have samp r2 you need this SAMP+0.3.7+R1-R2.zip , becouse sampfuncs stop working if you don't have that...
http://www.mediafire.com/file/7kogxjdn4j15lp4/SAMP_0.3.7_R1-R2.zip