T nin mic basmasını nasıl engelleyebilirim plugin mevcut mu?
Konu
PHP Kod:
#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION "0.00"
#include <sourcemod>
#include <sdktools>
#include <basecomm>
#pragma newdecls required
public Plugin myinfo =
{
name = "",
author = PLUGIN_AUTHOR,
description = "",
version = PLUGIN_VERSION,
url = ""
};
public void OnPluginStart()
{
AddCommandListener( VoiceRecord, "+voicerecord" );
}
public Action VoiceRecord( int client, const char[ ] command, int argc )
{
if( IsClientInGame( client ) )
{
if( GetClientTeam( client ) == 3 )
{
BaseComm_SetClientMute( client, false );
}
else
{
BaseComm_SetClientMute( client, true );
}
}
}
Son Düzenleme: 06-05-2020, 21:05, Düzenleyen: Anıl Can.
(06-05-2020, 20:42)Anıl Can Adlı Kullanıcıdan Alıntı:Mic basılıyor şuandaEke compile ettiğim kodu koydumPHP Kod:#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION "0.00"
#include <sourcemod>
#include <sdktools>
#include <basecomm>
#pragma newdecls required
public Plugin myinfo =
{
name = "",
author = PLUGIN_AUTHOR,
description = "",
version = PLUGIN_VERSION,
url = ""
};
public void OnPluginStart()
{
AddCommandListener( VoiceRecord, "+voicerecord" );
}
public Action VoiceRecord( int client, const char[ ] command, int argc )
{
if( IsClientInGame( client ) )
{
if( GetClientTeam( client ) == 3 )
{
BaseComm_SetClientMute( client, false );
}
else
{
BaseComm_SetClientMute( client, true );
}
}
}
susturulmuş oluyorlar direk el başı ama yetkili birisi unmute yapınca basabiliyorlar
Son Düzenleme: 08-05-2020, 13:53, Düzenleyen: Red*.
Bu eklentinin mantığı tdeki oyunculara mute atıyor.Eğer hostunuzda dhooks modülü kuruluysa başka bir yöntemle yapabilirim.Hostunuza sorun ona göre bir çözüm sunayım.
)


