This code will make " Piss " animation visible only for you..
You Must Have SAMPFUNCS.asi
{$CLEO .cs}
{$INCLUDE SF}
0000:
REPEAT
WAIT 0
UNTIL 0AFA:
0BE2: raknet setup_outcoming_packet_hook @Out_Packets
WHILE TRUE
WAIT 0
END
:Out_Packets
0BE5: raknet 10@ = get_hook_param PARAM_PACKETID
IF...
You could keep game all the time unpaused.
Also someone could make mouse hovering checking which could help in your situation.
Since once mouse would be on gta windows it would get focused.
Example of how looks samp NickName and ID Drawing in samp with all calculation information samp 0.3.7 R1
void FUN_10070d40(void)
{
int *piVar1;
int iVar2;
int **ppiVar3;
int *piVar4;
int iVar5;
undefined4 uVar6;
int iVar7;
uint uVar8;
float10 fVar9;
float10 fVar10...
Example of how looks samp NickName and ID Drawing in samp with all calculation information samp 0.3.7 R1
void FUN_10070d40(void)
{
int *piVar1;
int iVar2;
int **ppiVar3;
int *piVar4;
int iVar5;
undefined4 uVar6;
int iVar7;
uint uVar8;
float10 fVar9;
float10 fVar10...
For those who using Gta Go To AI for walking to checkpoint.
Snippet below will be usefull.
:GetPlayerActorGoToTaskID
// 0AB1: @GetPlayerActorGoToTaskID 0 _Returned: TaskStatus 0@
0A8D: 31@ = read_memory 0xC0B1FC size 2 virtual_protect 0 // Read to Get Task ID
IF NOT 31@ == 65535
THEN 0AB2: ret...
1. Check if RACE CheckPoint Active
2. Get RACE CheckPoint Position
:is_racecp_active
// 0AB1: @is_racecp_active 0
IF 0AA2: 31@ = loadlib "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
0A8E...
1. Check if CheckPoint Active
2. Get CheckPoint Position
:is_cp_active
// 0AB1: @is_cp_active 0
IF 0AA2: 31@ = loadlib "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
0A8E: 30@ = 31@ +...
I wasted my precious time for your request..
This is first and last time when i help you.
Use Code below to obtain vehicle number plate.:
:SAMPGetCurrentVehicleNumberPlate
{
0.3.DL
0AB1: @SAMPGetCurrentVehicleNumberPlate 0 _Returned: NumberPlate 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN...
There's no actually safe way to fully crypt code, but some methods exist which makes code not compilable once it was opened with sanny builder.
But for now you can just use this cryptor:
https://www.mediafire.com/file/954k55fbrtbpm62/Crypt.exe/file
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined
0AC8: 31@ = allocate_memory_size 260
0AD3: string 31@ format "~g~ {} a abcdefgz 1234567890 64-=' > ,<"
0AC8: 30@ = allocate_memory_size 260...
If your string is actually like that.
1. Remove colours
2. Collect only digits and letters
:DeleteColorCodes
{
0AC8: 27@ = allocate_memory_size 260
0AB1: @DeleteColorCodes 2 text 31@ memory_to_store_characters_as_text 27@
// Do Something
0AC9: free_allocated_memory 27@
}
5@ =...
Position Is matching perfectly until i activate window mode.
So does anyone know how to accurately calculate everything?
Example in cleo code
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined...
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined
WHILE TRUE
WAIT 0
IF 0256: player $PLAYER_CHAR defined
THEN
IF 0AB0: 123 // F12
THEN
REPEAT
WAIT 0
UNTIL...
Looks like this one Require SAMPFUNCS...
Here's Example without SAMPFUNCS:
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined
// 0AD1: "You was damaged with: %d %s" 1337 31@ 30@
/*
054E...
Or if you prefer with Key activation F12
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined
WHILE TRUE
WAIT 0
IF 0256: player $PLAYER_CHAR defined
THEN
IF 0AB0: 123 // PRESSED - F12...
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined
WHILE TRUE
WAIT 0
IF 0256: player $PLAYER_CHAR defined
THEN
0AC8: 31@ = allocate_memory_size 260
0AC8: 30@ = allocate_memory_size 260...
Second.
Cleo have two variables which is built-in timers.:
31@ and 32@
I would recommend use count down snippet if you planing to have only two timers
https://ugbase.eu/threads/cleo-some-snippets.16708/#post-99730
First of all, let's learn how to use code functions in forum.
Examples below and in picture:
My code using PHP Code function
My code using Code function
Remove these two lines AND Press F6 to compile cleo code
0AD1: show_formatted_text_highpriority "CTNH ~g~AKTIF" time 1000
0AD1: show_formatted_text_highpriority "CTNH ~r~DE-AKTIF" time 1000
{$CLEO .cs}
0000:
REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined
WHILE TRUE
WAIT 0
IF 0256: player $PLAYER_CHAR defined
THEN
IF 0AB0: 117 // F6
THEN
REPEAT
WAIT 0
UNTIL...
{$CLEO .cs}
0000:
REPEAT
WAIT 100
UNTIL 0AFA: SAMP_IS_READY
0B34: "tdclick" @textdraw
WHILE TRUE
WAIT 0
IF 31@ == TRUE // if code enabled then...
THEN
for 1@ = 0 to 10000
0BCA: samp send_click_textdraw 1@
0AF8: "Process ID = %d" -1 1@
end
31@ = FALSE // Disable code
END
END
:textdraw...
Snippet together with funtion call allows you call registered commands directly without opening chat, so admin can't see what you typed.
Use snippet below with Funtion Call:
0AA7: call_function 15@ num_params 1 pop 1 command_prams 30@ _retVal 19@ // 15@ is command handler ; 30@ is your command...
You just need add some instructions because now codes don't know what you mean by writing:
$CHECKPOINT_X etc...
You need add simple instructions before while true loop.
Const
0@ = $CHECKPOINT_X
1@ = $CHECKPOINT_Y
2@ = $CHECKPOINT_Z
end
Etc...
All named variables must have they digital...
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.