Added sm_cancelvote to the base commands, as well as appropriate translations.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401282
This commit is contained in:
parent
b96505af03
commit
803f2122cf
@ -52,6 +52,7 @@ public OnPluginStart()
|
|||||||
RegAdminCmd("sm_addban", Command_AddBan, ADMFLAG_RCON, "sm_addban <time> <steamid> [reason]");
|
RegAdminCmd("sm_addban", Command_AddBan, ADMFLAG_RCON, "sm_addban <time> <steamid> [reason]");
|
||||||
RegAdminCmd("sm_banip", Command_BanIp, ADMFLAG_RCON, "sm_banip <time> <ip> [reason]");
|
RegAdminCmd("sm_banip", Command_BanIp, ADMFLAG_RCON, "sm_banip <time> <ip> [reason]");
|
||||||
RegAdminCmd("sm_reloadadmins", Command_ReloadAdmins, ADMFLAG_BAN, "sm_reloadadmins");
|
RegAdminCmd("sm_reloadadmins", Command_ReloadAdmins, ADMFLAG_BAN, "sm_reloadadmins");
|
||||||
|
RegAdminCmd("sm_cancelvote", Command_CancelVote, ADMFLAG_VOTE, "sm_cancelvote");
|
||||||
|
|
||||||
hBanForward = CreateGlobalForward("OnClientBanned", ET_Hook, Param_Cell, Param_Cell, Param_Cell, Param_String);
|
hBanForward = CreateGlobalForward("OnClientBanned", ET_Hook, Param_Cell, Param_Cell, Param_Cell, Param_String);
|
||||||
hAddBanForward = CreateGlobalForward("OnBanAdded", ET_Hook, Param_Cell, Param_String, Param_Cell, Param_String);
|
hAddBanForward = CreateGlobalForward("OnBanAdded", ET_Hook, Param_Cell, Param_String, Param_Cell, Param_String);
|
||||||
@ -601,3 +602,18 @@ public Action:Command_Kick(client, args)
|
|||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Action:Command_CancelVote(client, args)
|
||||||
|
{
|
||||||
|
if (IsVoteInProgress())
|
||||||
|
{
|
||||||
|
ReplyToCommand(client, "[SM] %t", "Vote Not In Progress");
|
||||||
|
return Plugin_Handled;
|
||||||
|
}
|
||||||
|
|
||||||
|
ShowActivity(client, "%t", "Cancelled Vote");
|
||||||
|
|
||||||
|
CancelVote();
|
||||||
|
|
||||||
|
return Plugin_Handled;
|
||||||
|
}
|
@ -163,4 +163,19 @@
|
|||||||
"#format" "{1:s}"
|
"#format" "{1:s}"
|
||||||
"en" "This action cannot be performed on a dead client \"{1}\""
|
"en" "This action cannot be performed on a dead client \"{1}\""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Vote in Progress"
|
||||||
|
{
|
||||||
|
"en" "A vote is already in progress."
|
||||||
|
}
|
||||||
|
|
||||||
|
"Vote Not In Progress"
|
||||||
|
{
|
||||||
|
"en" "A vote is not in progress at this time."
|
||||||
|
}
|
||||||
|
|
||||||
|
"Cancelled Vote"
|
||||||
|
{
|
||||||
|
"en" "Cancelled the vote."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user