This code is defently not working pls help me!:
Code:
bool addChatMessage(DWORD textColor, char *text)
{
if (m_dwSAMPBase)
{
DWORD chatinfo = m_dwSAMPBase + 0x212A6C;
DWORD func = m_dwSAMPBase + 0x7A4F0;
__asm mov eax, dword ptr[chatinfo]
__asm mov ecx, dword ptr[eax]
__asm push 0
__asm push textColor
__asm push 0
__asm push text
__asm push 8
__asm call func
return true;
}
}