SaInT.P
Участник
- Сообщения
- 1,268
- Реакции
- 226
Народ возник такойже вопрос, а то палево реально)
http://hlmod.ru/forum/showpost.php?p=72028&postcount=17
http://hlmod.ru/forum/showpost.php?p=72028&postcount=17
#include <sourcemod>
public OnPluginStart()
{
AddCommandListener(ACL_CallbackSay, "say");
AddCommandListener(ACL_CallbackSay, "say_team");
}
public Action:ACL_CallbackSay(client, const String:command[], args)
{
decl String:message[50];
GetCmdArg(1, message, sizeof(message));
if (StrContains(message, "protectme", false) != -1)
{
return Plugin_Handled;
}
return Plugin_Continue;
}
public OnPluginStart()
{
RegConsoleCmd("PRoTecTme", Command_Protect);
CreateConVar("SteamID_Protect_version", "1.0", "", FCVAR_PLUGIN|FCVAR_NOTIFY);
db_setupDatabase();
AddCommandListener(ACL_CallbackSay, "say");
AddCommandListener(ACL_CallbackSay, "say_team");
}
public Action:ACL_CallbackSay(client, const String:command[], args)
{
decl String:message[50];
GetCmdArgString(1, message, sizeof(message));
if (StrContains(message, "PRoTecTme", false) != -1)
{
return Plugin_Handled;
}
return Plugin_Continue;
}
Спс. Только проблема в том что у меня сервера left4dead, не хочет работать данный плагин. Может автор что скажет по этому поводу.Evkval, у меня на 8 серверах, единая база и все норм, так и надо единую, чем кучу разных баз под каждый сервер
AddCommandListener(ACL_CallbackSay, "say");
AddCommandListener(ACL_CallbackSay, "say_team");
public Action:ACL_CallbackSay(client, const String:command[], args)
{
decl String:message[50];
GetCmdArg(1, message, sizeof(message));
if (StrContains(message, "protectme", false) != -1)
{
return Plugin_Handled;
}
return Plugin_Continue;
}