Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward necuupdate();
- public necuupdate()
- {
- foreach(Player, playerid)
- {
- if(UlogovanProvera[playerid] == 1)
- {
- //ZABRANJENA ORUZIJA ANTICHEAT HACK
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- if((GetPlayerWeapon(playerid) >= 35 && GetPlayerWeapon(playerid) <= 40) || (GetPlayerWeapon(playerid) >= 44 && GetPlayerWeapon(playerid) <= 45) || (GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 18) || (GetPlayerWeapon(playerid) == 26 || GetPlayerWeapon(playerid) == 27))
- {
- new wname[100];
- new string[256];
- GetWeaponName(GetPlayerWeapon(playerid), wname, sizeof(wname));
- format(string, sizeof(string), ""SPLAVA"[AC] "SIVA"Igrac %s je upravo stvorio oruzje '%s' - "CRVENA"AntiCheat ga je banovao",GetName(playerid),wname);
- AdminGameMaster(-1, string);
- ResetPlayerWeapons(playerid);
- Ban(playerid);
- }
- }
- if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { //anticresher
- new Float:vec[3];
- GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
- new bool:possible_crasher = false; for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
- if (floatabs(vec[i]) > 10.0) possible_crasher = true;
- if (possible_crasher) return 1; //do not send fake data, prevents crash }
- }
- if(GetPlayerCameraMode(playerid) == 53) {
- new Float:kLibPos[3];
- GetPlayerCameraPos(playerid, kLibPos[0], kLibPos[1], kLibPos[2]);
- if(kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0) {
- Kick(playerid);
- return 0;
- }
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- new sspeed[50];
- format(sspeed, sizeof(sspeed), "%d", GetSpeed(playerid));
- PlayerTextDrawSetString(playerid, BRZINOMER[9][playerid], sspeed);
- new Float: Pos[4];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), Pos[0], Pos[1], Pos[2]);
- new keys, ud, lr;
- GetPlayerKeys(playerid, keys, ud, lr);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- }
- }
- }
- if(UlogovanProvera[playerid] == 1)
- {
- if(Poligon[playerid] >= 1)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetSpeed(playerid) > 100)
- {
- Poligon[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- RemovePlayerFromVehicle(playerid);
- SCM(playerid,-1, "[AS] "CRVENA"Pali ste na vozackom ispitu jer ste prekoracili briznu od 100kmh na gradskoj voznji!");
- RTC(GetPlayerVehicleID(playerid));
- }
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////
- if(UlogovanProvera[playerid] == 1) if(RadioAktiviran[playerid] == 1 && !IsPlayerInAnyVehicle(playerid)) return RadioAktiviran[playerid] = 0, StopAudioStreamForPlayer(playerid);
- ///////////////////////////////////////////////////////////////////////////////////
- if(UlogovanProvera[playerid] == 1) if(UsaoAutoProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoAutoProdaja[playerid] = -1;
- ///////////////////////////////////////////////////////////////////////////////////
- if(UlogovanProvera[playerid] == 1) if(UsaoMotorProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoMotorProdaja[playerid] = -1;
- ////////////////////////////////////////////////////////////////////////////////////
- if(UlogovanProvera[playerid] == 1) if(UsaoAvionProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoAvionProdaja[playerid] = -1;
- ////////////////////////////////////////////////////////////////////////////////////
- if(UlogovanProvera[playerid] == 1) if(UsaoPloviloProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoPloviloProdaja[playerid] = -1;
- ///////////////////////////////////////////////////////////////////////////////////
- static zadnjiid[MAX_PLAYERS], menjanjeida[MAX_PLAYERS], promenavremena[MAX_PLAYERS];
- new idodvozila = GetPlayerVehicleID(playerid);
- if(idodvozila > 0)
- {
- if(idodvozila != zadnjiid[playerid])
- {
- if(GetTickCount() - promenavremena[playerid] < 5000)
- {
- menjanjeida[playerid]++;
- if(menjanjeida[playerid] > 3)
- {
- new string[100];
- format(string, sizeof(string), ""CRVENA"[AC] "SIVA" Djubre po imenu %s je upravo pokusao da baci vozila po serveru pa je kikovan!",GetName(playerid));
- SetVehicleToRespawn(idodvozila); AdminGameMaster(-1, string);
- freeze[playerid] = SetTimerEx("KonektKick", 1000, 0, "d", playerid);
- return 0;
- }
- }
- else menjanjeida[playerid] = 1;
- }
- zadnjiid[playerid] = idodvozila;
- promenavremena[playerid] = GetTickCount();
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement