mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 20:13:21 +00:00
l4d2_swarm: Remove redudant messages
This commit is contained in:
parent
1bef227e41
commit
dc9fb63838
2 changed files with 0 additions and 2 deletions
Binary file not shown.
|
@ -234,14 +234,12 @@ public int Handle_SwarmMenuToggle(Menu menu, MenuAction action, int client, int
|
|||
SwarmTarget = clickedUser;
|
||||
int clientID = GetClientOfUserId(SwarmTarget);
|
||||
ShowActivity(client, "toggled swarming player \"%N\" with radius %d", clientID, SwarmRadius);
|
||||
PrintToChat(client, "Toggled swarm on for %N (#%d). Radius: %d", clientID, SwarmTarget, SwarmRadius);
|
||||
if(timer == INVALID_HANDLE)
|
||||
timer = CreateTimer(1.0, Timer_Swarm, _, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE);
|
||||
}else{
|
||||
SwarmTarget = -1;
|
||||
SwarmRadius = hSwarmDefaultRange.IntValue;
|
||||
PrintToChat(client, "Disabled swarm toggle.", SwarmTarget, SwarmRadius);
|
||||
ReplyToCommand(client, "Deactivated swarm toggle.");
|
||||
CloseHandle(timer);
|
||||
timer = INVALID_HANDLE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue