Warning: This is a Alpha version still in construction and only have the basic for a commander plugin.
Description:
This plugin was throght to prevent door hugging and incentivate more players defending in zombie escape. Probably the best form is creating a commander adapted to the zombiemod that can tell when defend and where to the players, with special chat messages, markers, sounds and more. The commander can be selected in the round start and cant be a mother zombie.
You could test the plugin here:
Requeriments:
Zombiereloaded
VoiceannounceEX (VoiceHook) (optional)
Natives and forwards:
PHP Code:
#if defined _zrcommander_included
#endinput
#endif
#define _zrcommander_included
/**
* Checks if any commander exist
*
* @true on match , false if not
*/
native bool zrc_exist();
/**
* returns if client is commander
*
* @param client The client to run the check on
* @true on match, false if not
*********************************************************/
native bool zrc_is(client);
/**
* Set a client as commander
*
* @param client The client to set as commander
* @NoReturn
*/
native int zrc_set(client);
/**
* Removes the current commander if he exists
*
* @param client The commander client to remove
* @NoReturn
*/
native int zrc_remove(client);
/**
* Called when a commander has been created.
*
* @param client Client that has been commander.
*/
forward void zrc_OnCommanderCreated(client);
/**
* Called when a player is about to be commander.
*
* @param client Client index.
* @return Plugin_Changed to apply new values, Plugin_Continue to allow as is and >= Plugin_Handled to block
*/
forward Action zrc_OnCommanderCreate(client);
/**
* Called when a commander left the commander position.
*
* @param client Client index.
*/
forward void zrc_OnCommanderLeft(client);
Todo list:
-Modular plugin
-Commander cant be a mother zombie
-Nominate a commander in the round start
-Create a top with the best commanders
-Can create markers and gets an icon above his head
-Markers will be:
Code:
Defend
Attack
Fallback
-Players which follow his orders get awarded by points
-The commanders get points based on how much players survived
-Add a feature to the plugin for make that all the humans
look at a point that the commander determine for a better communication of where they should defend.
Donations (optional):
If you apreciate my work, you can donate me via
paypal or with a
trade offer
Download:
Main repository
Direct download
Code changes
Suggestions are extremely appreciated
__________________