[REQ] Word Color
I want a plugin that someone has written the word "mr" in the message
The color of the word "mr" should be white Image: http://rozup.ir/view/3160966/9.jpg http://rozup.ir/view/3160973/10.jpg |
Re: [REQ] Word Color
1. Create a 2-dimensional array where you have the desired match (e.g "mr") and desired modification (e.g "&x04mr").
2. When a client says something loop through that array and check if the said text matches any pattern. 3. If it does: replace the message, print it to all players/teammates and return PLUGIN_HANDLED. |
Re: [REQ] Word Color
Quote:
The image you see was possible with the following plugin Code:
Code:
say hHello &x05Mr = For Image 1 :) ( I need to send this post to the Scripting Help section?? ) |
Re: [REQ] Word Color
Set case sensitive to false and search for " mr " and replace that with " &x05Mr ".
http://amxmodx.org/api/string/replace_stringex |
Re: [REQ] Word Color
Quote:
PHP Code:
|
Re: [REQ] Word Color
Code:
|
Re: [REQ] Word Color
Code:
Take in mind this is just an example and there are other flaws. |
Re: [REQ] Word Color
Remembering that this does not guarantee that "mr" is white, as the player may very well use con_color "r g b", and "white" can be any color that he has configured.
|
Re: [REQ] Word Color
Quote:
|
All times are GMT -4. The time now is 18:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.