Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This script has been created by MohanedZzZz
- By using this script your servrer will be protected from any kind of hackers using the hack clients.
- Credits:
- MohanedZzZ - For creating the Script.
- Beta-Testing:
- Zeel - s0biet FTV Version Testing/Project.INI (Special Thanks)
- OVRAG - NGS Hacking version
- Orpet - s0biet FLV 1.2 Version
- Potral - NG Project 1.8.5 Version.
- There is many people but i cannot mention them all, thanks.
- Please keep the credits.
- */
- #include <a_samp>
- //===============================[•••• Defines •••]============================
- #define DIALOG_CheckHack 3000
- #define DIALOG_Dialogz 1
- //=============================================================================
- //===============================[•••• Forwards •••]============================
- forward Identifying(playerid);
- forward KickPlayer(playerid);
- forward Checking(playerid);
- //=============================================================================
- //===============================[•••• Enums •••]============================
- enum pInfo
- {
- Float:pz2,
- Float:py2,
- Float:px2,
- Float:cz2
- };
- new PlayerInfo[MAX_PLAYERS][pInfo],Connected[MAX_PLAYERS];
- //=============================================================================
- #pragma tabsize 0
- public OnFilterScriptInit()
- {
- print("\n----------------------------------");
- print(" Anti-s0biet by MohanedZzZ loaded!");
- print("----------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n----------------------------------");
- print(" Anti-s0biet by MohanedZzZ unloaded!");
- print("----------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Connected[playerid] = 0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Connected[playerid] == 0){
- new Float:px, Float:py,Float:cx, Float:cy;
- SetCameraBehindPlayer(playerid);
- SetTimerEx("Checking", 3000, 0, "i", playerid);
- SetTimerEx("Identifying", 6 * 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~r~Identifying, please wait...", 10000, 3);
- GetPlayerCameraFrontVector(playerid, cx, cy, PlayerInfo[playerid][cz2]);
- TogglePlayerControllable(playerid,0);
- #pragma unused px
- #pragma unused py
- Connected[playerid] = 1;
- }
- return 1;
- }
- public Checking(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(playerid,x,y,z+5);
- PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
- return 1;
- }
- public Identifying(playerid)
- {
- new Float:px, Float:py,Float:cx, Float:cy,Float:cz,Float:pz1;
- GetPlayerCameraFrontVector(playerid, cx, cy, cz);
- GetPlayerPos(playerid,Float:px,Float:py,Float:pz1);
- #pragma unused cx
- #pragma unused cy
- #pragma unused px
- #pragma unused py
- if(cz < -0.8 || Float:pz1 != 33.2913)
- {
- 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", "");
- SetTimerEx("KickPlayer",300,false,"d",playerid);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Loaded Correctly, Go to Fight!!", 2000, 3);
- TogglePlayerControllable(playerid,1);
- }
- return 1;
- }
- public KickPlayer(playerid) {Kick(playerid);}
- // MohanedZzZ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement