Replacing letters
Hello.
I want to replace a word with '*' I've done the code for that PHP Code:
Something i expected? |
Re: Replacing letters
Well, you have to block the "SayText" message and supply your own.
In this plugin, it blocks the message and forces the client to write a new one with the edited string. Simple yet effective. https://forums.alliedmods.net/showthread.php?t=1404 You can also create your own SayText message. |
Re: Replacing letters
I thought this method but i think there are a better way, thank you.
|
Re: Replacing letters
How about using replace_all()?
PHP Code:
Code:
Hey man, what the **** are you doing ******? I think you just tried to ****. *** at that |
Re: Replacing letters
That's a nice idea, thanks
|
Re: Replacing letters
Ohh.. sorry i'm replacing first array cells which is not ok, i removed my post, remove your quote too because it contains my wrong code which can confuse people.
|
| All times are GMT -4. The time now is 18:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.