SA-MP Forums Archive
Vehicle health anti-cheat? - 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: Vehicle health anti-cheat? (/showthread.php?tid=162709)



Vehicle health anti-cheat? - kLx - 24.07.2010

Hi, does anyone have nice ideas how to create a nice vehicle health anti-cheat?
Our role-play server has vehicle damage saving system on private cars, but most of the players just fix their appearance with cheats.
I tried this:
pawn Код:
if( oldhealth < 999 && newhealth > 999 && !Repaired[ vehicleid ] && !AdminDuty [ playerid ] )
    {
        new
            string  [ 87 ],
            name    [ MAX_PLAYER_NAME ];
           
        GetPlayerName         ( playerid, name, MAX_PLAYER_NAME );
        format                ( string, 87, "AdmБspлjimas: %s tikriausiai tvarko automobilб su cheat`ais.", name );
        SendAdminClientMessage( COLOR_YELLOW, string );
    }
But it`s not really effective.


Re: Vehicle health anti-cheat? - selten98 - 24.07.2010

but with that they can't respray...
they will automaticaly get that message


Re: Vehicle health anti-cheat? - Calgon - 24.07.2010

Quote:
Originally Posted by selten98
Посмотреть сообщение
but with that they can't respray...
they will automaticaly get that message
Indeed, although you could create a function to determine whether the player is in a mod-shop or pay and spray.


Re: Vehicle health anti-cheat? - kLx - 24.07.2010

We don`t have modshops in our server, neither the pay`n`sprays