Raised This Month: $ Target: $400
 0% 

[req]Need Frags n deaths n rank in HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
omer
Senior Member
Join Date: Nov 2011
Old 05-09-2012 , 09:19   Re: [req]Need Frags n deaths n rank in HUD
Reply With Quote #1

Now this file will be removed Reason: you are not allowed to attach .amxx file ;)
__________________

omer is offline
Danidude
Junior Member
Join Date: Apr 2012
Old 05-09-2012 , 10:05   Re: [req]Need Frags n deaths n rank in HUD
Reply With Quote #2

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 );
}
}
Danidude is offline
Send a message via Skype™ to Danidude
ClubaFKSales
New Member
Join Date: May 2012
Old 05-13-2012 , 13:35   Re: [req]Need Frags n deaths n rank in HUD
Reply With Quote #3

Heya Danidude compiled the plugin fr u

Last edited by Exolent[jNr]; 05-13-2012 at 15:31. Reason: Removed .amxx file.
ClubaFKSales is offline
Send a message via Skype™ to ClubaFKSales
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-13-2012 , 15:31   Re: [req]Need Frags n deaths n rank in HUD
Reply With Quote #4

Quote:
Originally Posted by ClubaFKSales View Post
Heya Danidude compiled the plugin fr u
You are not allowed to post .amxx files.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode