Raised This Month: $95 Target: $400
 23% 

Show teammate's money


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   Hawk552 (427)
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 12-28-2009 , 06:56   Show teammate's money
Reply With Quote #1

As the title, this is a simple plugin, I have searched a topic show_money, I don't think is so good, so, I did it! I think this plugin will work better than show_money, when player spawn, will show hud message of teammate's money to every teammate. I have searched, there is any plugin else like this ! I think this plugin is useful for match server !


Cvars:
stm_on <1|0> ---- on/off the plugin
stm_st_on <1|0> ---- <on/off> whether show the status text or not

changlelog

v1.1 -- accepted xPaw advice
v1.2 -- accepted Exolent advice
v1.2.1 -- add a client command "say /money"
v1.3 -- add status text idea by roflmao456
v1.3.1 -- fixed the code and add the cvars
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	14167
Size:	15.4 KB
ID:	56185  
Attached Files
File Type: sma Get Plugin or Get Source (show_teammates_money.sma - 8315 views - 2.8 KB)
__________________
QQ:116268742

Last edited by K.K.Lv; 04-16-2010 at 01:51.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
DarkSkif
Member
Join Date: Oct 2009
Location: Russia
Old 12-28-2009 , 07:18   Re: Show teammate's money
Reply With Quote #2

If 16 players, the floor will close the screen? xD
DarkSkif is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-28-2009 , 07:27   Re: Show teammate's money
Reply With Quote #3

- Use cs_get_user_team
- Check id != client, before checking team
__________________
xPaw is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 12-28-2009 , 08:19   Re: Show teammate's money
Reply With Quote #4

@xPaw accepted !
update !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 12-28-2009 , 08:21   Re: Show teammate's money
Reply With Quote #5

@DarkSkif

do you think the match server will 16 players ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2009 , 08:44   Re: Show teammate's money
Reply With Quote #6

You could make a single task using new round HLTV event, then you would proceed all players in 1 task, that would save lots of cs_get_user_money and cs_get_user_team natives call, though it's only called once at round start...
__________________
- tired and retired -
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 12-28-2009 , 08:59   Re: Show teammate's money
Reply With Quote #7

you mean set a task with new round to all players ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2009 , 14:12   Re: Show teammate's money
Reply With Quote #8

In fact what would be better is detect last teamate spawn and then print all players money.
Anyway, i don't see any real clean way to do it, so maybe your way is easier.
__________________
- tired and retired -
ConnorMcLeod is offline
izzle
Senior Member
Join Date: Aug 2009
Old 12-28-2009 , 14:45   Re: Show teammate's money
Reply With Quote #9

Quote:
Originally Posted by K.K.Lv View Post
@DarkSkif

do you think the match server will 16 players ?
do you think match servers use amx?
__________________
izzle is offline
martagos
Member
Join Date: Mar 2009
Location: Germany
Old 12-28-2009 , 19:51   Re: Show teammate's money
Reply With Quote #10

n1 plugin pro
martagos is offline
Reply


Thread Tools
Display Modes

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 01:57.


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