Metamod: Show Player Info By Looking At Them

voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
edited February 2003 in General Server Discussion
<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.
«134

Comments

  • NecroNecro &lt;insert non-birthday-related title here&gt; Join Date: 2002-08-09 Member: 1118Members
    i hope the enemy team cant see u with it...
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    <!--QuoteBegin--Necro-+Feb 12 2003, 05:57 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Necro- @ Feb 12 2003, 05:57 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> i hope the enemy team cant see u with it... <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Only works with team mates.
  • EpochEpoch Join Date: 2002-10-10 Member: 1474Members
  • PetitMortePetitMorte Join Date: 2002-11-06 Member: 7232Members
    Thanks Voogru! Keep up the good work!

    (sheesh. that's what, 12 metamod plugins running on my server now?)
  • UnknownUnknown Join Date: 2002-06-12 Member: 759Members
    One question (maybe two):

    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?
  • f3Rl3SSf3Rl3SS Join Date: 2003-01-28 Member: 12878Members
    edited February 2003
    sounds cool, but ... ahm ... if you don't want to open the source, could you add a linux binary to the zip please?
    <img src='http://www.unknownworlds.com/forums/style_images/2/icon9.gif' border='0' alt='user posted image'>
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    <!--QuoteBegin--f3@Rl3SS+Feb 12 2003, 09:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (f3@Rl3SS @ Feb 12 2003, 09:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> sounds cool, but ... ahm ... if you don't want to open the source, could you add a linux binary to the zip please?
    <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.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--voogru+Feb 12 2003, 09:27 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Feb 12 2003, 09:27 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--f3@Rl3SS+Feb 12 2003, 09:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (f3@Rl3SS @ Feb 12 2003, 09:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> sounds cool, but ... ahm ... if you don't want to open the source, could you add a linux binary to the zip please?
    <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-->
  • disqdisq Join Date: 2002-11-30 Member: 10312Members, NS1 Playtester
    ok, waiting for the linux version, do it quick :p

    btw if you need any other box to compile the plugin i can also do it. (and, redhat sucks)
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--disq+Feb 12 2003, 11:12 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (disq @ Feb 12 2003, 11:12 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> (and, redhat sucks) <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    i know, thast why i switched to slackware.
  • playerhaterplayerhater Join Date: 2002-11-13 Member: 8405Members
    What exactly is so wrong with RedHat? Im not trying to defend it or anything, but I just want to know if you hate for any real reason other then because alot of other people hate it? I mean lets face it Redhat, Mandrake and others have made Linux easier to use, thats what we want right? More people getting turned on to Linux, right?
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    but there are alot of issues witht he linux libs. They don't like other distro's it seems. I haven't investigated it so i can't tell u much.

    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.
  • JoeBlowJoeBlow Join Date: 2003-01-28 Member: 12899Members
    edited February 2003
    So where are we standing on a linux version of this? I can compile it if I can get the source, or if it's already done can i get a link? Thanks

    And if you guys want to use the best distro for game servers, its not slackware or Red Hat... its gentoo
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--JoeBlow+Feb 13 2003, 10:56 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (JoeBlow @ Feb 13 2003, 10:56 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> So where are we standing on a linux version of this? I can compile it if I can get the source, or if it's already done can i get a link? Thanks

    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?
  • TheHornetTheHornet Join Date: 2002-10-31 Member: 1776Members, Constellation
    sweet! That would be so helpful.
  • f3Rl3SSf3Rl3SS Join Date: 2003-01-28 Member: 12878Members
    hmmm ... still waitin for the linux bin.
    <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--f3@Rl3SS+Feb 14 2003, 12:17 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (f3@Rl3SS @ Feb 14 2003, 12:17 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> hmmm ... still waitin for the linux bin.
    <!--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
  • JoeBlowJoeBlow Join Date: 2003-01-28 Member: 12899Members
    /me has 3 servers that are ready to spend the 1.5 seconds to compile if necessary
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    well, i need someone i can trust because voogru trusts me not to release the source to anyone.


    So if voogru trusts you..i can forward the source and the gcc line to ya.
  • backburnbackburn Join Date: 2003-01-05 Member: 11855Members
    if you would like i can open a shell on my RH 7.3 server for you to do it yourself.
    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
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    problem is...how do i get the source over? <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->


    i'm still wokring on it....
  • backburnbackburn Join Date: 2003-01-05 Member: 11855Members
    i open a shell with username voogru and a password you specify
    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
  • f3Rl3SSf3Rl3SS Join Date: 2003-01-28 Member: 12878Members
    <!--QuoteBegin--cracker jackmac+Feb 15 2003, 12:58 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cracker jackmac @ Feb 15 2003, 12:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> problem is...how do i get the source over? <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.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-->
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    <!--QuoteBegin--f3@Rl3SS+Feb 14 2003, 09:39 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (f3@Rl3SS @ Feb 14 2003, 09:39 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--cracker jackmac+Feb 15 2003, 12:58 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cracker jackmac @ Feb 15 2003, 12:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> problem is...how do i get the source over? <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.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.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--voogru+Feb 14 2003, 08:48 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Feb 14 2003, 08:48 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    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.
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    Here it is.

    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.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    i also compiles

    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-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    I can't believe you're going through all this trouble so that you can violate your GNU Public License agreement and hide a little chunk of code that's already been made public with spidermonkey.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    i need to update my libs anyway.
  • CoREJayFiveCoREJayFive Join Date: 2003-02-12 Member: 13479Members, Constellation
    <!--QuoteBegin--voogru+Feb 14 2003, 10:02 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Feb 14 2003, 10:02 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Here it is.

    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
Sign In or Register to comment.