mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-11 19:43:16 +00:00
crescendo control: only enable for coop
This commit is contained in:
parent
7ddf01ec3d
commit
9a27038e1f
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -53,9 +53,9 @@ public void Event_GamemodeChange(ConVar cvar, const char[] oldValue, const char[
|
||||||
|
|
||||||
|
|
||||||
public void OnMapStart() {
|
public void OnMapStart() {
|
||||||
if(!StrEqual(gamemode, "tankrun")) {
|
if(StrEqual(gamemode, "coop")) {
|
||||||
HookEntityOutput("func_button", "OnPressed", Event_ButtonPress);
|
HookEntityOutput("func_button", "OnPressed", Event_ButtonPress);
|
||||||
CreateTimer(0.3, Timer_GetFlows, _, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE);
|
CreateTimer(1.0, Timer_GetFlows, _, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue