mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 07:34:36 +00:00
Fixed Logging
This commit is contained in:
parent
4e039dd195
commit
aff3b2b776
1 changed files with 7 additions and 0 deletions
|
|
@ -844,6 +844,7 @@ function DefaultGame::voteChangeMission(%game, %admin, %missionDisplayName, %typ
|
||||||
messageAll('MsgAdminChangeMission', '\c2The Admin %3 has changed the mission to %1 (%2).', %missionDisplayName, %typeDisplayName, %admin.name );
|
messageAll('MsgAdminChangeMission', '\c2The Admin %3 has changed the mission to %1 (%2).', %missionDisplayName, %typeDisplayName, %admin.name );
|
||||||
%game.gameOver();
|
%game.gameOver();
|
||||||
loadMission( %mission, %missionType, false );
|
loadMission( %mission, %missionType, false );
|
||||||
|
adminLog(%admin, " has changed the mission to " @ %missionDisplayName @ " (" @ %typeDisplayName @ ")");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -898,6 +899,7 @@ function DefaultGame::voteTournamentMode( %game, %admin, %missionDisplayName, %t
|
||||||
if (isObject(%admin))
|
if (isObject(%admin))
|
||||||
{
|
{
|
||||||
messageAll( 'MsgAdminForce', '\c2The Admin %2 has switched the server to Tournament mode (%1).', %missionDisplayName, %admin.name );
|
messageAll( 'MsgAdminForce', '\c2The Admin %2 has switched the server to Tournament mode (%1).', %missionDisplayName, %admin.name );
|
||||||
|
adminLog(%admin, " has switched the server to Tournament mode. " @ %missionDisplayName @ " (" @ %typeDisplayName @ ")");
|
||||||
setModeTournament( %mission, %missionType );
|
setModeTournament( %mission, %missionType );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -947,6 +949,7 @@ function DefaultGame::voteChangeTimeLimit( %game, %admin, %newLimit )
|
||||||
{
|
{
|
||||||
messageAll( 'MsgAdminForce', '\c2The Admin %2 changed the mission time limit to %1 minutes.', %display, %admin.name );
|
messageAll( 'MsgAdminForce', '\c2The Admin %2 changed the mission time limit to %1 minutes.', %display, %admin.name );
|
||||||
$Host::TimeLimit = %newLimit;
|
$Host::TimeLimit = %newLimit;
|
||||||
|
adminLog(%admin, " has changed the mission time limit to " @ %display @ " minutes.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -1005,6 +1008,7 @@ function DefaultGame::voteFFAMode( %game, %admin, %client )
|
||||||
if(isObject(%admin))
|
if(isObject(%admin))
|
||||||
{
|
{
|
||||||
messageAll('MsgAdminForce', '\c2The Admin %1 has switched the server to Free For All mode.', %admin.name);
|
messageAll('MsgAdminForce', '\c2The Admin %1 has switched the server to Free For All mode.', %admin.name);
|
||||||
|
adminLog(%admin, " has switched the server to Free For All mode.");
|
||||||
setModeFFA($CurrentMission, $CurrentMissionType);
|
setModeFFA($CurrentMission, $CurrentMissionType);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -1028,6 +1032,7 @@ function DefaultGame::voteSkipMission(%game, %admin, %arg1, %arg2, %arg3, %arg4)
|
||||||
if(isObject(%admin))
|
if(isObject(%admin))
|
||||||
{
|
{
|
||||||
messageAll('MsgAdminForce', '\c2The Admin %1 has skipped to the next mission.',%admin.name );
|
messageAll('MsgAdminForce', '\c2The Admin %1 has skipped to the next mission.',%admin.name );
|
||||||
|
adminLog(%admin, " has skipped to the next mission.");
|
||||||
%game.gameOver();
|
%game.gameOver();
|
||||||
//loadMission( findNextCycleMission(), $CurrentMissionType, false );
|
//loadMission( findNextCycleMission(), $CurrentMissionType, false );
|
||||||
cycleMissions();
|
cycleMissions();
|
||||||
|
|
@ -1117,12 +1122,14 @@ function DefaultGame::voteTeamDamage(%game, %admin)
|
||||||
messageAll('MsgAdminForce', '\c2The Admin %1 has disabled team damage.', %admin.name);
|
messageAll('MsgAdminForce', '\c2The Admin %1 has disabled team damage.', %admin.name);
|
||||||
$Host::TeamDamageOn = $TeamDamage = 0;
|
$Host::TeamDamageOn = $TeamDamage = 0;
|
||||||
%setto = "disabled";
|
%setto = "disabled";
|
||||||
|
adminLog(%admin, " has disabled team damage.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
messageAll('MsgAdminForce', '\c2The Admin %1 has enabled team damage.', %admin.name);
|
messageAll('MsgAdminForce', '\c2The Admin %1 has enabled team damage.', %admin.name);
|
||||||
$Host::TeamDamageOn = $TeamDamage = 1;
|
$Host::TeamDamageOn = $TeamDamage = 1;
|
||||||
%setto = "enabled";
|
%setto = "enabled";
|
||||||
|
adminLog(%admin, " has enabled team damage.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue