Jump to content

ignore command


WhoAmI

Recommended Posts

Posted

Hello.

My question is how to create command /ignore nick. Then we won't see messages from this player. I would do this by using onPlayerChat, what's your idea?

Posted

you would create a table with all players, and when a player ignores another, you remove him from the table, and onPlayerChat, you cancel the event, and outputChatBox through the table of the players not ignoring him, with his name and message, that's my idea.

Posted

I got an ignore command it uses this: All players have an element data called: ignoredPlayers. ignoredPlayers is a table which contain players that the user ignores and then with the onPlayerChat event it parses the message through all players and if the player that sended the message is in the ignore list of the other player don't output it in his chatbox.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...