This plugin show the Health & Armor of the players in the scoreboard instead of Frags & Deaths. This plugin is usefull for Servers with a GamePlay that the frags and deaths doesn't matter. For example Surf, KZ, and others. So you can see the health and armor of the other players.
Note:
I tested with bots and work perfect (i think, for real players have to work perfect too). About "Modification" i seted in "All" but i don't know... i only play CS... i am not sure but maybe will be work on other mods... the plugin only use Fakemeta module.
Commands & Cvars:
For now... the plugin don't have commands or cvars... but well, maybe will be have... if i add something new to the plugin.
has_msg_on (Default: 1)
0: Disable the message that tell about the new gameplay
1: Enable the msg.
has_msg_delay (Default: 180.0)
Time between each message in seconds (180.0 = 3 minuts).
Extra note:
In the version 1.4 i added a new "feature". If you have more health than "X" number (1000 default) automatically is seted new "permanent" frags & deaths (1337 default). This is good for server that have some maps with a health machine, becouse if you have something more than 30.000 frags you get a negative number. So now, that doesn't happen... if you get more than 1000 frags, frags will be seted to 1337. Ofcourse you can change this two value. How? Well, go to the sma and in the top of the plugin you will see:
You only have to change the values to wathever you want.#define MAX_FRAGS 1000
#define SET_FRAGS 1337
Credits:
tolsty - Click Me.
L// - Click Me.
Starsailor - Method with FM_CmdStar (Click Me).
joropito - Helped me with some methods and other things.
ConnorMcLeod - Helped me with the optimization of the plugin (Click Me).
Changelog:
Version 1.0
First Release.
Version 1.1
Removed Fakemeta module.
Change the method to update Health & Armor instead of using FM_CmdStart.
Added a message for advice people about the new "gameplay".
Added new cvars for the msg.
Version 1.2
In v1.1 sometimes the update of the hp & ap doesn't work correctyle, now work perfect (thx connor)
Code optimization (thx connor)
Added support when player die, 0 hp & 0 ap.
Added colors to the boring adv message.
Ofcourse added Connor in the credits.
Version 1.3
get_user_msgid("SayText")stored in a global variable.
deleted "connected" check in chat_color stock.
Version 1.4
Changed some things in the chat_color stock (thx connor another time).
Added two defines to set "X" frags & deaths when the player have more than "X" of health (see extra note).
P.S: Sry if i writed something wrong... correct me if i did it... My english isn't perfect.
plugin
source