SendClientMessage Help...
#1

HI All
I Create A Anti Cheat But When Player Use Fly Hack Or Something The Message Send Three Times
What I Do To Message Send One Time ?
Plesae Help?
pawn Код:
format(string,sizeof(string),"[ANTI-CHEAT] {FFFFFF}Player {ffc1cb}%s(%d) {FFFFFF}Has Kicked Form The Server {4f95ff}[Reason : Fly Hack].",PlayerName(playerid),playerid);
        SendClientMessageToAll(COLOR_GREEN,string);
Reply
#2

Your problem isn't in SendClientMessage, increase your timer increment so that it doesn't detect the hack multiple times.
Reply
#3

zDevon What I Do?
Reply
#4

You need to create a global variable with bool on top of your script like new bool:breakmsg[MAX_PLAYERS];

Then on your anti airbreak script, put it like this:
pawn Код:
if(breakmsg[playerid] == false)
{
    //your anti fly hack stuff here and the message
    breakmsg[playerid] = true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)