sourcemod-plugins/scripting/include/feedthetrolls.inc
2024-03-06 17:59:55 -06:00

36 lines
No EOL
942 B
SourcePawn

#if defined _ftt_included_
#endinput
#endif
#define _ftt_included_
enum TrollModifier {
TrollMod_Invalid = 0,
TrollMod_Instant = 1 << 0,
TrollMod_Constant = 1 << 1,
TrollMod_PlayerOnly = 1 << 2, // Does the troll only work on players, not bots? If set, troll only applied on real user. If not, troll applied to both bot and idler
}
native void ApplyTroll(int victim, const char[] name, TrollModifier modifier = TrollMod_Invalid, int flags, int activator, bool silent = false);
forward void OnTrollApplied(int victim, const char[] trollName, int flags = 0, int activator = 0);
forward void OnTrollMarked(int activator, int victim);
public SharedPlugin __pl_myfile =
{
name = "feedthetrolls",
file = "feedthetrolls.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_myfile_SetNTVOptional()
{
MarkNativeAsOptional("ApplyTroll");
}
#endif