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

Solved Request: HUD message when player joins and leaves


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kaiii
Junior Member
Join Date: Jul 2023
Location: Hungary
Old 10-10-2023 , 04:16   Request: HUD message when player joins and leaves
Reply With Quote #1

Hello! I want to add a small plugin to my zombie server, but the problem is that I'm still not very good at AMXX coding... In an old zombie server I saw that there is a "hudmessage" that says "XYZ has entered the server... Have a good game! (Rank X of Y) " and when he exits " Goodbye XYZ! We hope you come back" how could someone do that? Attached are the example pictures Even though the pictures are hungarian, any help would be appreciated!
Attached Thumbnails
Click image for larger version

Name:	kép_2023-10-08_202149024.png
Views:	102
Size:	38.5 KB
ID:	201830   Click image for larger version

Name:	kép_2023-10-08_202101847.png
Views:	80
Size:	74.2 KB
ID:	201831  
__________________
I know God doesn't hear dead men. But I expect he answers them.

Last edited by kaiii; 11-24-2023 at 12:06.
kaiii is online now
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 10-10-2023 , 07:28   Re: Request: HUD message when player joins and leaves
Reply With Quote #2

StatsX Shell brings that function
__________________
mlibre is offline
kaiii
Junior Member
Join Date: Jul 2023
Location: Hungary
Old 10-10-2023 , 09:00   Re: Request: HUD message when player joins and leaves
Reply With Quote #3

How can i enable that? Or where should i enable it, because i have statsx but i cant find it anywhere
__________________
I know God doesn't hear dead men. But I expect he answers them.
kaiii is online now
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 10-10-2023 , 11:38   Re: Request: HUD message when player joins and leaves
Reply With Quote #4

here
__________________
mlibre is offline
kaiii
Junior Member
Join Date: Jul 2023
Location: Hungary
Old 10-10-2023 , 14:04   Re: Request: HUD message when player joins and leaves
Reply With Quote #5

But i want everyone to see who joined and who left... Like when someone joins, everyone gets a hudmessage saying like : "XYZ Connected to the server... Have fun... His rank (X out of Y)" and when that player leaves, everyone gets a hudmessage again saying "XYZ left the server, hope he comes back soon "

I've tried to look into the cfg, but i cant find anything related to this...
__________________
I know God doesn't hear dead men. But I expect he answers them.
kaiii is online now
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 10-10-2023 , 15:28   Re: Request: HUD message when player joins and leaves
Reply With Quote #6

these cvar are active by default, only when the player connects
  • amx_statsx_conn_msg_enabled
  • amx_statsx_conn_msg_visit

It does not have a message when it is disconnected, a condition would have to be added in connect_message_anonce
__________________
mlibre is offline
sb123
Senior Member
Join Date: Jan 2007
Old 10-11-2023 , 11:26   Re: Request: HUD message when player joins and leaves
Reply With Quote #7

Is it this plugin?
Enter_leave.txt Put it in the amxmodx data lang directory
Attached Files
File Type: sma Get Plugin or Get Source (Enter_leave.sma - 90 views - 2.8 KB)
File Type: txt Enter_leave.txt (439 Bytes, 43 views)
__________________
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
kaiii
Junior Member
Join Date: Jul 2023
Location: Hungary
Old 10-19-2023 , 12:04   Re: Request: HUD message when player joins and leaves
Reply With Quote #8

Quote:
Originally Posted by sb123 View Post
Is it this plugin?
Enter_leave.txt Put it in the amxmodx data lang directory
Yes! This was it! Thank you very much, i appreciate it!!!
__________________
I know God doesn't hear dead men. But I expect he answers them.
kaiii is online now
Reply



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 17:51.


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