added that admins can toggle easy help on and off
This commit is contained in:
parent
b6a1c15b7e
commit
9ff0faf337
@ -18,12 +18,29 @@ public Plugin myinfo =
|
||||
public void OnPluginStart()
|
||||
{
|
||||
HookEvent("round_start", OnRoundStart);
|
||||
RegAdminCmd("sm_helpon", Cmd_enableHelp, ADMFLAG_GENERIC);
|
||||
RegAdminCmd("sm_helpoff", Cmd_disableHelp, ADMFLAG_GENERIC);
|
||||
CreateTimer(80.0, CheckPopulation, _, TIMER_REPEAT);
|
||||
g_iDoingMapTouristMode = 0;
|
||||
g_iActivePlayerCount = 0;
|
||||
g_bMapended = false;
|
||||
}
|
||||
|
||||
public Action Cmd_enableHelp(int client, int args)
|
||||
{
|
||||
PrintToChatAll("ADMIN ENABLED LOW POP HELP");
|
||||
CreateTimer(1.0, SetHealthOnCT);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action Cmd_disableHelp(int client, int args)
|
||||
{
|
||||
PrintToChatAll("ADMIN DISABLED LOW POP HELP");
|
||||
ServerCommand("sm_iammo @all 0");
|
||||
ServerCommand("sm_hp @ct 100");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action CheckPopulation(Handle timer)
|
||||
{
|
||||
int TimeLeft;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user