 |
|
Senior Member
Join Date: Sep 2014
Location: Morocco
|

09-01-2015
, 09:22
Re: Need welcome message+rank plugin
|
#3
|
Quote:
Originally Posted by popeye10
try this
PHP Code:
#include < amxmodx > #include < amxmisc > #include < csx > #include < csstats >
public plugin_init( ) { register_plugin( "Connect Info Hud", "1.2", "Spawner" ) }
public client_putinserver( id ) { if( is_user_bot( id ) ) return
set_task( 10.0, "go_info", id ) }
public go_info(id) { new stats[ 8 ], body[ 8 ], hostname[ 64 ], name[ 32 ]
new rank_pos = get_user_stats( id, stats, body ) new rank_max = get_statsnum( )
get_cvar_string( "hostname", hostname, 63 ) get_user_name( id, name, 31 )
set_hudmessage((0, 255, 0, 10.0, 20.0, 2, 6.0, 3.0, 0.1, 1.5) show_hudmessage( id, "Welcome, %s^nWe hope you enjoy you stay here!^n^n%s^n^nYour rank is %d from %d", name, hostname, rank_pos, rank_max ) }
|
|
|
|
|