fixed amb1233 - sm_psay from server console
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401754
This commit is contained in:
parent
86a9369c04
commit
049eff8336
@ -317,17 +317,37 @@ public Action:Command_SmPsay(client, args)
|
|||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
|
||||||
decl String:name[64], String:name2[64];
|
decl String:name[64], String:name2[64];
|
||||||
|
|
||||||
|
if (client == 0)
|
||||||
|
{
|
||||||
|
name = "Console";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
GetClientName(client, name, sizeof(name));
|
GetClientName(client, name, sizeof(name));
|
||||||
|
}
|
||||||
|
|
||||||
GetClientName(target, name2, sizeof(name2));
|
GetClientName(target, name2, sizeof(name2));
|
||||||
|
|
||||||
if (g_DoColor)
|
if (client == 0)
|
||||||
|
{
|
||||||
|
PrintToServer("(Private: %s) %s: %s", name2, name, message);
|
||||||
|
}
|
||||||
|
else if (g_DoColor)
|
||||||
{
|
{
|
||||||
PrintToChat(client, "\x04(Private: %s) %s: \x01%s", name2, name, message);
|
PrintToChat(client, "\x04(Private: %s) %s: \x01%s", name2, name, message);
|
||||||
PrintToChat(target, "\x04(Private: %s) %s: \x01%s", name2, name, message);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PrintToChat(client, "(Private: %s) %s: %s", name2, name, message);
|
PrintToChat(client, "(Private: %s) %s: %s", name2, name, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g_DoColor)
|
||||||
|
{
|
||||||
|
PrintToChat(target, "\x04(Private: %s) %s: \x01%s", name2, name, message);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
PrintToChat(target, "(Private: %s) %s: %s", name2, name, message);
|
PrintToChat(target, "(Private: %s) %s: %s", name2, name, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user