Client side script
This script will allow you do do several things in any server, all you have to do is put it in your autoexec folder.
>Highlight certain words or peoples text
>Bind chat commands and text to a key ingame
>Ignore anyone you choose completely
>Use simple ROT encryption
I'll add to it when ever i think of something else to add the chat commands binding is to die for tho.
>Highlight certain words or peoples text
>Bind chat commands and text to a key ingame
>Ignore anyone you choose completely
>Use simple ROT encryption
I'll add to it when ever i think of something else to add the chat commands binding is to die for tho.
Comments
and how can i use a chat command to work with my script? say i have a fucntion die(){ in my own script how can i call that fucntion through the chat hud?
And, all these "here's my super-awesome script" posts are making me contemplate releasing some of mine. . .
and how can i use a chat command to work with my script? say i have a fucntion die(){ in my own script how can i call that function through the chat hud?
can someone explain whats in each of those %a#?
%a2 = message
the others aren't really important
but if %a2 is the message... what is %msgString?
and if %a1 is the sender.... why is there a %sender?
%a1 is the name of the sender.
%sender is the client ID.
I don't really know what %msgstring is for. I think it's generated when you call addtaggedstring(%a2);
Ok.... i have no idea what im doing... How do i search in a message to see if there is a certain word in that message?
if ( strstr( strlwr(%a2),"blitz") != -1 )
Of course, if you wanted to find a specific word and highlight it, you could do something like:
strstr(%a2, "BlitzTorque");
That would check the whole message to see if the word "blitztorque is in it? And if i use $WordSearch instead of blitztorque and set
$WordSearch = "BlitzTorque", "Blitz";
Would it search for both names?
Nope. If the words in $WordSearch are seperated by a space, you could use a for loop such as the one in the previous post, where the word count of $WordSearch would replace %msgCount, and you use strstr to search for getWord($WordSearch,%i).
is that the correct way to use it?
and it would work for blitz even if the whole word is blitztorque?
I believe it would.
Experiment, experiment, experiment! Waiting around for somebody else to figure out what's been done wrong doesn't help. The code works, find out what's gone wrong. Use echo to find out the values of your variables, see what each is checking.
If it's going through only when you send a message, doesn't that sound like it's checking names?
If you're running Mazo's script you'll have to open it up and change or remove the movemap.bind lines. If you don't use the script, you can just change the key in your settings.
That's how I'd do it.