KENEZEZ
Участник
- Сообщения
- 43
- Реакции
- 3
Здравствуйте. Подскажите, пожалуйста, где можно изменить данный префикс?
Все что нашел в sourcebans:
И это:
Но префикс он берет с другого плагина, видимо, и никак не пойму с какого
Все что нашел в sourcebans:
C-подобный:
stock void PrepareBan(int client, int target, int time, char[] reason, int size)
{
#if defined DEBUG
LogToFile(logFile, "PrepareBan()");
#endif
if (!target || !IsClientInGame(target))
return;
char authid[64], name[32], bannedSite[512];
if (!GetClientAuthId(target, AuthId_Steam2, authid, sizeof(authid)))
return;
GetClientName(target, name, sizeof(name));
if (CreateBan(client, target, time, reason))
{
if (!time)
{
if (reason[0] == '\0')
{
CShowActivity(client, "%t", "Permabanned player", name);
} else {
CShowActivity(client, "%t", "Permabanned player reason", name, reason);
}
} else {
if (reason[0] == '\0')
{
CShowActivity(client, "%t", "Banned player", name, time);
} else {
CShowActivity(client, "%t", "Banned player reason", name, time, reason);
}
}
LogAction(client, target, "\"%L\" banned \"%L\" (minutes \"%d\") (reason \"%s\")", client, target, time, reason);
if (time > 5 || time == 0)
time = 5;
Format(bannedSite, sizeof(bannedSite), "%T", "Banned Check Site", target, WebsiteAddress);
BanClient(target, time, BANFLAG_AUTO, bannedSite, bannedSite, "sm_ban", client);
}
g_BanTarget[client] = -1;
g_BanTime[client] = -1;
}
И это:
C-подобный:
if (!time)
{
if (Reason[0] == '\0')
{
CShowActivityEx(admin, Prefix, "%t", "Permabanned player", Name);
} else {
CShowActivityEx(admin, Prefix, "%t", "Permabanned player reason", Name, Reason);
}
} else {
if (Reason[0] == '\0')
{
CShowActivityEx(admin, Prefix, "%t", "Banned player", Name, time);
} else {
CShowActivityEx(admin, Prefix, "%t", "Banned player reason", Name, time, Reason);
}
}
LogAction(admin, client, "\"%L\" banned \"%L\" (minutes \"%d\") (reason \"%s\")", admin, client, time, Reason);
if (PlayerDataPack[admin] != INVALID_HANDLE)
{
CloseHandle(PlayerDataPack[admin]);
CloseHandle(ReasonPack);
PlayerDataPack[admin] = INVALID_HANDLE;
}
// Kick player
if (GetClientUserId(client) == UserId)
KickClient(client, "%t", "Banned Check Site", WebsiteAddress);
}