- fixed amb949 - basechat still didn't catch blank say commands right
- fixed a bug where server console could not use say commands in basechat --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401440
This commit is contained in:
parent
840c6236d0
commit
9366bad594
@ -157,10 +157,15 @@ public Action:Command_SayChat(client, args)
|
||||
public Action:Command_SayAdmin(client, args)
|
||||
{
|
||||
if (!CheckAdminForChat(client) && !GetConVarBool(g_Cvar_Chatmode))
|
||||
{
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
decl String:text[192];
|
||||
GetCmdArgString(text, sizeof(text));
|
||||
if (GetCmdArgString(text, sizeof(text)) < 1)
|
||||
{
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
new startidx;
|
||||
if (text[strlen(text)-1] == '"')
|
||||
@ -354,6 +359,11 @@ public Action:Command_SmMsay(client, args)
|
||||
|
||||
bool:CheckAdminForChat(client)
|
||||
{
|
||||
if (client == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
new AdminId:aid = GetUserAdmin(client);
|
||||
|
||||
if (aid == INVALID_ADMIN_ID)
|
||||
|
Loading…
Reference in New Issue
Block a user