Raised This Month: $ Target: $400
 0% 

HELP with stats and FFA


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
A in Chains
Junior Member
Join Date: Mar 2014
Old 03-03-2014 , 18:09   Re: HELP with stats and FFA
Reply With Quote #2

This was the most easy solution that i could find, but then i don't know what to do to modify top15


Code:
public cmdRank(id)
{
	if (!SayRank)
	{
		client_print(id, print_chat, "%L", id, "DISABLED_MSG")
		return PLUGIN_HANDLED
	}

	new izStats[8], izBody[8]
	new iRankPos, iRankMax
	new Float:fEff, Float:fAcc
	
	iRankPos = get_user_stats(id, izStats, izBody)
	iRankMax = get_statsnum()
	new TestingPos = (iRankMax - iRankPos) + 1
	
	fEff = effec(izStats)
	fAcc = accuracy(izStats)
	
	client_print(id, print_chat, "* %L", id, "YOUR_RANK_IS", TestingPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], fEff, fAcc)
	
	return PLUGIN_CONTINUE
}

But now the problem is that when 2 players have the same frags, the better is showed last.
John = 1 dead 1 kill 100eff
Paul = 1 dead 1 kill 50eff

Paul rank showed with my script is 1, and john 2.



It is possible that stats arent showed in negative numbers, but are counted like negative?? because what i'm thinking is that i could multiply frags * 2 and make it positive, somebody can tell me how i can multply frags?

Last edited by A in Chains; 03-03-2014 at 19:43. Reason: Forget +1, mistake
A in Chains is offline
 



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 05:54.


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