Plz fix problem in this plugin, i dont know what is the problem but hud is not coming full it starts and stops in between.
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < csx >
#include <colorchat>
#include <dhudmessage>
//#define HuD_effects random(256), random(256), random(256), 0.09, 0.27, 2 , 1.0, 8.0
#define HuD_effects 0, 170, 255, 0.09, 0.27, 2, 1.0, 15.0
new const Msg[] = "Welcome %s To %s^nWe hope You EnJoy Playing Here^n^nYour rank is %d / %d";
public plugin_init( )
{
register_plugin( "Welcome Message", "1", "$[K]Y~" )
}
public client_putinserver( id )
{
set_task( 10.0, "InfoHud", id )
set_task( 5.0, "adminHUD", id )
}
public InfoHud(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_dhudmessage( HuD_effects )
show_dhudmessage( id, Msg, name, hostname, rank_pos, rank_max )
}
public adminHUD(id)
{
if (is_user_admin(id))
{
client_print_color(id, GREY, "^3Welcome Pro ^4ADMIN :D");
}
}
__________________