The online racing simulator
MST Spamming
(3 posts, started )
[#] MST Spamming
Hi all! I don't normally post in the Programmers section but this keeps popping up and it confuses me. If I set a message to this for example:

InSim.Send_MST_Message("/msg ^7Hello World!");

and set it to whenever someone is in one area, it would keep spamming it until they spectate/move out of said area. Is there some code that keeps it so it only says Hello World! once?

Many Thanks

-Dustin
#2 - filur

if (someone is in the area)
{
if (stopspamming == 0)
{
InSim.Send_MST_Message("/msg ^7Hello World!");
stopspamming = 1;
}
}
elseif (noone is in the area)
{
stopspamming = 0;
}

:owl:
Thanks! That gives me something to work off of

MST Spamming
(3 posts, started )
FGED GREDG RDFGDR GSFDG