10.04.2013, 00:18
Guys I have a Anti Cheat that runs every 1 second
but when it detects a cheat
i will automatically close the connection without poping out the dialog
any idea how to fix this problem?
but when it detects a cheat
i will automatically close the connection without poping out the dialog
any idea how to fix this problem?
pawn Код:
stock BotBan(playerid,reason[])
{
sData[pBan] += 1;
new reasonn[512],year,month,day,hour,minute,second;
getdate(year,month,day);
gettime(hour,minute,second);
format(reasonn,sizeof(reasonn),""CWHITE"You have been banned from the server\n\nBy: ["CGREEN" Anti-Cheat "CWHITE"]\nReason: ["CGREEN" %s "CWHITE"]\nDate: ["CGREEN" %s %d %d "CWHITE"]\nBan ID: [ "CGREEN"%d"CWHITE" ]\n\nIf you think this is wrong please take a screenshot and post a ban appeal on\n[ "CURL"%s"CWHITE" ]",reason,monthname(month),day,year,sData[pBan],sData[URL]);
ShowPlayerDialog(playerid,D_BAN,MSGBOX,""CSERVER"BANNED",reasonn,"Ok","");
Kick(playerid);
return 0;
}