- 307
- 218
does someone have address for chat input toggle on ?
C++:
#define SAMP_CHAT_INPUT_INFO_OFFSET 0x21A0E8 // pointer to pointer to structure stInputInfo
struct stInputBox
{
void *pUnknown;
uint8_t bIsChatboxOpen; // <------------------------------ maybe this?
uint8_t bIsMouseInChatbox;
uint8_t bMouseClick_related;
uint8_t unk;
DWORD dwPosChatInput[2];
uint8_t unk2[263];
int iCursorPosition;
uint8_t unk3;
int iMarkedText_startPos; // Highlighted text between this and iCursorPosition
uint8_t unk4[20];
int iMouseLeftButton;
};
typedef void(__cdecl *CMDPROC) (PCHAR);
struct stInputInfo
{
void *pD3DDevice;
void *pDXUTDialog;
stInputBox *pDXUTEditBox;
CMDPROC pCMDs[SAMP_MAX_CLIENTCMDS];
char szCMDNames[SAMP_MAX_CLIENTCMDS][33];
int iCMDCount;
int iInputEnabled;
char szInputBuffer[129];
char szRecallBufffer[10][129];
char szCurrentBuffer[129];
int iCurrentRecall;
int iTotalRecalls;
CMDPROC pszDefaultCMD;
};
6 line?
Последнее редактирование: