Thread: [ZR] Leader
View Single Post
Author Message
AntiTeal
Junior Member
Join Date: Sep 2015
Old 11-07-2017 , 03:11   [ZR] Leader
Reply With Quote #1

[ZR] Leader

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


Screenshots
Spoiler


Changelog
  • 2.9 - Plugin Release

If you find any bugs, feel free to give feedback so I can fix the plugin.
Attached Files
File Type: sp Get Plugin or Get Source (leader2.sp - 972 views - 23.2 KB)
File Type: zip leader.zip (177.6 KB, 888 views)
File Type: smx leader2.smx (18.7 KB, 724 views)

Last edited by AntiTeal; 11-07-2017 at 03:13.
AntiTeal is offline