Raised This Month: $ Target: $400
 0% 

Player disconnected - HUD message for Admins only


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-12-2022 , 13:08   Re: Player disconnected - HUD message for Admins only
Reply With Quote #10

I don't think you need a fixed task for that.

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

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

new g_szName32 ]

public 
plugin_init()
{
        
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_disconnectid )
{
        
get_user_nameidg_szNamecharsmaxg_szName ) )
        
set_task(1.0"OnTaskDisconnected")
}

public 
OnTaskDisconnected()
{
        new 
iPlayer32 ], iNum;
        
get_playersiPlayeriNum"ch" )

        for( new 
iiAdminiNumi++ )
        {
                if( 
is_user_admin( ( iAdmin iPlayer] ) ) )
                {
                        
set_hudmessage02550, -1.0, -1.0 )
                        
show_hudmessageiAdmin"Player %s has disconnected"g_szName )
                }
        }

        
g_szName[0] = EOS

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
 


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


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