orayon

Connect / Disconnect message

Jun 5th, 2020 (edited)
1,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.47 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. 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))
  4.  
  5. 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))
  6.  
  7.  
  8. stock szName( id )
  9. {
  10.     new Name[90];
  11.     get_user_name( id, Name, charsmax(Name));
  12.     return Name;
  13. }
Add Comment
Please, Sign In to add comment