added amb577
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401077
This commit is contained in:
parent
f3566e6f4c
commit
6dd0ff6b07
@ -797,6 +797,11 @@ static cell_t GetCmdReplyTarget(IPluginContext *pContext, const cell_t *params)
|
|||||||
return g_ChatTriggers.GetReplyTo();
|
return g_ChatTriggers.GetReplyTo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static cell_t SetCmdReplyTarget(IPluginContext *pContext, const cell_t *params)
|
||||||
|
{
|
||||||
|
return g_ChatTriggers.SetReplyTo(params[1]);
|
||||||
|
}
|
||||||
|
|
||||||
REGISTER_NATIVES(consoleNatives)
|
REGISTER_NATIVES(consoleNatives)
|
||||||
{
|
{
|
||||||
{"CreateConVar", sm_CreateConVar},
|
{"CreateConVar", sm_CreateConVar},
|
||||||
@ -833,5 +838,6 @@ REGISTER_NATIVES(consoleNatives)
|
|||||||
{"FakeClientCommand", FakeClientCommand},
|
{"FakeClientCommand", FakeClientCommand},
|
||||||
{"ReplyToCommand", ReplyToCommand},
|
{"ReplyToCommand", ReplyToCommand},
|
||||||
{"GetCmdReplySource", GetCmdReplyTarget},
|
{"GetCmdReplySource", GetCmdReplyTarget},
|
||||||
|
{"SetCmdReplyTarget", SetCmdReplyTarget},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
@ -183,6 +183,17 @@ native ReplyToCommand(client, const String:format[], any:...);
|
|||||||
*/
|
*/
|
||||||
native ReplySource:GetCmdReplySource();
|
native ReplySource:GetCmdReplySource();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the current reply source of a command.
|
||||||
|
*
|
||||||
|
* Only use this if you know what you are doing. You should save the old value
|
||||||
|
* and restore it once you are done.
|
||||||
|
*
|
||||||
|
* @param source New ReplySource value.
|
||||||
|
* @return Old ReplySource value.
|
||||||
|
*/
|
||||||
|
native ReplySource:SetCmdReplySource(ReplySource:source);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays usage of an admin command to users depending on the
|
* Displays usage of an admin command to users depending on the
|
||||||
* setting of the sm_show_activity cvar. Additionally, the client
|
* setting of the sm_show_activity cvar. Additionally, the client
|
||||||
|
Loading…
Reference in New Issue
Block a user