SHARE
TWEET

Connect / Disconnect message

orayon Jun 5th, 2020 819 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2.  
  3. public plugin_init()
  4. {
  5.     register_plugin( "connect / disconnect message", "1.0", "BiBi" );
  6. }
  7.  
  8. public client_putinserver(id) client_print(0, print_chat, "%s^3 %s^1 has ^4connected^1 to the server!", (get_user_flags(id) & ADMIN_KICK ? "Admin" : "Player" ), szName(id))
  9.  
  10. public client_disconnect(id) client_print(0, print_chat, "%s^3 %s^1 has ^3disconnected^1 from the server!", (get_user_flags( id) & ADMIN_KICK ? "ADMIN" : "Player" ), szName(id))
  11.  
  12.  
  13. stock szName( id )
  14. {
  15.     new Name[90];
  16.     get_user_name( id, Name, charsmax(Name));
  17.     return Name;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top