Metamod: Show Player Info By Looking At Them
voogru
Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
<div class="IPBDescription">Non-gameplay changing plugin.</div> Heres the first plugin I released in a while. It shows player stats when you look at them.
Here is a screenshot of what it looks like, if you havent already seen it.
<img src='http://www.voogru.net/www/images/playerinfo.jpg' border='0' alt='user posted image'>
The only change, it doesnt have any [ or ] in it.
Anyways, I just slammed this together in about 2-3 mins and its not tested, It should work without problems, If it no workie please tell me the problem your having.
(I didnt test it since I do not use metamod anymore, this plugin is metamod but I didnt feel like setting up metamod again)
BTW, This is closed source since it shows resources for aliens... And thats magic <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
UPDATE: fixed a bug with log spamming of "[META] ERROR: Plugin didn't set meta_result: playerinfo"
UPDATE: Player info text no longer stays on for a long time, stays on for 750 ms then gets cleared if your not looking at another player.
UPDATE: l00nix version now available, thanks to [WHO]Them (its his version of the plugin, so its slightly different)
UPDATE: Linux version is now my own plugin, I just found and changed the hardcoded memory offsets for the resources (there just a tad different than the windows offset) So now both plugins are my source.
Here is a screenshot of what it looks like, if you havent already seen it.
<img src='http://www.voogru.net/www/images/playerinfo.jpg' border='0' alt='user posted image'>
The only change, it doesnt have any [ or ] in it.
Anyways, I just slammed this together in about 2-3 mins and its not tested, It should work without problems, If it no workie please tell me the problem your having.
(I didnt test it since I do not use metamod anymore, this plugin is metamod but I didnt feel like setting up metamod again)
BTW, This is closed source since it shows resources for aliens... And thats magic <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
UPDATE: fixed a bug with log spamming of "[META] ERROR: Plugin didn't set meta_result: playerinfo"
UPDATE: Player info text no longer stays on for a long time, stays on for 750 ms then gets cleared if your not looking at another player.
UPDATE: l00nix version now available, thanks to [WHO]Them (its his version of the plugin, so its slightly different)
UPDATE: Linux version is now my own plugin, I just found and changed the hardcoded memory offsets for the resources (there just a tad different than the windows offset) So now both plugins are my source.
Comments
Only works with team mates.
(sheesh. that's what, 12 metamod plugins running on my server now?)
Does this also have the %h, %a, %r (is this it for the # resources you have?) and %i?
If not, could you add them?
Maybe a %l to say the location you are in?
<img src='http://www.unknownworlds.com/forums/style_images/2/icon9.gif' border='0' alt='user posted image'>
<img src='http://www.unknownworlds.com/forums/style_images/2/icon9.gif' border='0' alt='user posted image'> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Just need to find someone to offer to compile it for linux.
<img src='http://www.unknownworlds.com/forums/style_images/2/icon9.gif' border='0' alt='user posted image'> <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Just need to find someone to offer to compile it for linux. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
i'll do it......plus u know me <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
btw if you need any other box to compile the plugin i can also do it. (and, redhat sucks)
i know, thast why i switched to slackware.
besides the normal RPM hell stories and such.
up2date is nice because u get emails when there are patches out and it installs them automaticly. But the problems with 1.04 we were having were the linux compilations. It was being compiled on a Red Hat system. But with the joev skill, he got them updated and fixed. and NS 1.04 got out w/o problems.
so, RH = easy, RH= not a compile/test system.
And if you guys want to use the best distro for game servers, its not slackware or Red Hat... its gentoo
And if you guys want to use the best distro for game servers, its not slackware or Red Hat... its gentoo <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
a not on MM compilation.
You'll have to compile with -march i586
because anything else makes HLDS unstable.
and if your running gentoo, what stage did you start from?
<!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
<!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
/me is having problems updating to a newer glibc
So if voogru trusts you..i can forward the source and the gcc line to ya.
If voogru would like to do linux complilations of his mods id leave the shell open.
[bjank@enigma scripts]$ uname -a
Linux enigma.nexgenis.com 2.4.18-10 #1 Wed Aug 7 11:41:24 EDT 2002 i686 unknown
[bjank@enigma scripts]$
Email me at bjank@nexgenis.com
Or on ICQ: 1414562
Or MSN: backburn_@hotmail.com
-bb
i'm still wokring on it....
you then ssh with securecrt (www.vandyke.com)
use zmodem to upload if youd like or you could ftp in and upload.
compile the script then remove the source when done...
-bb
i'm still wokring on it.... <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
1.) Just copy the hole source to your "clipboard"
2.) open the ssh connection and login
3.) touch "playerinfo.sma"
4.) "vi <i>or</i> nano <i>or</i> pico <i>or</i> joe playerinfo.sma"
5.) save the file
6.) compile it
quite easy, no file transfer needed. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
i'm still wokring on it.... <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
1.) Just copy the hole source to your "clipboard"
2.) open the ssh connection and login
3.) touch "playerinfo.sma"
4.) "vi <i>or</i> nano <i>or</i> pico <i>or</i> joe playerinfo.sma"
5.) save the file
6.) compile it
quite easy, no file transfer needed. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
The plugin is metamod, C++
If cracker jackmac cant compile it on linux for me, ill have to ask scott (he has compiled a few of my plugins before)
cracker jackmac, you had a .so, it didnt work with you but you could give it out and see if it works with other linux distros.
The plugin is metamod, C++
If cracker jackmac cant compile it on linux for me, ill have to ask scott (he has compiled a few of my plugins before)
cracker jackmac, you had a .so, it didnt work with you but you could give it out and see if it works with other linux distros. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
check your inbox...i emailed it to you already....if not i'll send it again.
It may not work, but if it does great.
it didnt work for cracker jackmac, but he has a slackware distro, maybe it will work on other distros.
using gcc 2.95.3
and some old glibs....i'm tyring to update them but i'm having problems. Verbose...wana PM me? <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
It may not work, but if it does great.
it didnt work for cracker jackmac, but he has a slackware distro, maybe it will work on other distros.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Running Debian linux. Just added the dll to my server. Since there are no linux bots, I need people inside to help me test it. I'll go into the server and hang around until midnight (EST). So if you read this in time hop in if you can. Thanks.
jayfive.servehalflife.com:27016
-JayFive