Mouse1 "+attack" & Enter "+attack".
Q1: What's the difference between the +attack executed when pressing enter and when clicking mouse1?
I can close the MOTD by pressing Enter, where as I can't close the motd with my mouse unless I move it to where it says "OK. Yet both are binded to +attack? Q2: Is there a way to trick the game into thinking the player pressed Enter? To force close the MOTD for the player. |
Re: Mouse1 "+attack" & Enter "+attack".
the +attack bind has nothing to do with closing the motd (you can still close the motd by unbinding mouse1 and enter key), and no you cant force the client to close it
|
Re: Mouse1 "+attack" & Enter "+attack".
Quote:
Read more about it here: http://en.wikipedia.org/wiki/Focus_(computing) http://en.wikipedia.org/wiki/Tab_order |
Re: Mouse1 "+attack" & Enter "+attack".
Quote:
Question 3: Can I force load another MOTD ontop of the old MOTD? So instead of closing them, I just have it load motd1, then motd2 and so on. |
Re: Mouse1 "+attack" & Enter "+attack".
Quote:
Quote:
Quote:
Quote:
|
Re: Mouse1 "+attack" & Enter "+attack".
Quote:
Well thanks for helping out. I guess I'll print the results in chat instead. |
Re: Mouse1 "+attack" & Enter "+attack".
you could use javascript functionality to change the motd content
|
Re: Mouse1 "+attack" & Enter "+attack".
Here's what I did for my server:
Code:
I guess there is a small chance it could fail if two people join very close to each other depending on how far apart the client_putinserver() and the showing of default motd is in actual code. Most likely (and someone could probably look it up) is that they are both called from the same function and since the server is single-threaded it will not accept any new player until this function is done. Do javascript really work in MOTD? |
| All times are GMT -4. The time now is 19:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.