[req]Need Frags n deaths n rank in HUD
hi guys i need frags , deaths n rank in HUD in top left below radar in green color..tried compiling together got errors.so not aware of it....pls help can any1 combine this 2 plugin in 1 sma of frags n deaths & sma of ranks Code:
#include <amxmodx>Code:
#include < amxmodx > |
Re: [req]Need Frags n deaths n rank in HUD
|
Re: [req]Need Frags n deaths n rank in HUD
thanks a lot..... working....
|
Re: [req]Need Frags n deaths n rank in HUD
1 Attachment(s)
here you go!
PHP Code:
|
Re: [req]Need Frags n deaths n rank in HUD
oh.... thanks again... i made mistake by putting public plugin_init() twice, got it now... thanks for teaching....
|
Re: [req]Need Frags n deaths n rank in HUD
Your welcome hope it helped you! :-)
|
Re: [req]Need Frags n deaths n rank in HUD
Hey cant the rank as hud come under the frags n deaths except of coming at d corner....n change color frags n deaths to green..except of white..
|
Re: [req]Need Frags n deaths n rank in HUD
#include < amxmodx >
#include < csx > #define PLUGIN "Frags and Deaths" #define VERSION "2.0" #define AUTHOR "Danidude" const Float:REFRESH_RATE = 1.0; new maxplayers public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) maxplayers = get_maxplayers() set_task(1.0,"ShowHud",0,"",0,"b") register_plugin( "HUD Rank", "0.0.1", "Exolent" ); set_task( REFRESH_RATE, "TaskShowRank", .flags = "b" ); } public ShowHud() { for(new i = 1 ; i <= maxplayers ; i++) { new Frags = get_user_frags(i) new Deaths = get_user_deaths(i) set_hudmessage(0,255,0,0.02,0.2,0, 1.0, 1.0, 0.1, 0.2, 1) show_hudmessage(i,"Frags : %d ^nDeaths : %d",Frags,Deaths) } } public TaskShowRank( ) { new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum, "ch" ); new iPlayer, iStats[ 8 ]; new iTotalStats = get_statsnum( ); for( new i = 0; i < iNum; i++ ) { iPlayer = iPlayers[ i ]; set_hudmessage( 0,255,0,0.02,0.28, .holdtime = ( REFRESH_RATE + 0.2 ), .fadeintime = 0.1, .fadeouttime = 0.1, .channel = 3 ); show_hudmessage( iPlayer, "Rank: %d / %d", get_user_stats( iPlayer, iStats, iStats ), iTotalStats ); } } Here you go, display fixed :) |
Re: [req]Need Frags n deaths n rank in HUD
Now this file will be removed Reason: you are not allowed to attach .amxx file ;)
|
Re: [req]Need Frags n deaths n rank in HUD
The fade in time was useless so i removed it. here you go :)
#include < amxmodx > #include < csx > #define PLUGIN "Frags and Deaths" #define VERSION "2.0" #define AUTHOR "Danidude" const Float:REFRESH_RATE = 1.0; new maxplayers public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) maxplayers = get_maxplayers() set_task(1.0,"ShowHud",0,"",0,"b") register_plugin( "HUD Rank", "0.0.1", "Exolent" ); set_task( REFRESH_RATE, "TaskShowRank", .flags = "b" ); } public ShowHud() { for(new i = 1 ; i <= maxplayers ; i++) { new Frags = get_user_frags(i) new Deaths = get_user_deaths(i) set_hudmessage(0,255,0,0.02,0.2,0, 1.0, 1.0, 0.1, 0.2, 1) show_hudmessage(i,"Frags : %d ^nDeaths : %d",Frags,Deaths) } } public TaskShowRank( ) { new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum, "ch" ); new iPlayer, iStats[ 8 ]; new iTotalStats = get_statsnum( ); for( new i = 0; i < iNum; i++ ) { iPlayer = iPlayers[ i ]; set_hudmessage( 0,255,0,0.02,0.28, .holdtime = ( REFRESH_RATE + 0.2 ), .fadeintime = 0.0, .fadeouttime = 0.0, .channel = 3 ); show_hudmessage( iPlayer, "Rank: %d / %d", get_user_stats( iPlayer, iStats, iStats ), iTotalStats ); } } |
| All times are GMT -4. The time now is 20:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.