public Plugin myinfo = {
name = "Random warden",
author = "shanapu",
description = "Choose a random player as warden on roundstart",
version = "1.0",
url = "https://github.com/shanapu"
};
public void OnPluginStart()
{
HookEvent("round_start", Event_RoundStart);
}
public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
if (warden_exist())
return;
int client = GetRandomPlayer(CS_TEAM_CT);
if (client < 1)
return;
warden_set(client);
}
int GetRandomPlayer(int team)
{
int[] clients = new int[MaxClients];
int clientCount;
for (int i = 1; i <= MaxClients; i++) if (IsClientInGame(i))
{
if ((GetClientTeam(i) == team) && IsPlayerAlive(i))
{
clients[clientCount++] = i;
}
}
You can use it as addition with eccas (or zipcores edited) warden or even MyJBs warden (which doesn't support css).
Just use 'Overriding Command Access' to forbit using !w/!warden.
PS: when using ESK0s warden you have to edit the include & natives.
edit: PPS: just seen, you want select new warden when !uw. this is not part of this module, yet. IIRC eccas warden don't have a forward on warden remove...
Hello mate when i try to download it says failed to compile?
Any working Lazers? all it really needs to do is change the wardens flashlight to a lazer beem
Your plugin failed to compile! Read the errors below: