Aviso quando jogador entra no servidor. AddonsZm.blogspot.com

Código:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Player Connect Notice"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande"

#define Prefix "Serve"

public plugin_init() {

   register_plugin(PLUGIN, VERSION, AUTHOR)
}

public plugin_precache()  {
   
   precache_sound("buttons/blip1.wav")
}

public client_putinserver(id) {
   
   set_task(2.0, "notice", id)
}

public notice(id) {
   
   new szName[32]
   get_user_name(id, szName, 31)
   
   client_print_color(0, "!g[%s] !t( !y%s !t) Entrou no servidor!",Prefix, szName)
   client_cmd(0, "spk buttons/blip1.wav")
}

stock client_print_color(const id, const input[], any:...) {
   
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!y", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!team2", "^0")
   
   if (id)
      players[0] = id;
   else
      get_players(players, count, "ch")
   
   for (new i = 0; i < count; i++) {
      
      if (is_user_connected(players[i])) {
         
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/
-
Download