Hello, I have made a chat room similar to the one in the tutorials. I am making a program to kick individual people off of the chat. Is there an event in Mooclick that can do this?
Printable View
Hello, I have made a chat room similar to the one in the tutorials. I am making a program to kick individual people off of the chat. Is there an event in Mooclick that can do this?
Perhaps disconnect a channel?
On the server side, you can use Select connection and then Disconnect.
Thanks for the suggestions, but neither worked. Instead, I just decided to send a blank message on a subchannel and if they receive the message they disconnect
Another problem that I am having with the chat program is that people are opening the program multiple times. Is there an object with an expression saying "Number of instances of this application"? That would enable me to use a compare two general values event and end the application
We need someone to recode the GUID extension but you could do it via the shared data extension of something.
Set a shared value when you launch the app and test it when you app starts to see if it exists. Then take the actions you desire if it is active.
The shared data object works like a charm.
+Timer equals 00"-01
-Set Shared value 0 to 1
+Start of Frame
+Shared value 0=1
-End the application
FM / CB had an awesome MOOClick server program that did not allow multiple connections from the same IP or with the same name / nick, but the problem was that it was MOOClick
My chat program has color drawing, blocks double names, has a channel selection and channel creation screen. It still has a long way to go though
Kinda sounds like the Pictochat from the DS. ^_^; Definitely sounds like an interesting program.
To make it in color was kind of tricky. Sometimes when you clear the screen, "ghosts" of past things you drew will come back up.
If you want client side disconnecting from a client, just send a message, and program the clients to respond to that message by disconnecting.
Send message: "Kick" down sub-channel 1
On Receive:
Sub-Channel = 1
Message = "Kick"
Then Player:Disconnect
The problem with that is that I have already distributed the program and I cannot edit it.
Well that is why you would want a system to force an upgrade.
I guess you will need to close your chat and relaunch it with your new client
Messages for disconnecting are silly and very easy to "hack"-just filter using some packet sniffer.
Disconnect on the server side ALWAYS works. Its also crap to use GUID or any other client side stuff to block from multiple connections. Why dont you code it on the server side? If the usernames are unique, where is the problem?
Connection enters... Server adds its name
Connection leaves....server deletes its name
If connection wants to enter AND name already exist, disconnect.
You can use List object for that, array..its easy.