mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 20:23:21 +00:00
Changes
This commit is contained in:
parent
46444c8693
commit
c14b20b07a
4 changed files with 26 additions and 12 deletions
|
@ -357,8 +357,13 @@ void ApplyTroll(int victim, const char[] name, int activator, trollModifier modi
|
|||
return;
|
||||
}
|
||||
|
||||
if(flags > -1 && Trolls[trollIndex].timerInterval > 0.0) {
|
||||
CreateTimer(Trolls[trollIndex].timerInterval, Trolls[trollIndex].timerFunction, victim, TIMER_REPEAT);
|
||||
// Clear troll specific timer:
|
||||
if(Trolls[trollIndex].timerInterval > 0.0) {
|
||||
if(flags > -1)
|
||||
Trolls[trollIndex].timerHandles[victim] = CreateTimer(Trolls[trollIndex].timerInterval, Trolls[trollIndex].timerFunction, victim, TIMER_REPEAT);
|
||||
else if(Trolls[trollIndex].timerHandles[victim] != null) {
|
||||
delete Trolls[trollIndex].timerHandles[victim];
|
||||
}
|
||||
}
|
||||
|
||||
if(!silent && SilentMenuSelected[activator]) silent = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue