downloadstuff
Active member
- Joined
- Apr 4, 2015
- Messages
- 82
- Reaction score
- 0
so i found this snippet
and What i'd like to do with this snippet is the following:
I want that my position is shown like if i am 5 meters to the left of my current client sided position, so that in my screen i am at my current position and to the others and to the server i am 5 meters to the left. But i want this to be synced with all my movements.. for example if i aim and shoot, i want them to see me aiming and shooting, but my position is 5 meters to the left of my actual position.
(This is for testing purposes dont ask why ahaha, but its really important if you help me with this one)
https://ugbase.eu/snippets/sendonfootdatasync/
and What i'd like to do with this snippet is the following:
I want that my position is shown like if i am 5 meters to the left of my current client sided position, so that in my screen i am at my current position and to the others and to the server i am 5 meters to the left. But i want this to be synced with all my movements.. for example if i aim and shoot, i want them to see me aiming and shooting, but my position is 5 meters to the left of my actual position.
(This is for testing purposes dont ask why ahaha, but its really important if you help me with this one)
https://ugbase.eu/snippets/sendonfootdatasync/
Code:
:SendOnFootDataSync
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
3@ = SAMP.GetPlayerStruct(3@)
3@ += 109
0AC8: 4@ = allocate_memory_size 68
0C10: memcpy destination 4@ source 3@ size 68
0C0D: struct 4@ offset 6 size 4 = 0@
0C0D: struct 4@ offset 10 size 4 = 1@
0C0D: struct 4@ offset 14 size 4 = 2@
0B3D: raknet 5@ = new_bit_stream
RakNet.Write(5@, 207, 0, 1)
RakNet.Write(5@, 4@, 5, 68)
0B8B: raknet send bit_stream 5@
0B3E: raknet delete_bit_stream 5@
0AC9: free_allocated_memory 4@
0AB2: ret 0