Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. /*
  2. This script has been created by MohanedZzZz
  3. By using this script your servrer will be protected from any kind of hackers using the hack clients.
  4. Credits:
  5. MohanedZzZ - For creating the Script.
  6. Beta-Testing:
  7. Zeel - s0biet FTV Version Testing/Project.INI (Special Thanks)
  8. OVRAG - NGS Hacking version
  9. Orpet - s0biet FLV 1.2 Version
  10. Potral - NG Project 1.8.5 Version.
  11. There is many people but i cannot mention them all, thanks.
  12. Please keep the credits.
  13. */
  14.  
  15.  
  16. #include <a_samp>
  17. //===============================[•••• Defines •••]============================
  18. #define DIALOG_CheckHack 3000
  19. #define DIALOG_Dialogz 1
  20. //=============================================================================
  21.  
  22. //===============================[•••• Forwards •••]============================
  23. forward Identifying(playerid);
  24. forward KickPlayer(playerid);
  25. forward Checking(playerid);
  26. //=============================================================================
  27.  
  28. //===============================[•••• Enums •••]============================
  29. enum pInfo
  30. {
  31. Float:pz2,
  32. Float:py2,
  33. Float:px2,
  34. Float:cz2
  35. };
  36. new PlayerInfo[MAX_PLAYERS][pInfo],Connected[MAX_PLAYERS];
  37. //=============================================================================
  38.  
  39. #pragma tabsize 0
  40.  
  41. public OnFilterScriptInit()
  42. {
  43. print("\n----------------------------------");
  44. print(" Anti-s0biet by MohanedZzZ loaded!");
  45. print("----------------------------------\n");
  46. return 1;
  47. }
  48.  
  49. public OnFilterScriptExit()
  50. {
  51. print("\n----------------------------------");
  52. print(" Anti-s0biet by MohanedZzZ unloaded!");
  53. print("----------------------------------\n");
  54. return 1;
  55. }
  56.  
  57. public OnPlayerConnect(playerid)
  58. {
  59. Connected[playerid] = 0;
  60. return 1;
  61. }
  62.  
  63. public OnPlayerSpawn(playerid)
  64. {
  65. if(Connected[playerid] == 0){
  66. new Float:px, Float:py,Float:cx, Float:cy;
  67. SetCameraBehindPlayer(playerid);
  68. SetTimerEx("Checking", 3000, 0, "i", playerid);
  69. SetTimerEx("Identifying", 6 * 1000, 0, "i", playerid);
  70. GameTextForPlayer(playerid, "~r~Identifying, please wait...", 10000, 3);
  71. GetPlayerCameraFrontVector(playerid, cx, cy, PlayerInfo[playerid][cz2]);
  72. TogglePlayerControllable(playerid,0);
  73. #pragma unused px
  74. #pragma unused py
  75. Connected[playerid] = 1;
  76. }
  77. return 1;
  78. }
  79.  
  80.  
  81. public Checking(playerid)
  82. {
  83. new Float:x, Float:y, Float:z;
  84. GetPlayerPos(playerid,x,y,z);
  85. SetPlayerPos(playerid,x,y,z+5);
  86. PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
  87. return 1;
  88. }
  89.  
  90.  
  91.  
  92. public Identifying(playerid)
  93. {
  94. new Float:px, Float:py,Float:cx, Float:cy,Float:cz,Float:pz1;
  95. GetPlayerCameraFrontVector(playerid, cx, cy, cz);
  96. GetPlayerPos(playerid,Float:px,Float:py,Float:pz1);
  97. #pragma unused cx
  98. #pragma unused cy
  99. #pragma unused px
  100. #pragma unused py
  101. if(cz < -0.8 || Float:pz1 != 33.2913)
  102. {
  103. ShowPlayerDialog(playerid, DIALOG_Dialogz, DIALOG_STYLE_MSGBOX, "S0biet detection","{FFFFFF}s0biet hack {FF0000}has been detected{FFFFFF}\nYou're not allow to join with any kind of ilegal mods.", "Bye Bye", "");
  104. SetTimerEx("KickPlayer",300,false,"d",playerid);
  105. }
  106. else
  107. {
  108. GameTextForPlayer(playerid, "~r~Loaded Correctly, Go to Fight!!", 2000, 3);
  109. TogglePlayerControllable(playerid,1);
  110. }
  111. return 1;
  112. }
  113.  
  114.  
  115. public KickPlayer(playerid) {Kick(playerid);}
  116.  
  117. // MohanedZzZ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement