SendClientMessage spamming the chat
#3

I think, it's because OnPlayerUpdate(playerid) is called at least per seconds. If you do an action, OnPlayerUpdate, will be called. So aiming something, shoot, walk, drive, etc .. call OnPlayerUpdate(playerid) like every 0,5 sec (IT'S NOT THE EXACT VALUE).

So, I think you should add a new variable like warnedPlayer[playerid] and this resetting every minute or 2 mins, etc..
I hope this helped you!
Reply


Messages In This Thread
SendClientMessage spamming the chat - by humayunaftabkhan02 - 06.05.2016, 11:40
Re: SendClientMessage spamming the chat - by cdoubleoper - 06.05.2016, 12:22
Re: SendClientMessage spamming the chat - by Dayrion - 06.05.2016, 12:31
Re: SendClientMessage spamming the chat - by MBilal - 06.05.2016, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)