CLEO HELP 0B8C: samp is_cursor_active

Joined
Mar 17, 2014
Messages
17
Likes
3
Points
108
#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.
 
OP
OP
M

mpol77

Well-Known Member
Joined
Oct 24, 2018
Messages
57
Likes
6
Points
13
5
#4
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

Well-Known Member
Joined
Jan 2, 2017
Messages
2,143
Likes
385
Points
113
Location
Lithuania
Website
ugbase.eu
20
#5
PHP:
:SetTheCursorMode
{
    0.3.DL
    0AB1: @SetTheCursorMode 1 Mode 2
}
IF 0AA2: [email protected] = "samp.dll"
THEN                   
    0A8E: [email protected] = [email protected] + 0x2ACA3C
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] + 0xA0530
    0AA8: call_function_method [email protected] struct [email protected] num_params 2 pop 0 1 [email protected] _retVal [email protected]
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:
OP
OP
M

mpol77

Well-Known Member
Joined
Oct 24, 2018
Messages
57
Likes
6
Points
13
5
#6
awesome snippet, thanks
although if I were to make a GetTheCursorMode, what would it be?
 
Top