Advertisement
raizo21

Anti KnifeBot , AimBot, ESP

Jun 11th, 2019
1,460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.10 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #define PLUGIN "Anti knifebot"
  5. #define VERSION "1.0"
  6. #define AUTHOR "raizo"
  7.  
  8.  
  9. #pragma tabsize 0
  10. #pragma compress 1
  11.  
  12.  
  13. public plugin_precache()
  14. {
  15.     register_plugin(PLUGIN, VERSION, AUTHOR);
  16.  
  17.     register_forward(FM_AddToFullPack, "AddToFullPackPre");
  18.     register_forward(FM_AddToFullPack, "AddToFullPackPost", 1);
  19.     register_event("CurWeapon", "CurWeaponKnife", "be", "2=29");
  20. }
  21.  
  22. public AddToFullPackPost(es, e, ent, host, hostflags, player, pSet)
  23. {
  24.     if (player || pev_valid(ent) || pev_valid(host) || is_user_connected(ent) || is_user_connected(host))
  25.     {
  26.         set_es(es, ES_Solid, SOLID_NOT);
  27.         set_es(es, ES_Spectator, true);
  28.         set_es(es, ES_MoveType, MOVETYPE_TOSS);
  29.         set_es(es, ES_Mins, 0);
  30.         set_es(es, ES_Maxs, 0);
  31.     }
  32.     return FMRES_IGNORED;
  33. }
  34.  
  35. public CurWeaponKnife(id)
  36. {
  37.     if(is_user_alive(id))
  38.     {
  39.         message_begin(MSG_ONE, get_user_msgid("CurWeapon"), _, id);
  40.         write_byte(1);
  41.         write_byte(0);
  42.         write_byte(0);
  43.         message_end();
  44.     }
  45.     return PLUGIN_HANDLED
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement