Hi. After two years doing nothing for SAMP I looked into SAMP 0.3.7 R2.notgood said:How do I get the x, y, z or player id of the nearest target from my mouse position?
ex) GetNearestMouseTarget()
dope said:add GetChatLine_func := DllCall("GetProcAddress", UInt, hModule, Str, "GetChatLine") please
getChatLineEx(line := 0) {
; 0x152 - offset for first message
; 0xFC - size of a message
; 99 - max count of a messages
if(!checkHandles())
return
dwPtr := dwSAMP + ADDR_SAMP_CHATMSG_PTR
dwAddress := readDWORD(hGTA, dwPtr)
if(ErrorLevel)
return
msg := readString(hGTA, dwAddress + 0x152 + ( (99-line) * 0xFC), 0xFC)
if(ErrorLevel)
return
return msg
}
Suicide Bomb said:Is it possible to register client side commands in AHK?
samp.dll+65BA0: void __thiscall registerCommand(int this, const char *commandName, int func)
Ghost29 said:Hello everyone, i need your help, can someone write/find a function that can take screenshots in game? And there is one problem, gdip + ahk doesn't work, it saves black screen or desktop. I really need this function! Thanks.
notgood said:How do I get the x, y, z or player id of the nearest target from my mouse position?
ex) GetNearestMouseTarget()