AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Show teammate's money (https://forums.alliedmods.net/showthread.php?t=113567)

K.K.Lv 12-28-2009 05:56

Show teammate's money
 
2 Attachment(s)
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

DarkSkif 12-28-2009 06:18

Re: Show teammate's money
 
If 16 players, the floor will close the screen? xD

xPaw 12-28-2009 06:27

Re: Show teammate's money
 
- Use cs_get_user_team
- Check id != client, before checking team

K.K.Lv 12-28-2009 07:19

Re: Show teammate's money
 
@xPaw accepted !
update !

K.K.Lv 12-28-2009 07:21

Re: Show teammate's money
 
@DarkSkif

do you think the match server will 16 players ?

ConnorMcLeod 12-28-2009 07:44

Re: Show teammate's money
 
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...

K.K.Lv 12-28-2009 07:59

Re: Show teammate's money
 
you mean set a task with new round to all players ?

ConnorMcLeod 12-28-2009 13:12

Re: Show teammate's money
 
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.

izzle 12-28-2009 13:45

Re: Show teammate's money
 
Quote:

Originally Posted by K.K.Lv (Post 1033736)
@DarkSkif

do you think the match server will 16 players ?

do you think match servers use amx?

martagos 12-28-2009 18:51

Re: Show teammate's money
 
n1 plugin pro :D


All times are GMT -4. The time now is 08:47.

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