Change letters in a SayText hook
Hey there!
I made an SayHook: PHP Code:
I have no idea how it works on AMX Mod X. Only in SourceMod. Thanks! Edit: Found myself PHP Code:
|
Re: Change letters in a SayText hook
Use replace_all if you want to proceed the whole string.
But replace and replace_all are more to replace a string with another string, here you just want to replace a char with another char. You could use this stock : PHP Code:
Edit : seems you hook SayText with register_event, then you can't block it and you can't change string. Either hook say command with register_clcmd, then consider the comment i made after stock, either you hook SayText message with register_message and there you can use set_msg_arg_string. |
Re: Change letters in a SayText hook
Quote:
|
| All times are GMT -4. The time now is 08:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.