Advertisement
Guest User

fg

a guest
Aug 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.15 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN "AnalizarCfgAlConectar"
  4. #define VERSION "1.0"
  5. #define AUTHOR "JCSC998"
  6.  
  7. public plugin_init() {
  8.     register_plugin(PLUGIN, VERSION, AUTHOR)
  9. }
  10.  
  11. public client_putinserver(id) {
  12.     set_task(6.0, "Mensaje", id)
  13.     set_task(9.9, "Mensaje2", id)
  14. }
  15.  
  16. public Mensaje(id)
  17. {
  18.     new szNombre[33]
  19.     get_user_name(id, szNombre, charsmax(szNombre))
  20.    
  21.     for (new i = 0; i < 33; ++i) chatcolor(i, "!g |NAW| !team Analizando CFG de %s !g[Estado:Analizando]", szNombre)
  22. }
  23.  
  24. public Mensaje2(id)
  25. {
  26.     new szNombre[33]
  27.     get_user_name(id, szNombre, charsmax(szNombre))
  28.    
  29.     for (new i = 0; i < 33; ++i) chatcolor(i, "!g |NAW| !team %s su CFG fue analizada !g[Estado:Aprobada]", szNombre)
  30. }
  31.  
  32. stock chatcolor(id, const input[], any:...)
  33. {
  34.     static szMsg[191], msgSayText;
  35.    
  36.     if (!msgSayText)
  37.         msgSayText = get_user_msgid("SayText");
  38.    
  39.     vformat(szMsg, 190, input, 3);
  40.    
  41.     replace_all(szMsg, 190, "!g", "^4");
  42.     replace_all(szMsg, 190, "!y", "^1");
  43.     replace_all(szMsg, 190, "!team", "^3");
  44.    
  45.     message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, .player = id);
  46.     write_byte(id ? id : 33);
  47.     write_string(szMsg);
  48.     message_end();
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement