Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //====================//
- // Lumix's Anti Cheat
- // v1.2
- //====================//
- #include <a_samp>
- #pragma tabsize 0
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #define FERI_WITELI 0xFF0000AA // its color red
- public OnFilterScriptInit()
- {
- print(" Chaitvirta [Lumix's | AntiCheat v1.2]");
- return 1;
- }
- #endif
- public OnPlayerUpdate(playerid)
- {
- for (new i = 0; i < MAX_PLAYERS; i++) // igebs motamasheebis idebs da maximalur raodenobas // gets player ids an maximum players on server//
- {
- if (GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36 || GetPlayerWeapon(i) == 9 || GetPlayerWeapon(i) == 26 || GetPlayerWeapon(i) == 37)
- {
- new saxeli[MAX_PLAYER_NAME];
- GetPlayerName(i,saxeli,sizeof(saxeli));
- new xazi[128]; // "xazi" ~ "sting"
- GetPlayerName(i, saxeli, sizeof(saxeli));
- format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Weapon Hack", saxeli);// "saxeli" ~ "pname"
- SendClientMessageToAll(FERI_WITELI,xazi); // es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
- Kick(i); // kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
- }
- }
- for (new i = 0; i < MAX_PLAYERS; i++) // igebs motamasheebis idebs da maximalur raodenobas // gets player ids an maximum players on server//
- {
- 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//
- {
- new saxeli[MAX_PLAYER_NAME];
- GetPlayerName(i,saxeli,sizeof(saxeli));
- new xazi[128];
- format(xazi, 128, "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Jetpack Hack", saxeli);// "saxeli" ~ "pname"
- SendClientMessageToAll(FERI_WITELI,xazi); // es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
- Kick(i); // kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
- }
- }
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- new Float:Health;
- GetPlayerHealth(i, Health);
- if (Health > 100)
- {
- new msaxeli[MAX_PLAYER_NAME];
- GetPlayerName(i,msaxeli,sizeof(msaxeli));
- new xazi[128];
- format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Health Hack 100+", msaxeli);
- SendClientMessageToAll(FERI_WITELI, xazi);// es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
- Kick(playerid);// kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
- }
- }
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- new Float:Broni;
- GetPlayerArmour(i, Broni);
- if (Broni > 100)
- {
- new msaxeli[MAX_PLAYER_NAME];
- GetPlayerName(i,msaxeli,sizeof(msaxeli));
- new xazi[128];
- format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}Armour Hack 100+", msaxeli);
- SendClientMessageToAll(FERI_WITELI, xazi);// es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
- Kick(i);// kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
- }
- }
- //=============== 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====
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- new animlib[32];
- new animsaxeli[32];
- if(!IsPlayerInAnyVehicle(playerid))
- {
- GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animsaxeli, sizeof(animsaxeli));
- 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)
- {
- new saxeli[MAX_PLAYER_NAME];
- GetPlayerName(i,saxeli,sizeof(saxeli)); // gets player name connected to server to display in SendClientMessageToAll
- new xazi[128]; // string ~ "xazi"
- SendClientMessage(i, FERI_WITELI, " Please Delete s0beit And Reconnect To Server!");// es igzavneba mxolod motamashestan // sends only to you "player"//
- format(xazi, sizeof(xazi), "[Lumix's AntiCheat v1.2] %s Was Kicked | Reason : {ffffff}s0beit", saxeli);
- SendClientMessageToAll(FERI_WITELI, xazi);// es gzavnis mtel servertan mesijs // sends anti hack message to all players online//
- Kick(i);// kickavs motamashes tu ginda ban dawere "Ban(i);" // kicks player if you want to ban type "Ban(i);"//
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment