Raised This Month: $ Target: $400
 0% 

Player disconnected - HUD message for Admins only


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-03-2022 , 21:37   Re: Player disconnected - HUD message for Admins only
Reply With Quote #2

Quote:
Originally Posted by StDenisGamers View Post
Hello.

I am looking for just a plugin that lets Admins only know via a HUD message when a player disconnects from the server. I know i can see it in the config but during gameplay its often nice not to constantly press the tab(scoreboard).

thanks in advance!
I'm not sure if it is possible to create a loop inside the 'client disconnected' function but try this and if it doesn't work I will use another method

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}

public 
client_disconnectid )
{
    new 
iPlayer32 ], szName32 ], iNum;
    
get_playersiPlayeriNum"ch" )
    
get_user_nameidszNamecharsmaxszName ) )
    
    for( new 
iiAdminiNumi++ )
    {
        if( 
is_user_admin( ( iAdmin iPlayer] ) ) )
        {
            
set_hudmessage02550, -1.0, -1.0 )
            
show_hudmessageiAdmin"Player %s has disconnected"szName )
        }
    }

__________________
Youtube.com/Supremache

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

Last edited by Supremache; 04-03-2022 at 23:08.
Supremache is offline
 



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 10:33.


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