seroff

CFG Check & Execute By Seroff

Jan 18th, 2016
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <amxmodx>
  2. // for old cs!
  3. #define CONFIG "./cstrike/no_ban.cfg"
  4.  
  5. public plugin_precache(){
  6. force_unmodified(force_exactfile, {0, 0, 0}, {0, 0, 0}, CONFIG)
  7. }
  8.  
  9. public plugin_init(){
  10. register_plugin ("CFG Check & Execute","1.0","Seroff");
  11. }
  12.  
  13. public client_putinserver(id){
  14. client_cmd_reliable(id,"exec %s",CONFIG);
  15. }
  16.  
  17. // с гарантией доставки
  18. stock client_cmd_reliable(id, const input[], any:...)
  19. {
  20. // by Sho0ter
  21. static command[1024]
  22. vformat(command, 1023, input, 3)
  23.  
  24. message_begin(id ? MSG_ONE : MSG_ALL, SVC_STUFFTEXT, _, id)
  25. write_string(command)
  26. message_end()
  27.  
  28. return 1
  29. }
Advertisement
Add Comment
Please, Sign In to add comment