Raised This Month: $119 Target: $400
 29% 

HUD remove/destroy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mankled
Senior Member
Join Date: Oct 2019
Old 10-24-2020 , 01:40   HUD remove/destroy
Reply With Quote #1

How do I remove/destroy a HUD for every player in the server?

Example:
My server has a plugin where shows a HUD with the best player online in the server.

How HUD looks like:
The Best Player is: Mankled
Kills: 10 | Death: 1

This HUD is showed while playing the entire map (it's never removed/destroyed)

But, the problem comes. When this best player disconnect, it doesnt show the best player anymore, even kills/death, it showed like this.

The Best Player is:
Kills: 0 | Death: 0

So, What I need is to know what function to use, to make it reappear again with new best player, and how to display it to every player in the server. Like an update instantly when the old best player disconnect


**ALL ABOVE IS JUST AN EXAMPLE**
Mankled is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-24-2020 , 03:51   Re: HUD remove/destroy
Reply With Quote #2

Post the plugin.
__________________
HamletEagle is offline
Mankled
Senior Member
Join Date: Oct 2019
Old 10-24-2020 , 13:31   Re: HUD remove/destroy
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Post the plugin.
As I said above its an example and there's no plugin
, just tell what should I put in client_disconnect to destroy it and make it reappear
Mankled is offline
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 10-24-2020 , 13:43   Re: HUD remove/destroy
Reply With Quote #4

if was an example ┐how you know that problem exists ?
Without code its impossible to fix the problem, its not just put some random code in client_disconnect and ready. Dependt of how the plugin is coded.

The HUD dissapear after x amount of time or when send another hud in the same channel.
You have to make a loop of players, find the best player and make a new hud.
__________________
Quote:
Originally Posted by rak View Post
ayudamos.. pero no de la forma que quiere la mayoria
https://steamcommunity.com/id/r0maarg
Discord: fran_romaniello#7612

Last edited by r0ma; 10-24-2020 at 13:44.
r0ma is offline
Send a message via MSN to r0ma
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-24-2020 , 13:54   Re: HUD remove/destroy
Reply With Quote #5

Quote:
Originally Posted by Mankled View Post
As I said above its an example and there's no plugin
, just tell what should I put in client_disconnect to destroy it and make it reappear
As I said, post the plugin. No one is going to waste time with an XY problem and there's no generic answer since a hud message is not permanent.
__________________
HamletEagle is offline
Mankled
Senior Member
Join Date: Oct 2019
Old 11-05-2020 , 00:27   Re: HUD remove/destroy
Reply With Quote #6

You'll believe. ..

Last edited by Mankled; 11-07-2020 at 16:03.
Mankled is offline
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 11-05-2020 , 01:15   Re: HUD remove/destroy
Reply With Quote #7

maybe the plugin check for new Nemesis/Survivor before the zombie plague make the new one. Try put one task to the function check_again_nsp
__________________
Quote:
Originally Posted by rak View Post
ayudamos.. pero no de la forma que quiere la mayoria
https://steamcommunity.com/id/r0maarg
Discord: fran_romaniello#7612
r0ma is offline
Send a message via MSN to r0ma
Mankled
Senior Member
Join Date: Oct 2019
Old 11-05-2020 , 02:55   Re: HUD remove/destroy
Reply With Quote #8

You'll believe...

Last edited by Mankled; 11-07-2020 at 16:02.
Mankled 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 15:15.


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