<div><font face="Lucida Console"><b><div align="center"><font size="5"><font color="orange">CS/ CZ: Conditioned Grenade Radio</font> <font color="green">v1.1</font></font></div></b></font><br /><a href="https://www.gametrac...#38;order=DESC"target="_blank" rel="nofollow noopener"><font face="Lucida Console"><b>GameTracker</b>/ servers using <b>CGR v1.1</b></font></a><br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">cgr_enabled 1 </span><span style="color: #FF8000">/// Sets whether or not this plugin is enabled.
<br /></span><span style="color: #0000BB">cgr_spaces 0 </span><span style="color: #FF8000">/// A value of 0 means the default '(RADIO): Fire' and a value of 1 means '(RADIO) : Fire'.
<br /></span><span style="color: #0000BB">cgr_dead 1 </span><span style="color: #FF8000">/// Sets whether or not the grenade radio phrases will be displayed to the dead players as well.
<br /></span><span style="color: #0000BB">cgr_reliable 0 </span><span style="color: #FF8000">/// Sets whether or not the replacement grenade radio phrases will be delivered as reliable.
<br /></span><span style="color: #0000BB">cgr_random 1 </span><span style="color: #FF8000">/// Sets whether or not to use random grenade radio phrases when the players are throwing grenades.
<br /></span><span style="color: #0000BB">cgr_custom 0 </span><span style="color: #FF8000">/// Sets whether or not only the grenade name in the entire grenade radio phrase should be colored.
<br /></span><span style="color: #0000BB">cgr_alive 32 </span><span style="color: #FF8000">/// Only display grenade radio phrases to the team if at most this number of players are alive in it.
<br /></span><span style="color: #0000BB">cgr_append 0 </span><span style="color: #FF8000">/// Sets whether or not to only append a colored GRENADE, FLASH or SMOKE string after the original game grenade radio phrase.
<br /></span><span style="color: #0000BB">cgr_name 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_radio 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_dots 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_parentheses 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_at 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_location 4 </span><span style="color: #FF8000">/// 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.
<br />
<br /></span><span style="color: #0000BB">cgr_dots_enabled 1 </span><span style="color: #FF8000">/// Sets whether or not to enable the default dots in grenade radio phrases (':' symbol).
<br /></span><span style="color: #0000BB">cgr_name_location 4 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_radio_location 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_dots_location 1 </span><span style="color: #FF8000">/// 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.
<br /></span><span style="color: #0000BB">cgr_parentheses_location 1 </span><span style="color: #FF8000">/// 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.
<br />
<br /></span><span style="color: #0000BB">cgr_dead_audio 1 </span><span style="color: #FF8000">/// Sets whether or not the grenade radio voices will be played to the dead players as well.
<br /></span><span style="color: #0000BB">cgr_alive_audio 32 </span><span style="color: #FF8000">/// Only play grenade radio voices to the team if at most this number of players are alive in it.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><font face="Lucida Console">------------<br />cgr_append 0<br />------------<br /><br /> ------------<br /> cgr_random 1<br /> cgr_custom 1<br /> ------------<br /><br /> ------<br /> CS/ CZ<br /> ------<br /><br /> <b><font color="orange">Caramel (RADIO): Throwing</font> <font color="red">grenade</font><font color="orange">!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="grey">Flashbang</font> <font color="orange">out!</font></b><br /> <b><font color="orange">Caramel (RADIO): Deploying</font> <font color="green">smoke</font><font color="orange">!</font></b><br /><br /> ------------------<br /> CZ w/ Map Location<br /> ------------------<br /><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO): Throwing</font> <font color="red">grenade</font><font color="orange">!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="grey">Flashbang</font> <font color="orange">out!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO): Deploying</font> <font color="green">smoke</font><font color="orange">!</font></b><br /><br /> ------------<br /> cgr_random 1<br /> cgr_custom 0<br /> ------------<br /><br /> ------<br /> CS/ CZ<br /> ------<br /><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="red">Throwing grenade!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="grey">Flashbang out!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="green">Deploying smoke!</font></b><br /><br /> ------------------<br /> CZ w/ Map Location<br /> ------------------<br /><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="red">Throwing grenade!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="grey">Flashbang out!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="green">Deploying smoke!</font></b><br /><br /> ------------<br /> cgr_random 0<br /> cgr_custom 1<br /> ------------<br /><br /> ------<br /> CS/ CZ<br /> ------<br /><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="red">Fire</font> <font color="orange">in the hole!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="grey">Fire</font> <font color="orange">in the hole!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="green">Fire</font> <font color="orange">in the hole!</font></b><br /><br /> ------------------<br /> CZ w/ Map Location<br /> ------------------<br /><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="red">Fire</font> <font color="orange">in the hole!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="grey">Fire</font> <font color="orange">in the hole!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="green">Fire</font> <font color="orange">in the hole!</font></b><br /><br /> ------------<br /> cgr_random 0<br /> cgr_custom 0<br /> ------------<br /><br /> ------<br /> CS/ CZ<br /> ------<br /><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="red">Fire in the hole!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="grey">Fire in the hole!</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="green">Fire in the hole!</font></b><br /><br /> ------------------<br /> CZ w/ Map Location<br /> ------------------<br /><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="red">Fire in the hole!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="grey">Fire in the hole!</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="green">Fire in the hole!</font></b><br /><br />------------<br />cgr_append 1<br />------------<br /><br /> ------<br /> CS/ CZ<br /> ------<br /><br /> <b><font color="orange">Caramel (RADIO): Fire in the hole!</font> <font color="red">GRENADE</font></b><br /> <b><font color="orange">Caramel (RADIO): Fire in the hole!</font> <font color="grey">FLASH</font></b><br /> <b><font color="orange">Caramel (RADIO): Fire in the hole!</font> <font color="green">SMOKE</font></b><br /><br /> ------------------<br /> CZ w/ Map Location<br /> ------------------<br /><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO): Fire in the hole!</font> <font color="red">GRENADE</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO): Fire in the hole!</font> <font color="grey">FLASH</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO): Fire in the hole!</font> <font color="green">SMOKE</font></b><br /><br />------------<br />cgr_append 2<br />------------<br /><br /> ------<br /> CS/ CZ<br /> ------<br /><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="red">GRENADE</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="grey">FLASH</font></b><br /> <b><font color="orange">Caramel (RADIO):</font> <font color="green">SMOKE</font></b><br /><br /> ------------------<br /> CZ w/ Map Location<br /> ------------------<br /><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="red">GRENADE</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="grey">FLASH</font></b><br /> <b><font color="green">Caramel</font> <font color="orange">@</font> <font color="green">CTSpawn</font> <font color="orange">(RADIO):</font> <font color="green">SMOKE</font></b></font></code><hr />
</div><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>See The 'conditioned_grenade_radio.inc' File</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#if defined _conditioned_grenade_radio
<br />
<br /> #endinput
<br />
<br />#endif /// defined _conditioned_grenade_radio
<br />
<br />#define _conditioned_grenade_radio
<br />
<br />#if defined AMXX_VERSION_NUM
<br />
<br /> #if AMXX_VERSION_NUM >= 175
<br />
<br /> #pragma reqlib conditioned_grenade_radio
<br />
<br /> #if !defined AMXMODX_NOAUTOLOAD
<br />
<br /> #pragma loadlib conditioned_grenade_radio
<br />
<br /> #endif /// !defined AMXMODX_NOAUTOLOAD
<br />
<br /> #else /// AMXX_VERSION_NUM >= 175
<br />
<br /> #pragma library conditioned_grenade_radio
<br />
<br /> #endif /// AMXX_VERSION_NUM >= 175
<br />
<br />#else /// defined AMXX_VERSION_NUM
<br />
<br /> #pragma library conditioned_grenade_radio
<br />
<br />#endif /// defined AMXX_VERSION_NUM
<br />
<br />#include < amxmodx >
<br />
<br />/**
<br /> *
<br /> * Sets the tag. This will overwrite an existing tag, if any.
<br /> *
<br /> * Do not call this inside the `client_connect()` forward. Call this later. For example, call this inside the `client_authorized()` or `client_putinserver()` forwards.
<br /> *
<br /> * The examples of tags are listed below.
<br /> *
<br /> * "x04[CARAMEL] " ( If In Your .SMA There Is `#pragma ctrlchar ''` ) [ GREEN ]
<br /> *
<br /> * "^x04[CARAMEL] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GREEN ]
<br /> *
<br /> * "x03[CARAMEL] " ( If In Your .SMA There Is `#pragma ctrlchar ''` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
<br /> *
<br /> * "^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 } ]
<br /> *
<br /> * "[x04 CARAMELx01 ] " ( If In Your .SMA There Is `#pragma ctrlchar ''` ) [ GREEN ]
<br /> * "[ x04CARAMEL x01] " ( If In Your .SMA There Is `#pragma ctrlchar ''` ) [ GREEN ]
<br /> *
<br /> * "[^x04 CARAMEL^x01 ] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GREEN ]
<br /> * "[ ^x04CARAMEL ^x01] " ( If In Your .SMA There Is No `#pragma ctrlchar` At All Or There Is `#pragma ctrlchar '^'` ) [ GREEN ]
<br /> *
<br /> * "[x03 CARAMEL^x01 ] " ( If In Your .SMA There Is `#pragma ctrlchar ''` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
<br /> * "[ x03CARAMEL ^x01] " ( If In Your .SMA There Is `#pragma ctrlchar ''` ) [ GRENADE = RED, FLASH = GREY & SMOKE = TEAM COLOR ( RED/ BLUE ) { THROWER'S TEAM COLOR } ]
<br /> *
<br /> * "[^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 } ]
<br /> * "[ ^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 } ]
<br /> *
<br /> * "CARAMEL " [ NORMAL COLOR ]
<br /> *
<br /> * "[CARAMEL] " [ NORMAL COLOR ]
<br /> *
<br /> */
<br /></span><span style="color: #0000BB">native CGR_SetPlayerTag</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">, const </span><span style="color: #0000BB">szTag</span><span style="color: #007700">[]);
<br />
<br /></span><span style="color: #FF8000">/**
<br /> *
<br /> * Removes the tag.
<br /> *
<br /> * No need to call this inside `client_connect()`, `client_disconnect()` or `client_disconnected()`.
<br /> *
<br /> */
<br /></span><span style="color: #0000BB">native CGR_DelPlayerTag</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
</div>
</div><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Example Of Setting A Player Tag/ See The 'cgr_player_tags.sma' File</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#pragma tabsize 0
<br />#pragma semicolon 0
<br />#pragma ctrlchar ''
<br />#pragma dynamic 4194304
<br />
<br />#include < amxmodx >
<br />
<br />#include < conditioned_grenade_radio >
<br />
<br /></span><span style="color: #007700">static const </span><span style="color: #0000BB">g_pszSteams</span><span style="color: #007700">[] =
<br />{
<br /> </span><span style="color: #DD0000">"STEAM_0:0:36120359"</span><span style="color: #007700">,
<br />};
<br />
<br />static const </span><span style="color: #0000BB">g_pszTags</span><span style="color: #007700">[] =
<br />{
<br /> </span><span style="color: #DD0000">"[x04 KINGx01 ] "</span><span style="color: #007700">,
<br />};
<br />
<br /></span><span style="color: #FF8000">#if !defined MaxClients
<br />
<br /></span><span style="color: #007700">static </span><span style="color: #0000BB">g_nPlayers </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br /></span><span style="color: #007700">public </span><span style="color: #0000BB">plugin_init</span><span style="color: #007700">()
<br />{
<br /> </span><span style="color: #0000BB">register_plugin</span><span style="color: #007700">(</span><span style="color: #DD0000">"CGR Player Tags"</span><span style="color: #007700">, </span><span style="color: #0000BB">__DATE__</span><span style="color: #007700">, </span><span style="color: #DD0000">"Hattrick HKS (ClaudiuHKS)"</span><span style="color: #007700">);
<br />
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br />}
<br />
<br />public </span><span style="color: #0000BB">plugin_cfg</span><span style="color: #007700">()
<br />{
<br />
<br /></span><span style="color: #FF8000">#if !defined MaxClients
<br />
<br /> </span><span style="color: #0000BB">g_nPlayers </span><span style="color: #007700">= </span><span style="color: #0000BB">get_maxplayers</span><span style="color: #007700">();
<br />
<br /> if (</span><span style="color: #0000BB">1 </span><span style="color: #007700">> </span><span style="color: #0000BB">g_nPlayers</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br /> ///
<br />
<br /> </span><span style="color: #007700">return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br />}
<br />
<br /></span><span style="color: #FF8000">#if defined client_connectex
<br />
<br /></span><span style="color: #007700">public </span><span style="color: #0000BB">client_authorized</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">, const </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">[])
<br />
<br /></span><span style="color: #FF8000">#else
<br />
<br /></span><span style="color: #007700">public </span><span style="color: #0000BB">client_authorized</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">)
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br /></span><span style="color: #007700">{
<br /> static </span><span style="color: #0000BB">nIter </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;
<br />
<br /></span><span style="color: #FF8000">#if !defined client_connectex
<br />
<br /> </span><span style="color: #007700">static </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">] = { </span><span style="color: #0000BB">EOS</span><span style="color: #007700">, ... };
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br /> </span><span style="color: #007700">if (</span><span style="color: #0000BB">1 </span><span style="color: #007700">> </span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#if !defined MaxClients
<br />
<br /> </span><span style="color: #007700">if (</span><span style="color: #0000BB">nPlayer </span><span style="color: #007700">> </span><span style="color: #0000BB">g_nPlayers</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#else
<br />
<br /> </span><span style="color: #007700">if (</span><span style="color: #0000BB">nPlayer </span><span style="color: #007700">> </span><span style="color: #0000BB">MaxClients</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br />#if !defined client_connectex
<br />
<br /> </span><span style="color: #0000BB">get_user_authid</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">, </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">, </span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">szSteam</span><span style="color: #007700">));
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br /> </span><span style="color: #007700">for (</span><span style="color: #0000BB">nIter </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">nIter </span><span style="color: #007700">< </span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">g_pszSteams</span><span style="color: #007700">); </span><span style="color: #0000BB">nIter</span><span style="color: #007700">++)
<br /> {
<br /> if (!</span><span style="color: #0000BB">equali</span><span style="color: #007700">(</span><span style="color: #0000BB">g_pszSteams</span><span style="color: #007700">[</span><span style="color: #0000BB">nIter</span><span style="color: #007700">], </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">))
<br /> {
<br /> continue;
<br /> }
<br />
<br /> </span><span style="color: #0000BB">CGR_SetPlayerTag</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">, </span><span style="color: #0000BB">g_pszTags</span><span style="color: #007700">[</span><span style="color: #0000BB">nIter</span><span style="color: #007700">]);
<br />
<br /> break;
<br /> }
<br />
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br />}
<br />
<br />public </span><span style="color: #0000BB">client_putinserver</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">)
<br />{
<br /> static </span><span style="color: #0000BB">nIter </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;
<br />
<br /> static </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">] = { </span><span style="color: #0000BB">EOS</span><span style="color: #007700">, ... };
<br />
<br /> if (</span><span style="color: #0000BB">1 </span><span style="color: #007700">> </span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#if !defined MaxClients
<br />
<br /> </span><span style="color: #007700">if (</span><span style="color: #0000BB">nPlayer </span><span style="color: #007700">> </span><span style="color: #0000BB">g_nPlayers</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#else
<br />
<br /> </span><span style="color: #007700">if (</span><span style="color: #0000BB">nPlayer </span><span style="color: #007700">> </span><span style="color: #0000BB">MaxClients</span><span style="color: #007700">)
<br /> {
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br /> }
<br />
<br /></span><span style="color: #FF8000">#endif
<br />
<br /> </span><span style="color: #0000BB">get_user_authid</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">, </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">, </span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">szSteam</span><span style="color: #007700">));
<br />
<br /> for (</span><span style="color: #0000BB">nIter </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">nIter </span><span style="color: #007700">< </span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">g_pszSteams</span><span style="color: #007700">); </span><span style="color: #0000BB">nIter</span><span style="color: #007700">++)
<br /> {
<br /> if (!</span><span style="color: #0000BB">equali</span><span style="color: #007700">(</span><span style="color: #0000BB">g_pszSteams</span><span style="color: #007700">[</span><span style="color: #0000BB">nIter</span><span style="color: #007700">], </span><span style="color: #0000BB">szSteam</span><span style="color: #007700">))
<br /> {
<br /> continue;
<br /> }
<br />
<br /> </span><span style="color: #0000BB">CGR_SetPlayerTag</span><span style="color: #007700">(</span><span style="color: #0000BB">nPlayer</span><span style="color: #007700">, </span><span style="color: #0000BB">g_pszTags</span><span style="color: #007700">[</span><span style="color: #0000BB">nIter</span><span style="color: #007700">]);
<br />
<br /> break;
<br /> }
<br />
<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE</span><span style="color: #007700">;
<br />}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
</div>
</div><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">v1.0
<br /></span><span style="color: #007700">- </span><span style="color: #0000BB">Released
<br />v1.1
<br /></span><span style="color: #007700">- </span><span style="color: #0000BB">Added CVAR </span><span style="color: #007700">`</span><span style="color: #DD0000">cgr_dots_location</span><span style="color: #007700">`
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><font face="Lucida Console"><b>conditioned_grenade_radio.inc</b> goes to <b>/addons/amxmodx/scripting/include/</b><br /><br /></font></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...e_radio.inc</a>(3.5 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://www.amxmodx....36"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1704210314">GetSource</a> (cs_conditioned_grenade_radio.sma - 165.5 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
![Zdjęcie](https://amxx.pl/uploads/av-1.jpg?_r=0)
CS/ CZ: Conditioned Grenade Radio v1.1
Temat rozp. Adminek AMXX.PL, 02.01.2024 16:07
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych