CLEO Help Ignore last line containing player's name

CLEO related

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
Hello dear scripters,

I want to make a script, where if you type command (/block <id>), it will get that user's name by ID and then make disappear any line that contains that player name. My problem is that I am not sure how to do this for multiple players. What I was thinking is to have an array, and loop through that array which contains players' names and then hide the line if it contains the name, but Sanny Builder docs doesnt help with explaining how to loop through an array, and I also quite don't understand how to make an array in the first place.

Thank you so much for you help!
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
PHP:
and then make disappear any line that contains that player name.
Explain more clearly..
Why?
What's the point of this?
 

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
PHP:
and then make disappear any line that contains that player name.
Explain more clearly..
Why?
What's the point of this?
The idea of this mod is to hide messages from people that you want to block. You type /block 7, the person with the id 7 will no longer appear on your chat. If someone is annoying you or whatever.
 
Top