SendClientMessage Help... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessage Help... (
/showthread.php?tid=519761)
SendClientMessage Help... -
M0HAMMAD - 15.06.2014
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);
Re: SendClientMessage Help... -
zDevon - 15.06.2014
Your problem isn't in SendClientMessage, increase your timer increment so that it doesn't detect the hack multiple times.
Re: SendClientMessage Help... -
M0HAMMAD - 15.06.2014
zDevon What I Do?
Re: SendClientMessage Help... -
iOxide - 15.06.2014
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;
}