07.09.2014, 11:58
pawn Код:
new veh1 = GetPlayerVehicleID(playerid),model = GetVehicleModel(vehicleid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(model != 460 && model != 520 ||model != 519 ||model != 553 ||model != 577 ||model != 592 ||model != 593 ||model != 513 ||model !=512 ||model !=511 ||model != 476 )
{
if(veh1 != 460 || veh1 != 520 ||veh1 != 519 ||veh1 != 553 ||veh1 != 577 ||veh1 != 592 ||veh1 != 593 ||veh1 != 513 ||veh1 !=512 ||veh1 !=511 ||veh1 != 476 )
{
if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 260){
Player[playerid][pBan]=1;
SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Vehicle Speed Hack");
format(pstring, 128, " %s has been banned from the server. Reason:Vehicle Speed Hack", GetName(playerid));
SendClientMessageToAll(COLOR_KRED, pstring);
SaveIn("BanLog.txt",pstring);
SetTimerEx("KickPlayer",1000/2,false,"d", playerid);
}
}
}
}
return 1;
}