Numpad0::
{
if(RegExMatch(getChatLineEx(), "Air support Now is avaible"))
{
SendChat("bla bla")
}
}
return
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
}