cgr_enabled 1 /// Sets whether or not this plugin is enabled.
cgr_spaces 0 /// A value of 0 means the default '(RADIO): Fire' and a value of 1 means '(RADIO) : Fire'.
cgr_dead 1 /// Sets whether or not the grenade radio phrases will be displayed to the dead players as well.
cgr_reliable 0 /// Sets whether or not the replacement grenade radio phrases will be delivered as reliable.
cgr_random 1 /// Sets whether or not to use random grenade radio phrases when the players are throwing grenades.
cgr_custom 0 /// Sets whether or not only the grenade name in the entire grenade radio phrase should be colored.
cgr_alive 32 /// Only display grenade radio phrases to the team if at most this number of players are alive in it.
cgr_append 0 /// Sets whether or not to only append a colored GRENADE, FLASH or SMOKE string after the original game grenade radio phrase.
cgr_name 1 /// Sets the color of the player name in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_radio 1 /// Sets the color of the RADIO string in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_dots 1 /// Sets the color of the dots symbol (':' symbol) in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_parentheses 1 /// Sets the color of the parentheses in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_at 1 /// Sets the color of the at symbol ('@' symbol) in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_location 4 /// Sets the color of the actual map location in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_dots_enabled 1 /// Sets whether or not to enable the default dots in grenade radio phrases (':' symbol).
cgr_name_location 4 /// Sets the color of the player name in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_radio_location 1 /// Sets the color of the RADIO string in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_dots_location 1 /// Sets the color of the dots symbol (':' symbol) in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_parentheses_location 1 /// Sets the color of the parentheses in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_dead_audio 1 /// Sets whether or not the grenade radio voices will be played to the dead players as well.
cgr_alive_audio 32 /// Only play grenade radio voices to the team if at most this number of players are alive in it.
Code:
------------
cgr_append 0
------------
------------
cgr_random 1
cgr_custom 1
------------
------
CS/ CZ
------
Caramel (RADIO): Throwing grenade!Caramel (RADIO): Flashbang out!Caramel (RADIO): Deploying smoke!
------------------
CZ w/ Map Location
------------------
Caramel @ CTSpawn (RADIO): Throwing grenade!Caramel @ CTSpawn (RADIO): Flashbang out!Caramel @ CTSpawn (RADIO): Deploying smoke!
------------
cgr_random 1
cgr_custom 0
------------
------
CS/ CZ
------
Caramel (RADIO): Throwing grenade!Caramel (RADIO): Flashbang out!Caramel (RADIO): Deploying smoke!
------------------
CZ w/ Map Location
------------------
Caramel @ CTSpawn (RADIO): Throwing grenade!Caramel @ CTSpawn (RADIO): Flashbang out!Caramel @ CTSpawn (RADIO): Deploying smoke!
------------
cgr_random 0
cgr_custom 1
------------
------
CS/ CZ
------
Caramel (RADIO): Fire in the hole!Caramel (RADIO): Fire in the hole!Caramel (RADIO): Fire in the hole!
------------------
CZ w/ Map Location
------------------
Caramel @ CTSpawn (RADIO): Fire in the hole!Caramel @ CTSpawn (RADIO): Fire in the hole!Caramel @ CTSpawn (RADIO): Fire in the hole!
------------
cgr_random 0
cgr_custom 0
------------
------
CS/ CZ
------
Caramel (RADIO): Fire in the hole!Caramel (RADIO): Fire in the hole!Caramel (RADIO): Fire in the hole!
------------------
CZ w/ Map Location
------------------
Caramel @ CTSpawn (RADIO): Fire in the hole!Caramel @ CTSpawn (RADIO): Fire in the hole!Caramel @ CTSpawn (RADIO): Fire in the hole!
------------
cgr_append 1
------------
------
CS/ CZ
------
Caramel (RADIO): Fire in the hole! GRENADECaramel (RADIO): Fire in the hole! FLASHCaramel (RADIO): Fire in the hole! SMOKE
------------------
CZ w/ Map Location
------------------
Caramel @ CTSpawn (RADIO): Fire in the hole! GRENADECaramel @ CTSpawn (RADIO): Fire in the hole! FLASHCaramel @ CTSpawn (RADIO): Fire in the hole! SMOKE
------------
cgr_append 2
------------
------
CS/ CZ
------
Caramel (RADIO): GRENADECaramel (RADIO): FLASHCaramel (RADIO): SMOKE
------------------
CZ w/ Map Location
------------------
Caramel @ CTSpawn (RADIO): GRENADECaramel @ CTSpawn (RADIO): FLASHCaramel @ CTSpawn (RADIO): SMOKE
See The 'conditioned_grenade_radio.inc' File
PHP Code:
#if defined _conditioned_grenade_radio
#endinput
#endif /// defined _conditioned_grenade_radio
#define _conditioned_grenade_radio
#if defined AMXX_VERSION_NUM
#if AMXX_VERSION_NUM >= 175
#pragma reqlib conditioned_grenade_radio
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib conditioned_grenade_radio
#endif /// !defined AMXMODX_NOAUTOLOAD
#else /// AMXX_VERSION_NUM >= 175
#pragma library conditioned_grenade_radio
#endif /// AMXX_VERSION_NUM >= 175
#else /// defined AMXX_VERSION_NUM
#pragma library conditioned_grenade_radio
#endif /// defined AMXX_VERSION_NUM
#include < amxmodx >
/**
*
* Sets the tag. This will overwrite an existing tag, if any.
*
* Do not call this inside the `client_connect()` forward. Call this later. For example, call this inside the `client_authorized()` or `client_putinserver()` forwards.
*
* The examples of tags are listed below.
*
* "\x04[CARAMEL] " ( If In Your .SMA There Is `#pragma ctrlchar '\'` ) [ GREEN ]
*
* "^x04[CARAMEL] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GREEN ]
*
* "\x03[CARAMEL] " ( If In Your .SMA There Is `#pragma ctrlchar '\'` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
*
* "^x03[CARAMEL] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
*
* "[\x04 CARAMEL\x01 ] " ( If In Your .SMA There Is `#pragma ctrlchar '\'` ) [ GREEN ]
* "[ \x04CARAMEL \x01] " ( If In Your .SMA There Is `#pragma ctrlchar '\'` ) [ GREEN ]
*
* "[^x04 CARAMEL^x01 ] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GREEN ]
* "[ ^x04CARAMEL ^x01] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GREEN ]
*
* "[\x03 CARAMEL^x01 ] " ( If In Your .SMA There Is `#pragma ctrlchar '\'` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
* "[ \x03CARAMEL ^x01] " ( If In Your .SMA There Is `#pragma ctrlchar '\'` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
*
* "[^x03 CARAMEL^x01 ] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
* "[ ^x03CARAMEL ^x01] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
*
* "CARAMEL " [ NORMAL COLOR ]
*
* "[CARAMEL] " [ NORMAL COLOR ]
*
*/
native CGR_SetPlayerTag(nPlayer, const szTag[]);
/**
*
* Removes the tag.
*
* No need to call this inside `client_connect()`, `client_disconnect()` or `client_disconnected()`.
*
*/
native CGR_DelPlayerTag(nPlayer);
Example Of Setting A Player Tag/ See The 'cgr_player_tags.sma' File