SA-MP Forums Archive
[help] A good anti cheat system - 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: [help] A good anti cheat system (/showthread.php?tid=613567)



[help] A good anti cheat system - StrikerZ - 29.07.2016

hi. can i know a good anti cheat which only gives warnings to admins of a player hacking and no kicks/bans ? Only warnings to admin


Re: [help] A good anti cheat system - AliBro - 29.07.2016

show us the code !


Re: [help] A good anti cheat system - StrikerZ - 29.07.2016

code of what? im asking for good anti cheat -_-


Re: [help] A good anti cheat system - FreAkeD - 29.07.2016

I don't think there are any working or good ones around. The best idea I think would be is to make one yourself.


Re: [help] A good anti cheat system - StrikerZ - 29.07.2016

i don't know how to make one thats why i posted this thread otherwise i would have done it myself


Re: [help] A good anti cheat system - Logic_ - 29.07.2016

PHP код:
/*use a timer*/
foreach(new Player)
{
    if(
/*checking what kind of hacks being used*/)
    {
        if(
/*checking player is admin*/ 0)
        {
            
SendClientMessage(playeridcolor"message of hack");
        }
    }

Something like this can work, this is just an example, you need to script your systems yourself.


Re: [help] A good anti cheat system - Deadpoop - 29.07.2016

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
success)
    {
       
SendClientMessage(playerid, -1"do not hack password!");
       new 
pname[24], string[50];
       
GetPlayerName(playeridpnamesizeof(pname));
       
format(stringsizeof(string), "%s tried to hack password!",
       for(new 
0GetMaxPlayers(); i++) // if your server version is 0.3.7 then batter use getplayerpoolsize
       
{
           if(
IsPlayerAdmin(i)) return SendClientMessage(i, -1string);
       }
    }
    return 
1;




Re: [help] A good anti cheat system - Logic_ - 29.07.2016

Quote:
Originally Posted by Deadpoop
Посмотреть сообщение
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
succes)
    {
       
SendClientMessage(playerid, -1"msg");
    }
    return 
1;

How this is an example of anti cheat? Do you even know what this will do? Stop post hunting.

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 84 seconds.

Why da fuq?

EDIT:

Quote:
Originally Posted by Deadpoop
Посмотреть сообщение
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
succes)
    {
       
SendClientMessage(playerid, -1"do not hack password!");
       new 
pname[24], string[50];
       
GetPlayerName(playeridpnamesizeof(pname));
       
format(stringsizeof(string), "%s tried to hack password!",
       for(new 
0GetMaxPlayers(); i++) // if your server version is 0.3.7 then batter use getplayerpoolsize
       
{
           if(
IsPlayerAdmin(i)) return SendClientMessage(i, -1string);
       }
    }
    return 
1;

-_- Nice anti-cheat script you got there, its an anti-RCON...


Re: [help] A good anti cheat system - Deadpoop - 29.07.2016

-removed-


Re: [help] A good anti cheat system - StrikerZ - 29.07.2016

im not post hunting i have server and i players keep using hacks in it and all i wanted a anti cheat system the problem is that JunkBuster bans when we use /god as adminstrator and I dont know how to install BalkanSecurity cuz instructions are not clear and not in proper language maybe if you can tell me how to install balkan security im sure that my problem will be fixed