Guest User

[Lumix's AntiCheat v1.2]

a guest
Nov 16th, 2012
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //====================//
  2. // Lumix's Anti Cheat
  3. // v1.2
  4. //====================//
  5. #include <a_samp>
  6.  
  7. #pragma tabsize 0
  8.  
  9. #define FILTERSCRIPT
  10. #if defined FILTERSCRIPT
  11. #define FERI_WITELI 0xFF0000AA // its color red
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     print(" Chaitvirta [Lumix's | AntiCheat v1.2]");
  16.     return 1;
  17. }
  18. #endif
  19.  
  20. public OnPlayerUpdate(playerid)
  21. {
  22.     for (new i = 0; i < MAX_PLAYERS; i++) // igebs motamasheebis idebs da maximalur raodenobas // gets player ids an maximum players on server//
  23.     {
  24.      if (GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 9 || GetPlayerWeapon(i) == 26 || GetPlayerWeapon(i) == 37)
  25.        {
  26.        new saxeli[MAX_PLAYER_NAME];
  27.        GetPlayerName(i,saxeli,sizeof(saxeli));
  28.        new xazi[128]; // "xazi" ~ "sting"
  29.        GetPlayerName(i, saxeli, sizeof(saxeli));
  30.        format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Weapon Hack", saxeli);// "saxeli" ~ "pname"
  31.        SendClientMessageToAll(FERI_WITELI,xazi); // es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
  32.        Kick(i); // kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
  33.        }
  34.      }
  35.     for (new i = 0; i < MAX_PLAYERS; i++) // igebs motamasheebis idebs da maximalur raodenobas // gets player ids an maximum players on server//
  36.     {
  37.      if(GetPlayerSpecialAction(i) == 2) // es igebs motamashis animacia tu ra animaciashi imyofeba // gets player current animation, if it equals 2, it means he/she has jetpack//
  38.        {
  39.        new saxeli[MAX_PLAYER_NAME];
  40.        GetPlayerName(i,saxeli,sizeof(saxeli));
  41.        new xazi[128];
  42.        format(xazi, 128, "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Jetpack Hack", saxeli);// "saxeli" ~ "pname"
  43.        SendClientMessageToAll(FERI_WITELI,xazi); // es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
  44.        Kick(i); // kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
  45.        }
  46.     }
  47.     for (new i = 0; i < MAX_PLAYERS; i++)
  48.     {
  49.        new Float:Health;
  50.        GetPlayerHealth(i, Health);
  51.        if (Health > 100)
  52.     {
  53.        new msaxeli[MAX_PLAYER_NAME];
  54.        GetPlayerName(i,msaxeli,sizeof(msaxeli));
  55.        new xazi[128];
  56.        format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Health Hack 100+", msaxeli);
  57.        SendClientMessageToAll(FERI_WITELI, xazi);// es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
  58.        Kick(playerid);// kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
  59.        }
  60.     }
  61.     for (new i = 0; i < MAX_PLAYERS; i++)
  62.     {
  63.        new Float:Broni;
  64.        GetPlayerArmour(i, Broni);
  65.        if (Broni > 100)
  66.     {
  67.        new msaxeli[MAX_PLAYER_NAME];
  68.        GetPlayerName(i,msaxeli,sizeof(msaxeli));
  69.        new xazi[128];
  70.        format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Armour Hack 100+", msaxeli);
  71.        SendClientMessageToAll(FERI_WITELI, xazi);// es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
  72.        Kick(i);// kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
  73.        }
  74.     }
  75. //=============== Here Starts GET CJ RUN ANIM 80% of Sobeits Use It  Enabled On Connecting Server, So Player Must Turn Off S0b To Join | Similar To Anti S0b====
  76.     for(new i = 0; i < MAX_PLAYERS; i++)
  77.     {
  78.     new animlib[32];
  79.     new animsaxeli[32];
  80.     if(!IsPlayerInAnyVehicle(playerid))
  81.     {
  82.       GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animsaxeli, sizeof(animsaxeli));
  83.       if(strcmp(animlib, "PED", true) == 0 && strcmp(animsaxeli, "RUN_PLAYER", true) == 0 && GetPlayerState(playerid) != PLAYER_STATE_SPECTATING && strcmp(animsaxeli, "BJ_STAND_START_P", true) != 0 && strcmp(animsaxeli, "BJ_COUCH_END_W", true) != 0)
  84.     {
  85.         new saxeli[MAX_PLAYER_NAME];
  86.         GetPlayerName(i,saxeli,sizeof(saxeli)); // gets player name connected to server to display in SendClientMessageToAll
  87.         new xazi[128]; // string ~ "xazi"
  88.         SendClientMessage(i, FERI_WITELI, " Please Delete s0beit And Reconnect To Server!");// es igzavneba mxolod motamashestan // sends only to you "player"//
  89.         format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}s0beit", saxeli);
  90.         SendClientMessageToAll(FERI_WITELI, xazi);// es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
  91.         Kick(i);// kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
  92.         }
  93.       }
  94.     }
  95.   return 1;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment