[Mora]Ignorelist 
39 comments Hello unrealsoft.
I tried to find something in the f.a. but notice that there is no ignore lua.
Description: This lua allow you to ignore chat of player(s). You can add people into ignore list and you won't be able to see their messages.
It's different than MUTE script!! because you can personally mute for your own some(or all) players and only you wouldn't be able to see their messages. Everyone else would see them aswell, until they use ignore on them too.
Available commands are:
!ignore id
Add player into your ignore list if he's exists.
!unignore id
Remove player from your list if he's exists.
!ignoreall
Ignore all players(if server is not empty) and if you have atleast one not ignored.
!unignoreall
Unignore all players(if your ignore list is not empty).
!ignorelist
Show you list of players you ignore(if have).
!whoignoreme
Show you list of players who ignore you(if have).
You may disable/enable !whoignoreme command using 5-th line in cases if you want to allow/disallow this command on your server. You can do it via
people who left server while existing in your ignore list will be removed automatically. Have message.
you cant add yourself into your ignore list(obviously)
Feel free for edit for your own but keep in the mind is not fully yours. So do not claim it yourself.
Sorry me for my bad english and grammar,
thank you for attention.
I tried to find something in the f.a. but notice that there is no ignore lua.
Description: This lua allow you to ignore chat of player(s). You can add people into ignore list and you won't be able to see their messages.

Available commands are:

Add player into your ignore list if he's exists.

Remove player from your list if he's exists.

Ignore all players(if server is not empty) and if you have atleast one not ignored.

Unignore all players(if your ignore list is not empty).

Show you list of players you ignore(if have).

Show you list of players who ignore you(if have).

ALLOWED_TO_SEE_PLAYERS_WHO_IGNORE_YOU



Sorry me for my bad english and grammar,
thank you for attention.
edited 8×, last 07.09.17 04:31:59 pm

Comments
39 commentsComments disabled
The comment function is disabled. It is not possible to write comments here.
@
Nekomata: Yes i know about it and thought to do like that ~ a month ago when tried to develop ffa mod, but you see the description. I'm lazy to remake this
These colours are as much old as TopNotch's administration script.


Here's a tip. You can improve on the
So next time all you'd have to do is
And they're the same thing too!
COLOURS
table code with something like this:Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
COLOURS = {
["yellow"] = "\169255220000",
["white"] = "\169255255255",
...
["wood_box"] = "\169116088069"
}
// OR
COLOURS = {
yellow = "\169255220000",
white = "\169255255255",
...
wood_box = "\169116088069"
}
["yellow"] = "\169255220000",
["white"] = "\169255255255",
...
["wood_box"] = "\169116088069"
}
// OR
COLOURS = {
yellow = "\169255220000",
white = "\169255255255",
...
wood_box = "\169116088069"
}
So next time all you'd have to do is
COLOURS["yellow"] --[[or]] COLOURS.yellow
, instead of looking up what it's key is numerically indexed at.And they're the same thing too!
@
Mora: The next() function returns the key and the value of the next element from a table. It can be used with a view to check if a table is empty, and so the code given below does the check.
Read this URL beside to acquire more information. next() Lua Function

Read this URL beside to acquire more information. next() Lua Function
Idk which problems it would have?
I'm using to check firstly using boolean then break searching, then after that i remove the table key completely, not just a value of this key. The cycle is end.
And also if you haven't this id in your list you won't have problems anyway.
I never heard of
I'll find some more info about it. Thank you for the hint.
This "next" would check automatically that type of this PLAYERS[id] equals {}(table)? Because if i remove all the keys from table via table.remove it still table(PLAYERS[id]={}). Is this means this "next()" check if you have any keys in it?
I'm using to check firstly using boolean then break searching, then after that i remove the table key completely, not just a value of this key. The cycle is end.
And also if you haven't this id in your list you won't have problems anyway.
I never heard of
if not next(PLAYERS[id]) then
I'll find some more info about it. Thank you for the hint.
This "next" would check automatically that type of this PLAYERS[id] equals {}(table)? Because if i remove all the keys from table via table.remove it still table(PLAYERS[id]={}). Is this means this "next()" check if you have any keys in it?
@
Talented Doge: I would rather recommend using
Because suppose

if next(PLAYERS[id]) == nil then
. Because suppose
[false] = true
in the table, not next() wouldn't count it. As you have used table.remove to manipulate the table, I would recommend you to use the following to replace how you check if a table is empty:
if not next(PLAYERS[id]) then
instead of if #PLAYERS[id].ID~=0 then
@
saint-: Added command !whoignoreme. Which show you list of players who ignore you. Also it's possible to disable this command:

Allowed by default.


Allowed by default.
edited 2×, last 09.07.17 02:31:30 pm
Cool script mora. I can imagine such a function in cs2d, with the addition that the other guy, who is on your ignorelist, can know that you ignore him.
@
GeoB99: i can't have usgn ids to disallow comment here. I'm sure there wont be such shit if i'll be able.
Sorry.
@
xsiN: for sure, since it's old. But i'm first who did it here
even if it's bad-scripted
@
_Yank: ye i see. I know "AND" but hem, mine lua skills is not even average. How the colour's table comments making it worse(if it does)? ;d It's not making much sense with or w/o them. I've been lazy to remove them because using this thing on each lua. But if you dont need to edit this it's okay.
@
pepinakiller: might be.

Sorry.
@


@

@

I double what
Dousea said.
You should also have a look at Lua's AND keyword. The script would also be better if you removed the unnecessary entries at the COLORS table IMHO.

You should also have a look at Lua's AND keyword. The script would also be better if you removed the unnecessary entries at the COLORS table IMHO.
You guys should stop arguing each other or I'm forced to give a temp.ban and delete further non-related comments. Use the PM function for that. I wish I wasn't that harsh, you know.
@
_3yrus: Well, if you posted that comment for the only
Mora, you better use PM because you're in a forum, do not forget that
I'm not supporting anyone right now, I just hate the comments that have no reasons why is that.
_3yrus has written:The wrong thing is you can't just change your behavior by what others posted to your thread. If they said that your anything is shit, you can't go and say his work shit too if what they said is true and what you say is false. We call it child job.
Before saying "pls stop replying", you better do that yourself first because I can't stop while you're shitting out there so can't
Mora either.




I created a thread about my football idea. And u called it shit. Now I call ur script shoot, what's wrong.?
Before saying "pls stop replying", you better do that yourself first because I can't stop while you're shitting out there so can't



And pls stop replying. I'm wasting my time for taking to u.
Tnks
