Code:
{$CLEO .cs}
THREAD 'ExamenTP'
0662: printstring "By Zin"
0662: printstring "UGBASE.EU"
REPEAT
WAIT 0
UNTIL 0AFA:
0B34: samp register_client_command "goboy" to_label @EXAMEN
WHILE TRUE
WAIT 0
if 31@ == TRUE
then
if
0AB1: @is_cp_active 0
then
0AB1: @get_cp_pos 0 1@ 2@ 3@
call @SendInCarDataSync 3 1@ 2@ 3@
end
end
end
:is_cp_active
0AA2: 0@ = loadlib "samp.dll"
0A8E: 1@ = 0@ + 0x21A10C
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 0x24
0A8D: 1@ = readMem 1@ sz 4 vp 0
IF 1@ == TRUE
THEN 0485: return_true
ELSE 059A: return_false
END
0AA3: freelib 0@
0AB2: ret 0
:get_cp_pos
0AA2: 0@ = loadlib "samp.dll"
0A8E: 1@ = 0@ + 0x21A10C
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 0xC
0A8D: 2@ = readMem 1@ sz 4 vp 0
1@ += 0x4
0A8D: 3@ = readMem 1@ sz 4 vp 0
1@ += 0x4
0A8D: 4@ = readMem 1@ sz 4 vp 0
0AA3: freelib 0@
0AB2: ret 3 2@ 3@ 4@
:SendInCarDataSync
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
3@ = SAMP.GetPlayerStruct(3@)
3@ += 170
0AC8: 4@ = allocate_memory_size 63
0C10: memcpy destination 4@ source 3@ size 63
0C0D: struct 4@ offset 24 size 4 = 0@
0C0D: struct 4@ offset 28 size 4 = 1@
0C0D: struct 4@ offset 32 size 4 = 2@
0B3D: raknet 5@ = new_bit_stream
RakNet.Write(5@, 200, BS_TYPE_BYTE, 1)
RakNet.Write(5@, 4@, BS_TYPE_ARRAY, 63)
0B8B: raknet send bit_stream 5@
0B3E: raknet delete_bit_stream 5@
0AC9: 4@
0AB2: ret 0
:EXAMEN
0B12: 31@ = 31@ XOR 1
SAMP.CmdRet()
i have this checkpoint sync but i have the following problem:
Normally, when you teleport into a checkpoint with a vehicle it is ok. But if you teleport into a checkpoint with a vehicle and you go immediately to another location you will get banned.
What i need to modify is after he reached the checkpoint, wait 100ms and go back to initial position
I don't know how to explain ..
Basically, the script teleports you to the checkpoint and immediately returns to your current location, but without teleporting you. I need you to put "wait 100" before returning to the current location because then it doesn't ban me anymore.
thank you and sorry for this shit explanation, i hope u guys understand