So, I made loop but I want it to auto disable when certain message appears on chat.
Here is code, what I do wrong that it doesn't auto stop?
{$CLEO .cs}
0000:
while not SAMP.Available()
wait 100
end
0AC8: 0@ = allocate_memory_size 250
0AC8: 1@ = allocate_memory_size 250
WHILE TRUE
WAIT 0...
What I do wrong? I want command to trigger if chat message appear. On lua.
function onAddChatMessage(text)
if (text == '*Bodyguard Name Surname wants to protect you for $200, type /accept bodyguard to accept.') then
sendCommand('/accept bodyguard')
end
return false
end
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.