Jump to content
Sign in to follow this  
Darian433

[Plugin] Welcome Message (hud / dhud) + rank (zombie style)

Recommended Posts

1. Nume plugin: Welcome Message (hud / dhud) + rank (in stilul celor zombie)
2. Autor & Versiune: gasit pe internet / 1.0.0
3. Comenzi: -
4. Cvar: -
5. Alte detalii: Acest plugin va afisa un mesaj in hud sau dhud (in functie de ce descarcati) fiecarui jucator care se conecteaza pe server, va fi afisat un mesaj de bun venit si rank-ul acestuia (in stilul serverelor de zombie).
6. Link download: 
DHUD (scris mare si gros)

#include < amxmodx > 
#include < csstats >
#include < dhudmessage >

#define PLUGIN_VERSION	"1.0.0"

new gHostName;

public plugin_init( )
{
	register_plugin( "Connect Info Hud", "1.0.1", "Hattrick" );
	
	gHostName = get_cvar_pointer( "hostname" );
}

public client_putinserver( id )
{
	if( is_user_bot( id ) ) 
		return;
	
	set_task( 10.0, "go_info", id );
}

public go_info( id )
{
	new s_HostName[ 64 ];
	get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) );
	
	static s_Name [ 32 ];
	get_user_name( id, s_Name, charsmax ( s_Name ) );
	
	static stats[ 8 ], body[ 8 ];
	new s_RankPos = get_user_stats ( id, stats, body );
	new s_MaxRank = get_statsnum ( );
	
	set_dhudmessage( 250, 150, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 );
	show_dhudmessage( id, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", s_Name, s_HostName, s_RankPos, s_MaxRank );
}

HUD (scris normal, subtire)
 

#include < amxmodx > 
#include < csstats >

#define PLUGIN_VERSION	"1.0.0"

new gHostName;

public plugin_init( )
{
	register_plugin( "Connect Info Hud", "1.0.1", "Hattrick" );
	
	gHostName = get_cvar_pointer( "hostname" );
}

public client_putinserver( id )
{
	if( is_user_bot( id ) ) 
		return;
	
	set_task( 10.0, "go_info", id );
}

public go_info( id )
{
	new s_HostName[ 64 ];
	get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) );
	
	static s_Name [ 32 ];
	get_user_name( id, s_Name, charsmax ( s_Name ) );
	
	static stats[ 8 ], body[ 8 ];
	new s_RankPos = get_user_stats ( id, stats, body );
	new s_MaxRank = get_statsnum ( );
	
	set_hudmessage( 250, 150, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 );
	show_hudmessage( id, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", s_Name, s_HostName, s_RankPos, s_MaxRank );
}

7. Poze: (hud)

3J44EBS.jpg

(dhud)
WmE1lsY.jpg


Link-uri utile, nu ezita sa le folosesti! 😁
Counter-Strike 1.6 (AMXX) Support - click aici

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...