SendClientMessage Spam
#7

Quote:
Originally Posted by Prokill911
Посмотреть сообщение
Can't tell if you're being serious or not..
You're wondering why it's spamming?

your "SendToAdmins"
Counts Every player that's in the server..
Then If there's an admin on it sends the message for max players.

PHP код:
public SendToAdmins(color, const string[]) {
    foreach(
Playeri) {
        if(
IsPlayerConnectedEx(i)) {
            if(
AdminLoggedIn[i] == && Player[i][Adminlevel] >= 1) {
                
SendClientMessage(icolormsg);
            }
        }
    }

Fixed above..
Now I'm not sure if YOU are serious or just doesn't know anything about scripting..
His code is perfectly fine, it doesn't count shit and just sends the msg to admins.
He just sends too many ServerBan calls in his anti-cheat script instead of one, as people mentioned above, best way to prevent it is to flag player after sending first msg so next ones won't be send.
Reply


Messages In This Thread
SendClientMessage Spam - by lulo356 - 23.01.2016, 15:13
Re: SendClientMessage Spam - by LetsOWN[PL] - 23.01.2016, 15:31
Re: SendClientMessage Spam - by lulo356 - 23.01.2016, 15:34
Re: SendClientMessage Spam - by xTURBOx - 23.01.2016, 15:42
Re: SendClientMessage Spam - by LetsOWN[PL] - 23.01.2016, 15:46
Re: SendClientMessage Spam - by Prokill911 - 23.01.2016, 16:10
Re: SendClientMessage Spam - by PrO.GameR - 23.01.2016, 17:00
Re: SendClientMessage Spam - by Prokill911 - 23.01.2016, 19:36
Re: SendClientMessage Spam - by Vince - 23.01.2016, 19:54
Re: SendClientMessage Spam - by Pottus - 23.01.2016, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)