14.06.2010, 13:26
Финальная рабочая версия, пользуйтесь!
Приветствуется модернизация/доработка кода.
pawn Code:
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;
}