Description
Allows for an admin to select or for regular players to vote for a human to be the leader for the current round. The leader gets special perks, like the ability to put defend here / follow me sprites above their head, place defend markers, toggle a rainbow beacon, custom chat, custom radio commands, and maybe more in the future.
Requirements
This plugin requires Zombie:Reloaded.
Server ConVars
sm_leader_version - Leader Version (2.9)
sm_leader_allow_votes - Determines whether players can vote for leaders. (Default: "1")
sm_leader_defend_vmt - The defend here .vmt file (Default: "materials/sg/sgdefend.vmt")
sm_leader_defend_vtf - The defend here .vtf file (Default: "materials/sg/sgdefend.vtf")
sm_leader_follow_vmt - The follow me .vmt file (Default: "materials/sg/sgfollow.vtf")
sm_leader_follow_vtf - The follow me .vtf file (Default: "materials/sg/sgfollow.vtf")
Commands
sm_leader - Access the leader menu OR Set a player to be leader (ADMFLAG_GENERIC)
sm_currentleader - Shows the current leader.
sm_voteleader <player> - Votes for the specified player to be leader. Required votes is current player count / 10.
sm_removeleader (ADMFLAG_GENERIC) - Removes the current leader.
Planned Features
Config
More extensive API
More rainbow stuff
API
Spoiler
PHP Code:
#if defined _leader_included_
#endinput
#endif
#define _leader_included_
/**
* Returns current leader
*
* @return int Client index of the leader (-1 = null)
*/
native Leader_CurrentLeader();
/**
* Sets the leader
*
* @param client Client index to be set as leader
*/
native Leader_SetLeader(client);
Screenshots
Spoiler
Changelog
2.9 - Plugin Release
If you find any bugs, feel free to give feedback so I can fix the plugin.