diff --git a/includes/HappyHour.inc b/includes/HappyHour.inc new file mode 100644 index 00000000..729fc3db --- /dev/null +++ b/includes/HappyHour.inc @@ -0,0 +1,33 @@ +#if defined _HappyHour_included + #endinput +#endif + +#define _HappyHour_included + +/** + * Check if it is Happy Hour or not + * + * + * @return True if yes, false if no. + */ +native bool HH_IsItHappyHour(); + + +public SharedPlugin __pl_HappyHour = +{ + name = "HappyHour", + file = "HappyHour.smx", + + #if defined REQUIRE_PLUGIN + required = 1 + #else + required = 0 + #endif +}; + +#if !defined REQUIRE_PLUGIN + public void __pl_HappyHour_SetNTVOptional() + { + MarkNativeAsOptional("HH_IsItHappyHour"); + } +#endif diff --git a/includes/mapchooser_extended.inc b/includes/mapchooser_extended.inc new file mode 120000 index 00000000..ccd12db6 --- /dev/null +++ b/includes/mapchooser_extended.inc @@ -0,0 +1 @@ +../mapchooser_extended/scripting/include/mapchooser_extended.inc \ No newline at end of file diff --git a/includes/zriot.inc b/includes/zriot.inc new file mode 100644 index 00000000..73928f2b --- /dev/null +++ b/includes/zriot.inc @@ -0,0 +1,58 @@ +/** + * ==================== + * Zombie Riot + * File: zriot.inc + * Author: Greyscale + * ==================== + */ + +/** + * Used to check if a player is a zombie. + * @param client Client index. + * @return True if the player is a zombie, and false if human. + */ +native bool:ZRiot_IsClientZombie(client); + +/** + * Retrieves the team index of the zombies + * @note Remember these are based off cvars, 0 will be returned if called before the cvar is set + */ +native ZRiot_GetZombieTeam(); + +/** + * Retrieves the team index of the humans + * @note Remember these are based off cvars, 0 will be returned if called before the cvar is set + */ +native ZRiot_GetHumanTeam(); + +/** + * Turns a human into a zombie + * @param client Client index. + */ +native ZRiot_Zombie(client); + +/** + * Called when a player turns into a zombie. This is not called at round end. + * @param client Client index. + */ +forward ZRiot_OnClientZombie(client); + +/** + * Turns a zombie into a human (will not work for bots) + * @param client Client index. + */ +native ZRiot_Human(client); + +/** + * Called when a player turns into a human. This is not called at round end. + * @param client Client index. + */ +forward ZRiot_OnClientHuman(client); + +/** + * Called when the HUD is being updated on a client (not called for bots) + * @param client Client index. + * @param hinttext The text string being sent to the usermsg "HintText" + * @note If hinttext is modified the new value will be sent to the client + */ +forward ZRiot_OnClientHUDUpdate(client, String:hinttext[]); \ No newline at end of file