CLEO Help 0B8C: samp is_cursor_active

CLEO related
Status
Not open for further replies.

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
:isCursorActive
0AA2: 1@ = "samp.dll"
1@ += 0x2ACA3C // ADDR_SAMP_INCHAT_PTR
0A8D: 1@ = read 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0xA0530 // SAMP_FUNC_TOGGLECURSOR
0A8D: 2@ = read 2@ sz 4 vp 0
0AB2: ret 1 2@

ain't working, how's that?
(0.3DL)
 

SpnKO

Member
Joined
Mar 17, 2014
Messages
17
Reaction score
3
Haven't checked in-depth but I believe this snipper toggles the cursor and not checks if it's already active, feel free to correct me.
 

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
where you get this?

https://github.com/Suchty112/SAMP-UDF-for-AutoHotKey/blob/master/SAMP.ahk
global ADDR_SAMP_INCHAT_PTR := [0x21A10C, 0x21A114, 0x2ACA3C]

can't send second one because it's on some other forums
#define SAMP_FUNC_TOGGLECURSOR 0xA0530

Haven't checked in-depth but I believe this snipper toggles the cursor and not checks if it's already active, feel free to correct me.

yeah you might be right, idk where the cursor status is stored though
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
PHP:
:SetTheCursorMode
{
    0.3.DL
    0AB1: @SetTheCursorMode 1 Mode 2
}
IF 0AA2: 10@ = "samp.dll"
THEN                   
    0A8E: 11@ = 10@ + 0x2ACA3C
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0xA0530
    0AA8: call_function_method 11@ struct 12@ num_params 2 pop 0 1 0@ _retVal 6@
END
0AB2: 0

C++:
CMODE_DISABLED = 0 (disabled)
CMODE_LOCKKEYS_NOCURSOR = 1 (keyboard control is locked, cursor is disabled)
CMODE_LOCKCAMANDCONTROL = 2 (keyboard and mouse controls are locked, cursor is on)
CMODE_LOCKCAM = 3 (mouse control is locked, cursor is on)
CMODE_LOCKCAM_NOCURSOR = 4 (mouse control is locked, cursor is disabled)
 
Last edited:
Status
Not open for further replies.
Top