26.10.2013, 04:18
Basically my script has a good hack detection scripted in, it tells me when they are hacking vehicles, weapons, air breaking and all. I want to know how i would change this code to not alert me, but ban the player instantly.
Код:
ExecuteNOPAction(playerid) { new string[128]; new newcar = GetPlayerVehicleID(playerid); if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; } NOPTrigger[playerid]++; RemovePlayerFromVehicle(playerid); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid, X, Y, Z+2); NOPCheck(playerid); if(NOPTrigger[playerid] > 1) { new sec = (NOPTrigger[playerid] * 5000)/1000-1; format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may be NOP hacking - restricted vehicle (model %d) for %d seconds.", GetPlayerNameEx(playerid), playerid, GetVehicleModel(newcar),sec); ABroadCast(COLOR_YELLOW, string, 2); } retu