←  Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

mute cale terro

Locked

  • +
  • -
Dead Gamer's Photo Dead Gamer 11.08.2009

Szukam pluginu który automatycznie będzie mutować całą drużynę terro.

NIE CHCĘ ŻADNYCH GAGÓW, /MUTE itp
Quote

  • +
  • -
mikus's Photo mikus 11.08.2009

Nie spotkałem takiego czegoś, ale można pisać :)
Quote

  • +
  • -
naven's Photo naven 11.08.2009

Nie odrzucaj mute, można to wykorzystać, np postawić warunek na drużynę gracza i wtedy server_cmd zmutować każdego terro
Quote

  • +
  • -
Dead Gamer's Photo Dead Gamer 11.08.2009

Nie spotkałem takiego czegoś, ale można pisać :)

Bardzo przydatny taki plugin na JB

Napisał by ktoś?

@edit
A dało by się coś takiego, że CT ma alltalka, a terro tylko do swoich może mówić?
Quote

  • +
  • -
naven's Photo naven 11.08.2009

Voices management, jest na forum, poszukaj
Quote

  • +
  • -
Dead Gamer's Photo Dead Gamer 11.08.2009

Znalazłem temat, ale tam nie da się ustawić to co ja chcę. Tylko między żywi/nie żywi / admin itp
Quote

  • +
  • -
byCZUS's Photo byCZUS 13.08.2009

#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Jail Voices"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.4"

new const g_iSpeakSettings[] = {
    SPEAK_LISTENALL,
    SPEAK_MUTED|SPEAK_LISTENALL,
    SPEAK_ALL|SPEAK_LISTENALL,
    SPEAK_LISTENALL
}

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
}

public Player_Spawn_Post( id )
{
    is_user_alive(id)
    {
        set_speak(id, g_iSpeakSettings[ _:cs_get_user_team(id) ] )
    }
}

Plugin taki jak chcesz czyli CT gada do wszystkich a TT milczy
Quote

  • +
  • -
Kraft's Photo Kraft 13.08.2009

Nie mozna skompilowac.....

JA bym tez chetnie z tego skorzystal...
Quote

  • +
  • -
naven's Photo naven 13.08.2009

Dobrze się kompiluje
w załączniki skompilowane

Attached Files

Quote

  • +
  • -
zer0.'s Photo zer0. 13.08.2009

Skorzystaj z tego:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
 
#define ADMIN_VOICE ADMIN_MENU
 
new bool:g_connected[33];
new g_max_clients;
 
public plugin_init()
{
    register_plugin("No Terrorist Voice", "0.1", "Exolent");
 
    register_forward(FM_Voice_SetClientListening, "FwdSetVoice");
 
    g_max_clients = get_maxplayers();
}
 
public client_putinserver(client)
{
    g_connected[client] = true;
}
 
public client_disconnect(client)
{
    g_connected[client] = false;
}
 
public FwdSetVoice(receiver, sender, bool:listen)
{
    if( !(1 <= receiver <= g_max_clients)
    || !g_connected[receiver]
    || !(1 <= sender <= g_max_clients)
    || !g_connected[sender] ) return FMRES_IGNORED;
 
    new CsTeams:team = cs_get_user_team(sender);
    if( (team == CS_TEAM_T || team == CS_TEAM_CT && !is_user_alive(sender)) && !access(sender, ADMIN_VOICE) )
    {
        engfunc(EngFunc_SetClientListening, receiver, sender, 0);
        return FMRES_SUPERCEDE;
    }
 
    return FMRES_IGNORED;
}
Quote

  • +
  • -
Kraft's Photo Kraft 13.08.2009

A mógłby ktoś przerobić plugin :

#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Jail Voices"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.4"

new const g_iSpeakSettings[] = {
    SPEAK_LISTENALL,
    SPEAK_MUTED|SPEAK_LISTENALL,
    SPEAK_ALL|SPEAK_LISTENALL,
    SPEAK_LISTENALL
}

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
}

public Player_Spawn_Post( id )
{
    is_user_alive(id)
    {
        set_speak(id, g_iSpeakSettings[ _:cs_get_user_team(id) ] )
    }
}


Tak zeby nie mutowalo admina z flaga C?
I od razu skompilowac bo mi jakos ten plugin sie nie kompiluje :D

Za pomoc Pomogl :)))
Quote
Locked