Raised This Month: $51 Target: $400
 12% 

[req] hud score


Post New Thread Reply   
 
Thread Tools Display Modes
noobmodi
Junior Member
Join Date: Feb 2014
Old 05-29-2014 , 07:25   Re: [req] hud score
Reply With Quote #11

Fixed!
Thank you!
Thank you alliedmods!

EDIT!
Still facing some issues!
1. When i m reconnecting its not resetting the score, its still showing my name as top scorer.
2. c4 Frags are not counted, problem is scoreboard is showing different score and Hud showing different.
3. And m using following plugin which gives 2 frags on knifing any PLAYER and 3 frags on knifing any ADMIN, Can u add these frags too?

Sorry for so much trouble!

Last edited by noobmodi; 05-31-2014 at 07:10. Reason: Need some fixes
noobmodi is offline
connoisseur
Senior Member
Join Date: Jan 2012
Old 05-31-2014 , 04:02   Re: [req] hud score
Reply With Quote #12

Quote:
Originally Posted by noobmodi View Post
1. When i m reconnecting its not resetting the score, its still showing my name as top scorer.
2. c4 Frags are not counted, problem is scoreboard is showing different score and Hud showing different.
Fixed.
Quote:
Originally Posted by noobmodi View Post
3. And m using following plugin which gives 2 frags on knifing any PLAYER and 3 frags on knifing any ADMIN, Can u add these frags too?
You have to understand that the plugin I coded is meant for normal usage.

It does not care about what other plugins do.
It's not a good idea to use so many plugins that can make the other one contradicting and inefficient.

(Also, I'm lazy to code all these extra variations)

I haven't gone through all of the code you posted. I just coded what you stated ^
In the plugin you posted, the amount of frags for knife kills can be changed.
So if in future you need to change the amount of frags, just find and edit these lines:
Code:
if( is_user_admin( iVictim ) )     g_iFrags[iKiller] += 3 else     g_iFrags[iKiller] += 2

I've added a cvar "knife_byother" to turn on/off extra knife frags. (default = 1)
Attached Files
File Type: sma Get Plugin or Get Source (topscorer.sma - 309 views - 3.2 KB)
__________________

Last edited by connoisseur; 05-31-2014 at 04:46.
connoisseur is offline
noobmodi
Junior Member
Join Date: Feb 2014
Old 05-31-2014 , 04:32   Re: [req] hud score
Reply With Quote #13

well its adding frags on defuse...but not on c4 explode for terrorist.

Code:
public bomb_explode(id)
	g_iFrags[id] += 3
is it right?

Last edited by noobmodi; 05-31-2014 at 04:48.
noobmodi is offline
connoisseur
Senior Member
Join Date: Jan 2012
Old 05-31-2014 , 04:46   Re: [req] hud score
Reply With Quote #14

Quote:
Originally Posted by noobmodi View Post
well its adding frags on defuse...but not on c4 explode for terrorist.
Fixed. Attachment edited ^
__________________

Last edited by connoisseur; 05-31-2014 at 05:01.
connoisseur is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-31-2014 , 12:16   Re: [req] hud score
Reply With Quote #15

Quote:
Originally Posted by noobmodi View Post
THANKS MAN!
btw can u tell me wich language is this?
this looks pretty much like jav, but this isnt java i guess?
makes sense.
it don't have codes like
PHP Code:
PlayerId pId = new PlayerId();
pId getUserIndex();
pId.showHudMsg(); 
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-31-2014 , 12:27   Re: [req] hud score
Reply With Quote #16

Quote:
Originally Posted by ezio_auditore View Post
makes sense.
it don't have codes like
PHP Code:
PlayerId pId = new PlayerId();
pId getUserIndex();
pId.showHudMsg(); 
Id stands for Index, no need to "getUserIndex".
__________________
Kia is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-31-2014 , 23:03   Re: [req] hud score
Reply With Quote #17

Quote:
Originally Posted by Kia View Post
Id stands for Index, no need to "getUserIndex".
Thanks. But i know that.
only demonstrating some Java code.
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
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 08:50.


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