Metamod - Private Message

FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
edited June 2003 in General Server Discussion
<div class="IPBDescription">Yet another plugin :D</div> <span style='color:red'><span style='font-size:14pt;line-height:100%'>You know what that red text means <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--></span>
Redownload the file because it was updated <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--></span>

I'm lazy so I'll just paste a part of the readme file: <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->

<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Allows players to send private messages to other players. This plugin was written for Natural Selection but will probably work with other mods as well.
Spectators and players in the Ready Room won't be able to send PMs to players that are in the game to prevent exploiting.

Usage: Just say or say_team /pm player text where player is a part of the target players' nicknames.
For example, let's say there are some guys with a clan tag [Clan-XxX]. If I say /pm clan-xxx hi! They will get this message:

[PM] Message from FireStorm: hi!

and I'll see this:

[PM] Message sent to [Clan-XxX]PlayerA, [Clan-XxX]PlayerB and [Clan-XxX]PlayerC:
hi!<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

I hope this one will be more used than my enhanced lerk because I'm beginning to think that what I'm doing is completely useless :/

Any comments?

Comments

  • CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
    heh ur stuff is so useful, <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo--> i wuda never thought of this.

    can u do a movement chamber teleport so they are like phasegates?
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    <!--QuoteBegin--coolcookiecooks+Jun 20 2003, 08:41 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (coolcookiecooks @ Jun 20 2003, 08:41 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> heh ur stuff is so useful, <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo--> i wuda never thought of this.

    can u do a movement chamber teleport so they are like phasegates? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    ha ha ha...

    I think I should stop metamod developpement... <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
    ? hey im not bein sarcastic here <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • NiteowlNiteowl Join Date: 2002-09-04 Member: 1274Members, NS1 Playtester, Contributor
    this is fantastic, great for when a bunch of my fellow fogies are on a server talking about a recruit <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    thanx!!!
  • NiteowlNiteowl Join Date: 2002-09-04 Member: 1274Members, NS1 Playtester, Contributor
    quick request (already!!) . could we have it so i can msg to a portion of a person's name (in the middle, not the start)

    team_say: /pm kinc heya all Kincaid
    (which would go to [OldF]Kincaid)



    could we also have it so that i can pm a group of indivduals as well?

    team_say: /pm [OldF] heya all fogies!!

    so all the fogies with the tags on would get the message?

    possible? is it in it right now?
  • nthingnthing Join Date: 2002-11-01 Member: 3091Members
    edited June 2003
    What about for players with spaces in their names?

    For example, if my name is <b>'I am the goat'</b>, would typing:

    <b>"say_team /pm I am the goat Hello"</b>

    into the console still work, or would it try to send <b>'am the goat Hello'</b> to a player name of <b>'I'</b>?
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    edited June 2003
    <!--QuoteBegin--coolcookiecooks+Jun 20 2003, 09:12 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (coolcookiecooks @ Jun 20 2003, 09:12 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> ? hey im not bein sarcastic here <!--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-->
    No? Cool <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> I thought so

    To Niteowl: Ok, I'll put it in 0.2.

    To n?thing: Only the first word after /pm is taken into account, your thing would send the message "am the goat Hello" to I am the goat <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    But that's not a problem, now u can just say /pm I Hello and in 0.2 (after Noteowl's suggestion) you'll type /pm goat Hello

    <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    Edit: I made this plugin between 2 NS games <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> I'll do 0.2 tomorrow, it's midnight now <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    Edit2: BTW, the case isn't taken into account... so /pm FiR blabla will have the same effect as /pm fIr blabla <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • ByekaByeka Name changed from Freak83 Toronto Join Date: 2003-03-13 Member: 14484Members, Constellation
    THIS IS THE BEST MOD I'VE EVER HEARD OF!!!! EVERYONE INSTALL THIS PLEASE!!!!!!
  • nthingnthing Join Date: 2002-11-01 Member: 3091Members
    Pretty dudey <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    I remember having shed loads of fun with TFC's private message system... I urge all servers to please install this plugin!! <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    edited June 2003
    I've got this running on my server. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    I had a bit of trouble compiling it for linux though, got this error message:

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->dllapi.cpp: In function `void ClientCommand (edict_t *)':
    dllapi.cpp:120: `strnicmp' undeclared (first use this function)
    dllapi.cpp:120: (Each undeclared identifier is reported only once for
    each function it appears in.)
    make: *** [dllapi.o] Error 1
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    I changed strnicmp to strncmp and it compiles, but it's case sensitive for the names now. :/

    <a href='http://www.holcroft.net/~cheesy/pm_mm_i386.so' target='_blank'>Linux Version (case sensitive)</a>
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    Thx for the linux version <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    I will recode this part of the plugin for 0.2 anyways <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    Finally I made a plugin that's enthousiastically welcomed <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    edited June 2003
    --- removed ---

    Try to compile 0.2 instead please <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    edited June 2003
    *bump*

    0.2 out!

    Allows you to send messages to many people at the same time.

    And this one should compile on linux <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->


    EDIT: BTW, I think I should install Linux on my comp... What version do u suggest? Mandrake? RedHat? or what else? I don't know anything about it.
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    Fire, your work is important because you're learning a LOT about metamod very quickly, this means when people have specific requests, you're in a better shape to go and code them. Keep it up (and I might install this one, but I want to keep plugins to a minimum for server performance reasons)

    Good work!

    Roo
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    thx <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    learning metamod is easy when you know the HL sdk almost perfectly <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->


    BTW this one only hooks one function (ClientCommand) so I think it doesn't affect performance much.

    For example, enhanced lerk hooks pre-PlayerPreThink, pre-PlayerPostThink and post-PlayerPostThink which are 3 functions executed every frame <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo--> This one may reduce performance a little bit but text plugins (like PM) won't change it much.


    I'm downloading linux right now so I hope I'll include linux libraries in future versions. I just need to learn to use it.
  • mongo2mongo2 Join Date: 2003-06-13 Member: 17348Members
    I've downloaded it and will give it a try. Thanks!
Sign In or Register to comment.