Raised This Month: $75 Target: $400
 18% 

Colored Radio Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 08-14-2019 , 16:38   Colored Radio Messages
Reply With Quote #1

I want to color the radio messages, I was looking for a complement to do it and I found this one, but it doesn't show the messages.

How do I want it to show:
-> TERRORIST 666(RADIO):Follow Me!
-> CT 666(RADIO):Follow Me!

as shown:
-> TERRORIST s1(RADIO):s2
-> CT s1(RADIO):s2

PHP Code:
#include <amxmodx>

#define PLUGIN_VERSION "2.0"

public plugin_init()
{
    
register_plugin("Colored Radio Messages"PLUGIN_VERSION"OciXCrom @ amxx-bg.info")
    
register_message(get_user_msgid("TextMsg"), "OnTextMsg")
}

public 
OnTextMsg(iMsgIdiMsgDestid)
{
    if(
get_msg_args() != 5)
        return
        
    static 
szMsg[2][20]
    
get_msg_arg_string(3szMsg[0], charsmax(szMsg[]))
    
get_msg_arg_string(5szMsg[1], charsmax(szMsg[]))
    
    if(
equal(szMsg[0], "#Game_radio") && !equal(szMsg[1], "#Fire_in_the_hole"))
        
set_msg_arg_string(3"%s1 (RADIO): %s2")

__________________

Last edited by 666; 08-14-2019 at 18:07.
666 is offline
Alber9091
Senior Member
Join Date: Jun 2014
Location: Some Where On Earth
Old 08-14-2019 , 17:52   Re: Colored Radio Messages
Reply With Quote #2

https://forums.alliedmods.net/showth...813#post401822
__________________
Alber9091 is online now
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode