public OnVehicleMod(playerid,vehicleid,componentid)
{
if(!(IsPlayerInRangeOfPoint(playerid,5.0,616.7820,-74.8151,997.6350) || IsPlayerInRangeOfPoint(playerid,5.0,615.2851,-124.2390,997.6350) ||
IsPlayerInRangeOfPoint(playerid,5.0,617.5380,-1.9900,1000.6829)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[128];
GetPlayerName(playerid,string,MAX_PLAYER_NAME);
format(string, sizeof(string), "%s кикнут с сервера, причина: CarUpgradeHack",string);
SendClientMessageToAll(0xAA3333AA, string);
Kick(playerid);
}
return 1;
}
new string[128];
GetPlayerName(playerid, string,MAX_PLAYER_NAME);
format(string, sizeof(string), "%s кикнут с сервера, причина: CarUpgradeHack", string);
SendClientMessageToAll(0xAA3333AA, string);
if(!IsPlayerInRangeOfPoint(playerid,15.0,616.7820,-74.8151,997.6350) || !IsPlayerInRangeOfPoint(playerid,15.0,615.2851,-124.2390,997.6350) || !IsPlayerInRangeOfPoint(playerid,15.0,617.5380,-1.9900,1000.6829)) |
break;
GetPlayerVehicleID(playerid) == vehicleid
public OnVehicleMod(playerid,vehicleid,componentid)
{
if(!(IsPlayerInRangeOfPoint(playerid,15.0,616.7820,-74.8151,997.6350) ||
IsPlayerInRangeOfPoint(playerid,15.0,615.2851,-124.2390,997.6350) ||
IsPlayerInRangeOfPoint(playerid,15.0,617.5380,-1.9900,1000.6829)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[128];
GetPlayerName(playerid,string,MAX_PLAYER_NAME);
format(string, sizeof(string), "%s кикнут с сервера, причина: CarUpgradeHack",string);
SendClientMessageToAll(0xAA3333AA, string);
Kick(playerid);
}
return 1;
}
Потом что мешает мне читерить заехав в салон апгрейда? |
И вроде OnVehicleMod не вызывается от читов |
public OnVehicleMod(playerid,vehicleid,componentid)
{
if(GetPlayerInterior(playerid) == 0) BanEx(playerid,"[ACS] anti-s0bеit tuning"); // или проверку на интерьры 1,2,3
}
Originally Posted by RAEN
Вот решил сделать античит против апгрейда машин, в теории должен как часы работать (Координаты брал Modding shops)
Code:
public OnVehicleMod(playerid,vehicleid,componentid) { if(!(IsPlayerInRangeOfPoint(playerid,15.0,616.7820,-74.8151,997.6350) || !IsPlayerInRangeOfPoint(playerid,15.0,615.2851,-124.2390,997.6350) || !IsPlayerInRangeOfPoint(playerid,15.0,617.5380,-1.9900,1000.6829)) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new string[128]; GetPlayerName(playerid,string,MAX_PLAYER_NAME); format(string, sizeof(string), "%s кикнут с сервера, причина: CarUpgradeHack",string); SendClientMessageToAll(0xAA3333AA, string); Kick(playerid); } return 1; } |
if(!(!IsPlayerInRangeOfPoint(playerid,15.0,615.2851,-124.2390,997.6350) ...