View Single Post
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 08-18-2013 , 02:34   Re: [TF2] TF2Jail (Jailbreak)
Reply With Quote #2

[Official Map List]

GameBanana List of Maps shall be Here.

[Developer]

I put together some natives I thought would be useful to developers who want to create their own plugins. Feel free to use them in your own plugins if you have anything you need. I will be pasting the list of sub module plugins in this thread.

List of Natives can be found Here.

Code:
// NOTE: Requires you check if the player is in-game, alive, etc.

//Natives
/**
 * Warden Check if exists.
 *
 * @return		True on success, false on failure.
 **/
native TF2Jail_WardenActive();

/**
 * Returns if client is Warden.
 *
 * @param client		Client is Warden.
 * @return		True on success, false on failure.
 **/
native TF2Jail_IsWarden(client);

/**
 * Sets a client to Warden.
 *
 * @param client		Client to become Warden.
 * @noreturn
 **/
native TF2Jail_WardenSet(client);

/**
 * Remove the Warden if there is one.
 *
 * @param client		Client to remove Warden.
 * @noreturn
 **/
native TF2Jail_WardenUnset(client);

/**
 * Returns if the client is a Freeday.
 *
 * @param client		Client is Freeday.
 * @return		True on success, false on failure.
 **/
native TF2Jail_IsFreeday(client);

/**
 * Sets a client to Freeday.
 *
 * @param client		Client to give Freeday.
 * @noreturn
 **/
native TF2Jail_GiveFreeday(client);

/**
 * Returns if the client is a Rebel.
 *
 * @param client		Client is Rebel.
 * @return		True on success, false on failure.
 **/
native TF2Jail_IsRebel(client);

/**
 * Marks a client as a Rebel.
 *
 * @param client		Client to mark Rebel.
 * @noreturn
 **/
native TF2Jail_MarkRebel(client);

/**
 * Returns if the cilent is a Freekiller.
 *
 * @param client		Client is Freekiller.
 * @return		True on success, false on failure.
 **/
native TF2Jail_IsFreekiller(client);

/**
 * Marks the client as a Freekiller.
 *
 * @param client		Client to mark Freekiller.
 * @noreturn
 **/
native TF2Jail_MarkFreekiller(client);

/**
 * Strip clients to melee while using TF2Jail Rules. (Keep Weapons, ammo = 0)
 *
 * @param client		Client to Strip to melee.
 * @noreturn
 **/
native TF2Jail_StripToMelee(client);

/**
 * Strip client to melee entirely using TF2Jail rules.
 *
 * @param client		Client to Strip entirely.
 * @noreturn
 **/
native TF2Jail_StripAllWeapons(client);

/**
 * Lock warden from being allowed.
 *
 * @noreturn
 **/
native TF2Jail_LockWarden();

/**
 * Unlock warden from being allowed.
 *
 * @noreturn
 **/
native TF2Jail_UnlockWarden();

/**
 * Log using TF2Jail's logging system/rules.
 *
 * @param log			String or text to log.
 * @param ...			Formatting parameters.
 * @noreturn
 **/
native TF2Jail_Log(const String:log[], any:...);

/**
 * Returns if the current round is a Last Request day.
 *
 * @return		True on success, false on failure.
 **/
native TF2Jail_IsLRRound();

/**
 * Returns if the current round is a Last Request day.
 *
 * @param Status		Cell to execute. (OPEN, CLOSE, LOCK, UNLOCK) (If doors are locked, they must be unlocked to open)
 * @return		True on success, false on incompatible map.
 **/
native TF2Jail_ManageCells(eDoorsMode:Status);

//Forwards
/**
 * Called when the Warden has been assigned/created via the plugin or natives.
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnWardenCreated(client);

#pragma deprecated Use TF2Jail_OnWardenCreated(client) instead.
forward Warden_OnWardenCreated(client);

/**
 * Called when the Warden has been removed/retired via the plugin or natives.
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnWardenRemoved(client);

#pragma deprecated Use TF2Jail_OnWardenRemoved(client) instead.
forward Warden_OnWardenRemoved(client);

/**
 * Called when a last request is about to be executed.
 *
 * @param Handler		String or text called by the Handler in the Last Request configuration file. (Use this to differentiate your custom LRs)
 * @noreturn
 **/
 forward TF2Jail_OnLastRequestExecute(const String:Handler[]);
 
 /**
 * Called when a client is given Freeday. (post)
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreedayGiven(client);

 /**
 * Called when a client has been removed from Freeday. (post)
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreedayRemoved(client);

 /**
 * Called when a client has marked as a Freekiller. (post)
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreekillerGiven(client);

 /**
 * Called when a client has been cleared from Freekiller. (post)
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreekillerRemoved(client);

 /**
 * Called when a client has marked as a Rebel. (post)
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnRebelGiven(client);

 /**
 * Called when a client has been cleared from Rebel. (post)
 *
 * @param client		Client Index
 * @noreturn
 **/
forward TF2Jail_OnRebelRemoved(client);
[Modules] - Modules are plugins that run separately from TF2Jail but add extra features that aren't built into TF2Jail itself.
============================================= ===========
[Prisoner Models - 1.0.0]

Description: Allows Prisoners/Red team to be able to equip a model which allows them to look like Prisoners. I built the plugin and Nineteen built the models. (Special thanks to him)

SMX: -- Download --
Source: -- Download --

Models:
http://nineteeneleven.info/downloads...oner_models.7z
============================================= ===========
[Team Bans 1.0.5]

Description: Allows administrators to ban players red the red or blue team. (Development)

SMX: -- Download --
Source: -- Download --
Translation: -- Download --
============================================= ===========
[Warden Votes - 1.0.2] [Commissioned by Wing of IdleServer.com]

Description: Allows server operators to set Wardens to be voted for instead of clients becoming warden via commands.

SMX: -- Download --
Source: -- Download --
============================================= ===========

Last edited by Drixevel; 10-14-2014 at 21:04.
Drixevel is offline