View Single Post
Author Message
ecca
Sexy Santa
Join Date: Jan 2011
Old 05-27-2011 , 20:12   [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #1

Jailbreak Warden
- Written by ecca
- v3.0.0, last updated : 18th may 2013

This plugins allows you and your players to take control over the prison for a round. This is a very good plugin for those servers having problem which counter-Terrorist should decide the rules for the round.

Commands

sm_w / sm_warden - Allows the player taking the charge over prisoners
sm_uw / sm_unwarden - Allows the player to retire from the position
sm_rw - Allows admins to remove the current warden if available.

Cvars

sm_warden_better_notifications: 0 - disabled , 1 - will use hint and center say for better notifications.


Features

Multilingual support
Admin commands
Forwards
Natives

Changelog

Quote:
v3.0.0
Works fine on both games now (CSS/CSGO)
New natives
New forwards
Changed plugin version 1 step ahead to make it easier

v2.0.0
Colors are now working on both CSS and CSGO. Please be aware that the colors are different so don't update if you have a GO server.

v1.8.0
Added cVar sm_warden_better_notifications
Added 2 natives for other plugin uses.
Added the spanish translations to the file.
Added the old commands called commander commands to use aswell..

v1.7.0
Added Plugin is now using morecolors for a lot of color modifications.
Removed cstrike.inc, not needed anymore.
Added Translations are now available again!
Added Added some documention inside the source for those who wants to edit the plugin abit.
Fixed ChatTag should now be fixed , admins can now use admin commands without problem.

v1.6.0
Fixed Rewrote whole plugin
Fixed All errors
Fixed Warden tag
Removed Translations phrases

v1.5.0
Added Warden should now have a tag before his name in chat.
Fixed Some errors during compile.

v1.4.0
Edited Plugin is renamed to JailBreak Warden from now on.
Fixed It should now print twice who became warden.
Edited The commands for the plugin

v1.3.0
Added Administrators should now be available to remove a warden.

v1.2.0
Fixed Warden should now be darker blue then the other players.
Fixed Some events being wrong.

v1.1.0
Fixed Players couldn't leave their warden position.

v1.0.0
Initial release (28/05/11)
Natives
PHP Code:
/********************************************************* 
 * Checks if any warden exist 
 * 
 * @true on match , false if not 
 *********************************************************/ 
native warden_exist(); 
 
/********************************************************* 
 * returns if client is warden 
 * 
 * @param client        The client to run the check on 
 * @true on match, false if not         
 *********************************************************/ 
native warden_iswarden(client); 
 
/********************************************************* 
 * Set a client as warden 
 * 
 * @param client        The client to set as warden 
 * @NoReturn 
 *********************************************************/ 
native warden_set(client); 
 
/********************************************************* 
 * Removes the current warden if he exists 
 * 
 * @param client        The warden client to remove 
 * @NoReturn     
 *********************************************************/ 
native warden_remove(client); 
Forwards
Code:
forward warden_OnWardenCreated(client);
        - Called when a warden has been created
 
forward warden_OnWardenRemoved(client);
        - Called after a warden has been removed
Other
Thanks to sommy who came up with the ide on eventscripts.
Download

Download here: Github

Last edited by ecca; 03-24-2015 at 04:40. Reason: fixed new download link
ecca is offline