WhoAmI Posted April 6, 2014 Share Posted April 6, 2014 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? Link to comment
Arnold-1 Posted April 6, 2014 Share Posted April 6, 2014 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. Link to comment
kevenvz Posted April 6, 2014 Share Posted April 6, 2014 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. Link to comment
Ali_Digitali Posted April 6, 2014 Share Posted April 6, 2014 This command should already be hardcoded, check: https://wiki.multitheftauto.com/wiki/Cl ... e_Commands Of course, if you want more flexibility it's always better to script a small resource that does this. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now