Olcay
Active member
- Joined
- Dec 1, 2014
- Messages
- 31
- Reaction score
- 0
Hey There!
I need help about cleo scripting offset or memory (whatever i don't know those). What are the meaning of these. I see these functions in every cleo script(e.g: alloc_memory and offset).
So, please can someone explain detailed these to me, or is there any tutorial about that? I wonder how can i use alloc memory, struct and offset like above samples? Thank You!
I need help about cleo scripting offset or memory (whatever i don't know those). What are the meaning of these. I see these functions in every cleo script(e.g: alloc_memory and offset).
Code:
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
Code:
SAMP.SetGameKeyState(17, 255)
Actor.StorePos(1@, 13@, 14@, 15@)
0470: 16@ = actor $PLAYER_ACTOR current_weapon
0087: 12@ = 15@ // (float)
12@ += 0.5
0@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
alloc 5@ 40
0C0D: struct 5@ offset 0 size 1 = 1
0C0D: struct 5@ offset 1 size 2 = 0@
0C0D: struct 5@ offset 3 size 4 = 13@
0C0D: struct 5@ offset 7 size 4 = 14@
0C0D: struct 5@ offset 11 size 4 = 12@
0C0D: struct 5@ offset 15 size 4 = 13@
0C0D: struct 5@ offset 19 size 4 = 14@
0C0D: struct 5@ offset 23 size 4 = 15@
0C0D: struct 5@ offset 39 size 1 = 16@
0C0D: struct 5@ offset 27 size 4 = 0.0
0C0D: struct 5@ offset 31 size 4 = 0.0
0C0D: struct 5@ offset 35 size 4 = 0.5
6@ = RakNet.NewBitStream()
BitStream.Write(6@, 206, BS_TYPE_BYTE, 1)
BitStream.Write(6@, 5@, BS_TYPE_ARRAY, 40)
RakNet.LiteSend(6@)
RakNet.DeleteBitStream(6@)
free 5@
SAMP.SetGameKeyState(17, 0)