Skip to content

manu-urba/Chat-Mentions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat Mentions

Description

This plugin allows chat mentions to draw someone's attention. The plugin allows partial nickname targeting eg. @frag, will be replaced with colored FrAgOrDiE in the chat and a sound will be reproduced to FrAgOrDiE. Multiple targetings are also allowed such as @all, @t, @ct, @dead.

Images

example

example

example

example

example

example

Convars

// Color prefix to use for mentioned name in chat
// -
// Default: "{green}"
sm_chatmentions_color "{green}"

// Enable/Disable sound for all clients
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_chatmentions_sound_enabled "1"

// Color prefix to use for mentioned name in chat
// -
// Default: "Chat-Mentions/mention.wav"
sm_chatmentions_sound "Chat-Mentions/mention.wav"

// Show "@" sign before player name mention
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_chatmentions_show_at "0"

// Show "@" sign before single player name mention
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_chatmentions_show_at_on_single_target "0"

// Show "@" sign before multiple targeting eg. @all, @t, @ct
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_chatmentions_show_at_on_multiple_target "1"

APIs

forward void Mentions_OnPlayerMentioned(int client);