View Single Post
Author Message
frenetico9
Junior Member
Join Date: Feb 2021
Old 02-13-2021 , 23:12   [req] Admin connect HUD + Sound
Reply With Quote #1

I wanted help to make it work with more than 2 players with different sounds.

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

#define PLUGIN "Entrada Admin HUD + Sound"
#define VERSION "1.0"
#define AUTHOR "Not.Exactly" 

public plugin_init( ) 
{  
    
register_pluginPLUGINVERSIONAUTHOR );

 
public 
plugin_precache( ) 
    
precache_sound("misc/MD.wav")

public 
client_putinserver(id
    
set_task0.3"My_Function"id )

public 
My_Functionid )
{
    if(
get_user_flags(id) & ADMIN_LEVEL_G)
    {  
        new 
name[32];
        
get_user_name(idnamesizeof name 1);
  
   
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(0"El dueno %s Entro al servidor!"name);
        
client_cmd(0"spk misc/MD");
  
  
    }
    else if(
get_user_flags(id) & ADMIN_LEVEL_H)
    { 
        new 
name[32];
        
get_user_name(idnamesizeof name 1);
  
  
        
set_hudmessage(002550.300.4006.012.0);
        
show_hudmessage(0"The Admin %s Entro al Servidor!"name);
    }


Last edited by frenetico9; 02-13-2021 at 23:21.
frenetico9 is offline