adding minute support from unloze playtime into discord message, entwatch, knifeban and spraymanager

This commit is contained in:
jenz
2026-01-27 18:55:28 +01:00
parent 7d940c6509
commit 41b775f611
5 changed files with 284 additions and 77 deletions
@@ -0,0 +1,33 @@
#if defined entWatch_restrictions_included
#endinput
#endif
#define entWatch_restrictions_included
public SharedPlugin __pl_entWatch_restrictions =
{
name = "entWatch-restrictions",
file = "entWatch-restrictions.smx",
#if defined REQUIRE_PLUGIN
required = 1
#else
required = 0
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_entWatch_restrictions_SetNTVOptional()
{
MarkNativeAsOptional("EW_ClientRestrict");
MarkNativeAsOptional("EW_ClientUnrestrict");
MarkNativeAsOptional("EW_ClientRestricted");
}
#endif
native bool EW_ClientRestrict(int client, int target, int length);
native bool EW_ClientUnrestrict(int client, int target);
native bool EW_ClientRestricted(int client);
forward void EW_OnClientRestricted(int client, int target, int hours, int minutes);
forward void EW_OnClientUnrestricted(int client, int target);