29.06.2013, 05:13
(
Последний раз редактировалось Seregamil1; 01.07.2013 в 13:47.
)
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
Thank you for your attention
By Seregamil
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(playerid, vehicleid, ispassenger){
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;
}
By Seregamil