AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Join server HUD message customized (https://forums.alliedmods.net/showthread.php?t=327483)

HaXX0r 09-21-2020 14:49

Join server HUD message customized
 
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!

Supremache 09-22-2020 14:51

Re: Join server HUD message customized
 
Quote:

Originally Posted by HaXX0r (Post 2718385)
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); }


All times are GMT -4. The time now is 01:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.