[FilterScript] Anti God of Cars
#1

Hello!

Many of you know about the cheat God Of Cars,who do not know - see

http://www.youtube.com/watch?feature...&v=YJ8JP_gNMHM

This prototype anti-cheat to protect your server
There are no false signals
The system has been tested on over 1,000 vehicles

PHP код:

    
// This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT
     
    
public OnPlayerEnterVehicle(playeridvehicleidispassenger){
            
SetPVarInt(playerid,"ac_car_id",vehicleid);
        return 
1;
    }
     
public 
OnPlayerUpdate(playerid){
    if(
IsPlayerInAnyVehicle(playerid)){
        if(
GetPlayerVehicleID(playerid) != GetPVarInt(playerid,"ac_car_id")){
            
SetPVarInt(playerid,"ac_car_id",-1);
            new 
Float:x,Float:y,Float:z;
            
GetPlayerPos(playerid,x,y,z);
            
SetPlayerPos(playerid,x,y,z+1);
            
SendClientMessage(playerid,-1,"Hack");
        }
    }
    return 
1;
}
     
    
putPlayerInVehicle(playerid,vehicle,seat){
            
SetPVarInt(playerid,"ac_car_id",vehicle);
        
PutPlayerInVehicle(playerid,vehicle,seat);
    }
     
    public 
OnPlayerConnect(playerid){
        
SetPVarInt(playerid,"ac_car_id",-1);
            return 
1;
    } 
Thank you for your attention

By Seregamil
Reply


Messages In This Thread
Anti God of Cars - by Seregamil1 - 29.06.2013, 05:13
Re: Anti God of Cars - by Seregamil1 - 29.06.2013, 06:40
Re: Anti God of Cars - by ToFFiK - 30.06.2013, 19:00
Re: Anti God of Cars - by Seregamil1 - 01.07.2013, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)