Raised This Month: $51 Target: $400
 12% 

[NMRiH] Color Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wing TvT
Junior Member
Join Date: Oct 2013
Location: China
Old 06-03-2017 , 00:11   [NMRiH] Color Chat
Reply With Quote #1

I'm trying to make simple-chatcolor working on a NMRiH server,but i failed.I found the NMRiH servers will automatic add "#ChatPrefix" infront of a text which we want to decorate some colors on it.So i spotted exCeeder's plugin 's Admin Chat hook usage can help me to decorate the text on NMRiH servers,and I made a similar plugin based on Admin Chat.It supports owner to decorate not only admin's text,but also vip's.

Overrides:
adminchat_admin_flag "(default:b) define authority of admin."
adminchat_vip_flag "(default:a) define authority of vip."

Bugs:
It will send anything you entered,including both !admin or /admin
PHP Code:
// Turn On/Off the plugin. (0 = Off | 1 = On)
// -
// Default: "1"
sm_enable "1"

// Tag for the Admin Chat
// -
// Default: "[ADMIN]"
sm_adminchat_atag "[ADMIN]"

// Color for the Admin Tag
// -
// Default: "lime"
sm_color_atag "lime"

// Color for the Name of the Admin
// -
// Default: "fullred"
sm_color_aname "fullred"

// Color for the Text which the Admin has written
// -
// Default: "deepskyblue"
sm_color_atext "deepskyblue"

// Tag for the VIP Chat
// -
// Default: "[VIP]"
sm_adminchat_vtag "[VIP]"

// Color for the VIP Tag
// -
// Default: "lime"
sm_color_vtag "lime"

// Color for the Name of the VIP
// -
// Default: "fullred"
sm_color_vname "fullred"

// Color for the Text which the VIP has written
// -
// Default: "deepskyblue"
sm_color_vtext "deepskyblue" 
Attached Files
File Type: smx nmrih_chatcolor.smx (11.4 KB, 219 views)
File Type: sp Get Plugin or Get Source (nmrih_chatcolor.sp - 241 views - 4.1 KB)
__________________
Are you means " Really ?"
Wing TvT is offline
xeloximira
Junior Member
Join Date: Apr 2017
Old 07-22-2018 , 21:47   Re: [NMRiH] Color Chat
Reply With Quote #2

Thank you!

It's working perfectly.
__________________


Last edited by xeloximira; 07-23-2018 at 19:46.
xeloximira is offline
poachedegg
Junior Member
Join Date: Nov 2018
Location: China
Old 11-18-2018 , 11:17   Re: [NMRiH] Color Chat
Reply With Quote #3

maybe you need this function.

PHP Code:
/**
 * Returns whether the current say hook is a chat trigger.
 *
 * This function is only meaningful inside say or say_team hooks.
 *
 * @return                True if a chat trigger, false otherwise.
 */
native bool IsChatTrigger(); 
in console.inc

by the way, useful plugin.

Last edited by poachedegg; 11-19-2018 at 01:21.
poachedegg is offline
KozaZS
Junior Member
Join Date: Dec 2020
Old 12-27-2020 , 09:39   Re: [NMRiH] Color Chat
Reply With Quote #4

how do i tag player?
KozaZS is offline
Reply



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 10:33.


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