#pragma semicolon 1
#include <sourcemod>
public OnClientPostAdminCheck(client)
{
decl String:Name[64];
GetClientName(client, Name, sizeof(Name));
new flags = GetUserFlagBits(client);
if (flags & ADMFLAG_ROOT || flags & ADMFLAG_KICK)
{
PrintToChatAll("\x03Администратор - %s заходит в игру", Name);
}
}
Код плагинаМмммм братик я тебя вапче непонел!
http://hlmod.ru/forum/zashita-igrovogo-servera/87-zblock-4-5-a-10.htmlВот у меня на сервере стоит zBlock 4.5 вот и GunGame почему у меня не играет музыка на сервере?
потому что стоит zblock.И вот ещё один вопрос! Вот у меня на сервере стоит zBlock 4.5 вот и GunGame почему у меня не играет музыка на сервере? ну играла раньше поставил zBlock перестала Вопрос как ее включить?
whitelist
{
//
// 3 modifiers are allowed on file specifications:
//
// from_steam - only check the Steam cache for the file (ignore anything on disk)
// allow_from_disk - allow the file to come from disk
// check_crc - used with allow_from_disk - server does CRC checks on the client's file to make sure it matches
//
// The default modifier on all files is allow_from_disk. Thus, all files can come from disk and don't need CRC checks unless
// allow_from_disk can be set at the same time as check_crc. Use the + character in between them to signify this: allow_from_disk+check_crc.
//
// Three types of file specifications:
//
// 1. directory\*.* - refers to all files under the directory
// 2. directory\... - refers to all files under the directory and all directories under that (recursively)
// 3. directory\filename - refers to a single file
//
// By default, when in pure server mode, most content file types are only allowed to come from Steam.
//
//
// Allow custom player models. Don't do CRC checks on them because the clients may all
// have different custom models and the server won't have them all.
//
models\player\... allow_from_disk
materials\models\player\... allow_from_disk
//
// Allow custom spray decals.
//
//
// Allow replay browser thumbnails.
//
materials\vgui\replay\thumbnails\... allow_from_disk
//
// (Uncomment and edit these for mods).
// Allow mod resources to come from disk.
//
sound\gungame\... allow_from_disk
}
whitelist
{
sound\gungame\gungame2.wav allow_from_disk
sound\gungame\knife_level.wav allow_from_disk
sound\gungame\nade_level.wav allow_from_disk
sound\gungame\smb_star.mp3 allow_from_disk
sound\gungame\smb_warning2.mp3 allow_from_disk
sound\gungame\smb3_1-up.wav allow_from_disk
sound\gungame\smb3_powerdown.wav allow_from_disk
sound\gungame\smb3_powerup.wav allow_from_disk
}
#pragma semicolon 1
#include <sourcemod>
public OnClientPostAdminCheck(client)
{
decl String:Name[64];
GetClientName(client, Name, sizeof(Name));
new flags = GetUserFlagBits(client);
if (flags & ADMFLAG_ROOT || flags & ADMFLAG_KICK)
{
PrintToChatAll("\x01\x04[GunGame] Администратор - %s заходит в игру!!!", Name);
}
}
#pragma semicolon 1
#define MAX_FILE_LEN 256
new Handle:CvarSoundName = INVALID_HANDLE;
new String:soundName[MAX_FILE_LEN];
#include <sourcemod>
#include <sdktools_sound>
#include <sdktools>
public OnPluginStart()
{
CvarSoundName = CreateConVar("sm_adminconnect", "tvoisong...");
}
public OnConfigsExecuted()
{
GetConVarString(CvarSoundName, soundName, MAX_FILE_LEN);
decl String:buffer[MAX_FILE_LEN];
PrecacheSound(soundName, true);
Format(buffer, sizeof(buffer), "sound/%s", soundName);
AddFileToDownloadsTable(buffer);
}
public OnClientPostAdminCheck(client)
{
decl String:Name[64];
GetClientName(client, Name, sizeof(Name));
new flags = GetUserFlagBits(client);
if (flags & ADMFLAG_ROOT || flags & ADMFLAG_KICK)
{
PrintToChatAll("\x03Администратор - %s заходит в игру", Name);
EmitSoundToAll(soundName);
}
}
Сюда впиши свой путь без sound/tvoisong...