sm-plugins/_entWatch4/scripting/include/entWatch_core.inc

53 lines
1.2 KiB
PHP
Raw Normal View History

#if defined entWatch_core_included
#endinput
#endif
#define entWatch_core_included
2019-03-28 15:34:18 +01:00
/* REGISTERS */
#define REGISTER_WEAPON 1
#define REGISTER_BUTTON 2
#define REGISTER_TRIGGER 3
/* MODES */
#define MODE_COOLDOWN 1
#define MODE_MAXUSES 2
#define MODE_COOLDOWNMAXUSES 3
#define MODE_COOLDOWNCHARGES 4
/* CLASSES */
#include <basic>
#include "../classes/CConfig.inc"
#include "../classes/CItem.inc"
public SharedPlugin __pl_entWatch_core =
{
name = "entWatch-core",
file = "entWatch-core.smx",
2018-09-30 12:53:07 +02:00
#if defined REQUIRE_PLUGIN
required = 1
#else
required = 0
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_entWatch_core_SetNTVOptional()
{
MarkNativeAsOptional("EW_GetItemCount");
}
#endif
native int EW_GetItemCount();
native CItem EW_GetItemData(int index);
forward void EW_OnClientItemDrop(int client, int index);
forward void EW_OnClientItemDeath(int client, int index);
forward void EW_OnClientItemPickup(int client, int index);
forward void EW_OnClientItemActivate(int client, int index);
forward void EW_OnClientItemDisconnect(int client, int index);
forward Action EW_OnClientItemCanPickup(int client, int index);
forward Action EW_OnClientItemCanActivate(int client, int index);