Raised This Month: $12 Target: $400
 3% 

Join server HUD message customized


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HaXX0r
Junior Member
Join Date: Apr 2017
Old 09-21-2020 , 14:49   Join server HUD message customized
Reply With Quote #1

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!
HaXX0r is offline
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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:45.


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