mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Votekick notify team specific
This commit is contained in:
parent
e0951cd66e
commit
3555722a81
1 changed files with 22 additions and 3 deletions
|
|
@ -23,8 +23,27 @@ function VoteSound( %game, %typename, %arg1, %arg2, %VoteSoundRandom )
|
||||||
messageAll('', '\c1Vote in Progress: \c0To change the time limit to %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1 );
|
messageAll('', '\c1Vote in Progress: \c0To change the time limit to %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1 );
|
||||||
|
|
||||||
case "VoteKickPlayer":
|
case "VoteKickPlayer":
|
||||||
messageAll('', '\c1Vote in Progress: \c0To kick player %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1.name );
|
if(%arg1.team != 0 && Game.numTeams > 1) //Not observer
|
||||||
|
{
|
||||||
|
for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
|
||||||
|
{
|
||||||
|
%cl = ClientGroup.getObject(%idx);
|
||||||
|
|
||||||
|
if (%cl.isAdmin == true)
|
||||||
|
{
|
||||||
|
if(%cl.team !$= %arg1.team) //Not on admins team
|
||||||
|
{
|
||||||
|
messageClient(%cl, '', '\c1Vote in Progress: \c0To kick %1 on the other team.~wgui/objective_notification.wav', %arg1.name);
|
||||||
|
}
|
||||||
|
else //Is on admins team
|
||||||
|
messageClient(%cl, '', '\c1Vote in Progress: \c0To kick player %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1.name );
|
||||||
|
}
|
||||||
|
else if(%cl.team $= %arg1.team) //Everyone else
|
||||||
|
messageClient(%cl, '', '\c1Vote in Progress: \c0To kick player %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1.name );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else //Is observer
|
||||||
|
messageAll('', '\c1Vote in Progress: \c0To kick player %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1.name );
|
||||||
case "VoteTournamentMode":
|
case "VoteTournamentMode":
|
||||||
messageAll('', '\c1Vote in Progress: \c0To change the mission to Tournament Mode (%1). Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1, %arg2 );
|
messageAll('', '\c1Vote in Progress: \c0To change the mission to Tournament Mode (%1). Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1, %arg2 );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue