seroff

NoClip By Seroff

Jul 15th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. public plugin_init()
  5. {
  6. register_plugin("NoClip", "1.0", "Seroff");
  7. }
  8.  
  9. public client_command(id)
  10. {
  11. if(~get_user_flags(id) & ADMIN_IMMUNITY) return 0;
  12. new szArg[10];
  13. read_argv(0,szArg,sizeof(szArg)-1);
  14. if(equal("+noclip",szArg)){
  15. set_user_noclip(id,1);
  16. set_hudmessage(0, 255, 0, -1.0, 0.34, 0, 6.0, 3.0);
  17. show_hudmessage(id, "NoClip Включен!");
  18. }
  19. if(equal("-noclip",szArg)){
  20. set_user_noclip(id,0);
  21. set_hudmessage(255, 0, 0, -1.0, 0.34, 0, 6.0, 3.0);
  22. show_hudmessage(id, "NoClip Выключен!");
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment