CLEO Help Need help with the snippet

CLEO related
Status
Not open for further replies.

Fu$10N

Expert
Joined
Mar 5, 2014
Messages
1,101
Reaction score
10
Code:
:BULLETSYNC
0B20: samp 9@ = actor_handle_by_samp_player_id 0@
Actor.StorePos($PLAYER_ACTOR, 10@ 11@ 12@)
Actor.StorePos(9@, 13@ 14@ 15@)
0AC8: 5@ = allocate_memory_size 40
0C0D: struct 5@ offset 0 size 1 = 1
0C0D: struct 5@ offset 1 size 2 = 0@
0C0D: struct 5@ offset 3 size 4 = 10@
0C0D: struct 5@ offset 7 size 4 = 11@
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 27 size 4 = 0.0
0C0D: struct 5@ offset 31 size 4 = 0.0
0C0D: struct 5@ offset 35 size 4 = 0.5
0B3D: raknet 6@ = new_bit_stream
0B40: raknet bit_stream 6@ write 206 type 0 size 1
0B40: raknet bit_stream 6@ write 5@ type 5 size 40
0B8B: raknet send bit_stream 6@
0B3E: raknet delete_bit_stream 6@
0AC9: free_allocated_memory 5@
0AB2: ret 0
I tried to do a fakekill cleo. Updated bullet_sync packet to 206 from 224, changed size from 39 to 40. It seemingly hits, but the player doesn't lose any health. And I don't see the bullets hitting like in 0.3z. Does anyone know what I got wrong in here ?

[member=111]springfield[/member] [member=60]Opcode.eXe[/member]
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Code:
struct stBulletData
{
	uint8_t		byteType;
	uint16_t	sTargetID;
	float		fOrigin[3];
	float		fTarget[3];
	float		fCenter[3];
	uint8_t		byteWeaponID;
};
 

Fu$10N

Expert
Joined
Mar 5, 2014
Messages
1,101
Reaction score
10
springfield link said:
Code:
struct stBulletData
{
	uint8_t		byteType;
	uint16_t	sTargetID;
	float		fOrigin[3];
	float		fTarget[3];
	float		fCenter[3];
	uint8_t		byteWeaponID;
};
Si ce fac cu asta ? :kidding: Nu le stiu calcula, nu-mi poti da tot snippetul ? [member=111]springfield[/member]
 
Status
Not open for further replies.
Top