}
new arg2[20]
get_msg_arg_string(2, arg2, 19)
if(equal(arg2[1], "!MRAD_FIREINHOLE"))
{
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public grenade_throw(id,ent,wid)
{
if(!get_cvar_num("amx_custom_radio"))
return PLUGIN_CONTINUE
new players[32],total, team_name[10]
get_user_team(id,team_name, 9)
get_players(players, total ,"ce", team_name) // No bots and Match team name
new name[32]
get_user_name(id,name,31)
for(new a=0; a < total; ++a)
{
client_cmd(players[a], "spk radio/custom/ct_fireinhole.wav")
if (get_cvar_num("amx_real_radio"))
{
emit_sound(id, CHAN_VOICE, "radio/custom/ct_fireinhole.wav" , 0.9, ATTN_STATIC, 0, PITCH_NORM)
}
}
return PLUGIN_HANDLED
}
public radiotimer(id) {
g_RadioTimer[id] = 0
return PLUGIN_HANDLED
}
public client_connect(id) {
g_RadioTimer[id] = 0
}
public client_disconnect(id) {
g_RadioTimer[id] = 0
}
public client_putinserver(id)
{
set_task(20.0, "dispInfo", id)
}
public dispInfo(id)
{
if (get_cvar_num("amx_radio_info"))
public plugin_cfg()
{
get_cvar_string("CRcoverme", CRcoverme, 63)
get_cvar_string("CRtakepoint", CRtakepoint, 63)
get_cvar_string("CRhposition", CRhposition, 63)
Chyba to
Użytkownik darosevic edytował ten post 02.02.2011 12:29