Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. forward necuupdate();
  2. public necuupdate()
  3. {
  4. foreach(Player, playerid)
  5. {
  6. if(UlogovanProvera[playerid] == 1)
  7. {
  8. //ZABRANJENA ORUZIJA ANTICHEAT HACK
  9. if(PlayerInfo[playerid][pAdmin] < 1)
  10. {
  11. 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))
  12. {
  13. new wname[100];
  14. new string[256];
  15. GetWeaponName(GetPlayerWeapon(playerid), wname, sizeof(wname));
  16. format(string, sizeof(string), ""SPLAVA"[AC] "SIVA"Igrac %s je upravo stvorio oruzje '%s' - "CRVENA"AntiCheat ga je banovao",GetName(playerid),wname);
  17. AdminGameMaster(-1, string);
  18. ResetPlayerWeapons(playerid);
  19. Ban(playerid);
  20. }
  21. }
  22. if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { //anticresher
  23. new Float:vec[3];
  24. GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
  25. new bool:possible_crasher = false; for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
  26. if (floatabs(vec[i]) > 10.0) possible_crasher = true;
  27. if (possible_crasher) return 1; //do not send fake data, prevents crash }
  28. }
  29. if(GetPlayerCameraMode(playerid) == 53) {
  30. new Float:kLibPos[3];
  31. GetPlayerCameraPos(playerid, kLibPos[0], kLibPos[1], kLibPos[2]);
  32. if(kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0) {
  33. Kick(playerid);
  34. return 0;
  35. }
  36. }
  37. if(IsPlayerInAnyVehicle(playerid))
  38. {
  39. if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
  40. {
  41. new sspeed[50];
  42. format(sspeed, sizeof(sspeed), "%d", GetSpeed(playerid));
  43. PlayerTextDrawSetString(playerid, BRZINOMER[9][playerid], sspeed);
  44. new Float: Pos[4];
  45. GetVehicleVelocity(GetPlayerVehicleID(playerid), Pos[0], Pos[1], Pos[2]);
  46. new keys, ud, lr;
  47. GetPlayerKeys(playerid, keys, ud, lr);
  48. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  49. {
  50.  
  51. }
  52. }
  53. }
  54. if(UlogovanProvera[playerid] == 1)
  55. {
  56. if(Poligon[playerid] >= 1)
  57. {
  58. if(IsPlayerInAnyVehicle(playerid))
  59. {
  60. if(GetSpeed(playerid) > 100)
  61. {
  62. Poligon[playerid] = 0;
  63. DisablePlayerCheckpoint(playerid);
  64. RemovePlayerFromVehicle(playerid);
  65. SCM(playerid,-1, "[AS] "CRVENA"Pali ste na vozackom ispitu jer ste prekoracili briznu od 100kmh na gradskoj voznji!");
  66. RTC(GetPlayerVehicleID(playerid));
  67. }
  68. }
  69. }
  70. }
  71. ///////////////////////////////////////////////////////////////////////////////////
  72. if(UlogovanProvera[playerid] == 1) if(RadioAktiviran[playerid] == 1 && !IsPlayerInAnyVehicle(playerid)) return RadioAktiviran[playerid] = 0, StopAudioStreamForPlayer(playerid);
  73. ///////////////////////////////////////////////////////////////////////////////////
  74. if(UlogovanProvera[playerid] == 1) if(UsaoAutoProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoAutoProdaja[playerid] = -1;
  75. ///////////////////////////////////////////////////////////////////////////////////
  76. if(UlogovanProvera[playerid] == 1) if(UsaoMotorProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoMotorProdaja[playerid] = -1;
  77. ////////////////////////////////////////////////////////////////////////////////////
  78. if(UlogovanProvera[playerid] == 1) if(UsaoAvionProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoAvionProdaja[playerid] = -1;
  79. ////////////////////////////////////////////////////////////////////////////////////
  80. if(UlogovanProvera[playerid] == 1) if(UsaoPloviloProdaja[playerid] != -1 && !IsPlayerInAnyVehicle(playerid)) return UsaoPloviloProdaja[playerid] = -1;
  81. ///////////////////////////////////////////////////////////////////////////////////
  82. static zadnjiid[MAX_PLAYERS], menjanjeida[MAX_PLAYERS], promenavremena[MAX_PLAYERS];
  83. new idodvozila = GetPlayerVehicleID(playerid);
  84. if(idodvozila > 0)
  85. {
  86. if(idodvozila != zadnjiid[playerid])
  87. {
  88. if(GetTickCount() - promenavremena[playerid] < 5000)
  89. {
  90. menjanjeida[playerid]++;
  91. if(menjanjeida[playerid] > 3)
  92. {
  93. new string[100];
  94. format(string, sizeof(string), ""CRVENA"[AC] "SIVA" Djubre po imenu %s je upravo pokusao da baci vozila po serveru pa je kikovan!",GetName(playerid));
  95. SetVehicleToRespawn(idodvozila); AdminGameMaster(-1, string);
  96. freeze[playerid] = SetTimerEx("KonektKick", 1000, 0, "d", playerid);
  97. return 0;
  98. }
  99. }
  100. else menjanjeida[playerid] = 1;
  101. }
  102. zadnjiid[playerid] = idodvozila;
  103. promenavremena[playerid] = GetTickCount();
  104. }
  105. }
  106. }
  107. return 1;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement