Metamod - Private Message
FireStorm
Join Date: 2002-11-06 Member: 7390Members
<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?
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
can u do a movement chamber teleport so they are like phasegates?
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-->
thanx!!!
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?
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>?
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-->
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-->
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>
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-->
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-->
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.
Good work!
Roo
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.