Any1 knows why not all packets trigger the hook?
0BE3: raknet setup_incoming_rpc_hook @hook
hook:
0BE5: raknet 28@ = get_hook_param PARAM_PACKETID
format 26@ "%d" 28@
0AF8: samp add_message_to_chat 26@
I never see any RPC_ScrShowDialog ( 61 ) even after I join the server and register...
server renders 6 pickups per map I believe, so having multiple in render shouldn't really be important. But just in case, I wrote this, I'm gonna test it out in a sec
0BB9: samp 1@ = get_pickup_pool_ptr
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0 // PickupsCount
if 2@ > 0
then
0A8E: 2@ =...
http://ugbase.eu/index.php?threads/release-pickup-finder.12473/
I found this but if someone could explain to me how exactly functions work in cleo?
:getPickupIdByModel
0BB9: samp 1@ = get_pickup_pool_ptr
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0 // PickupsCount
if 2@ > 0
then...
scroll through the code and look for WriteMem / WriteByte ReadMem / ReadByte
dont suggest externals tho, internals are simpler and easier to code (.dll to inject <-- internal, mem reading / mem writing with openhandle <---- external)
public IntPtr GetModuleAddress(string moduleName)
{
for (int i = 0; i < process.Modules.Count; i++)
if (process.Modules.ModuleName == moduleName)
return process.Modules.BaseAddress;
return IntPtr.Zero;
}
Executing cleo files while the game is running
cs fileName.cs
Executing opcodes mid game
< just paste the opcode >
fpscounter
https://blast.hk/wiki/sampfuncs:console
for example i have a
6.214698385312
52.3532355533
how do I cut it to
6.21
52.35
aka
6.2100000000
52.350000000
(i need them to still be float and not an string)
0509: 7@ = distance_between_XY 1@ 2@ and_XY 4@ 5@
always returns absurdly large number (example : 315890531985)
if
7@ <= 0.8
bugs the game? (gets me tped to loading screen view (the marina part ) )
{$CLEO .cs}
0000: NOP
var
3@ : integer
end
:MAIN
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 45
jf @MAIN
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D: actor 1@ defined
jf @WOW
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
0B37: samp 3@ =...
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.