SA-MP Forums Archive
Total banned cheaters - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Total banned cheaters (/showthread.php?tid=260290)



Total banned cheaters - Face9000 - 08.06.2011

Hi all guys,i wanna make a counter on server witch count the n° of total bans made.

How?

Any help?Thanks.


Re: Total banned cheaters - cessil - 08.06.2011

using fread and fwrite in a single txt file


Re: Total banned cheaters - PGTips - 08.06.2011

pawn Код:
stock GetCheaters()
{
    new File:file = fopen("cheaters.txt");
    new string[8];
    fread(file, string);
    fclose(file);
    return strval(string);
}
and the when you ban somone yo want it to do +1 to the numbers i guess you can do that if not i can possibly give the line


Re: Total banned cheaters - Face9000 - 08.06.2011

No,i don't need to use fwrite/fopen.

It's possibile to do it with variables?

Like: when player get's banned, Cheaters++;

EDIT: Fixed.


Re: Total banned cheaters - PGTips - 08.06.2011

Edit Post removed as its fixed :P

i wrote it all up for you to