seroff

Connect Info 2.2.8 By Seroff

Jun 23rd, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. /* PLUGIN 2015 Year */
  2.  
  3. #include <amxmodx>
  4.  
  5. new g_Url;
  6.  
  7. new const PLUGIN[3][]={
  8. "Connect Info",
  9. "2.2.8",
  10. "Seroff"
  11. }
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin(PLUGIN[0], PLUGIN[1], PLUGIN[2])
  16. g_Url = register_cvar("sv_url","");
  17. }
  18.  
  19. public client_connect(id)
  20. {
  21. new s_Url[128]
  22. get_pcvar_string(g_Url, s_Url, sizeof(s_Url)-1)
  23. con_print(id,"========================================");
  24. con_print(id,"* Внимание: на сервере сильнейшая защита");
  25. con_print(id,"* Запрещено использовать читы");
  26. con_print(id,"* При нарушении правил бан!");
  27. con_print(id,"* Наш сайт: %s", s_Url);
  28. con_print(id,"* Приятной игры!");
  29. con_print(id,"========================================");
  30. }
  31.  
  32. stock con_print(id,const msg_content[],any:...){
  33. new msg[192],MSG[192];
  34. vformat(msg, charsmax(msg), msg_content, 3);
  35. formatex(MSG,charsmax(MSG),"%s^n",msg);
  36. message_begin(MSG_ONE, 8, {0,0,0}, id);
  37. write_string(MSG);
  38. message_end();
  39. }
Advertisement
Add Comment
Please, Sign In to add comment