View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-22-2020 , 14:51   Re: Join server HUD message customized
Reply With Quote #2

Quote:
Originally Posted by HaXX0r View Post
Hey Alliedmodders!

I’m searching for a plugin that makes a HUD message when people join.
Like... “%s joined the server”
But...

The one I found showing like 8 HUD messages if new map and players start to choose team, because they “join the server”...

So...
Is it possible to only check for players who join server after round 1?

Thanks!
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Connect info" #define VERSION "1.0" #define AUTHOR "Supremache" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public client_putinserver( id ) {     new g_MaxRounds = get_cvar_num("mp_maxrounds")     new g_RoundsLeft = g_MaxRounds - 1         if (g_MaxRounds && !is_user_bot(id) && !is_user_hltv(id)) // not in-game or fake     {         if(g_RoundsLeft) {             set_task(10.0, "Connect_info", id ); // Connect info         }     } } //Connect info public Connect_info(id) {     new szName[32]     get_user_name( id, szName, charsmax(szName))     set_hudmessage( 0, 140, 0, 0.05, 0.24, 2, 6.0, 8.0 );     show_hudmessage( id, "Player %s has joined the server", szName); }
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline