Fix ftt bug

This commit is contained in:
Jackz 2023-05-16 20:55:42 -05:00
parent 78f44b0733
commit e23addac7a
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -496,7 +496,10 @@ bool ApplyAction(int targetUserId, const char[] action, const char[] key, const
strcopy(newKey, sizeof(newKey), key);
ReplaceString(newKey, sizeof(newKey), "_", " ", true);
int flags = StringToInt(value);
ApplyTroll(target, newKey, TrollMod_Invalid, flags, 0, action[4] == 's');
// ApplyTroll(int victim, const char[] name, TrollModifier modifier = TrollMod_Invalid, int flags, int activator, bool silent = false);
ApplyTroll(target, newKey, TrollMod_Invalid, flags, 0, true);
#else
PrintToServer("[PlayerNotes] Warn: Action \"%s\" for %N has missing plugin: Feed The Trolls", action, target);
return false;