Changed some instances of LogMessage to LogAction. (bug 4649, r=fyren).

This commit is contained in:
Nicholas Hastings 2011-03-20 19:37:25 -04:00
parent 0162d18343
commit 4b5fa26cd6
2 changed files with 7 additions and 7 deletions

View File

@ -281,7 +281,7 @@ public Action:Command_SetNextmap(client, args)
} }
ShowActivity(client, "%t", "Changed Next Map", map); ShowActivity(client, "%t", "Changed Next Map", map);
LogMessage("\"%L\" changed nextmap to \"%s\"", client, map); LogAction(client, -1, "\"%L\" changed nextmap to \"%s\"", client, map);
SetNextMap(map); SetNextMap(map);
g_MapVoteCompleted = true; g_MapVoteCompleted = true;
@ -644,7 +644,7 @@ InitiateVote(MapChange:when, Handle:inputlist=INVALID_HANDLE)
SetMenuExitButton(g_VoteMenu, false); SetMenuExitButton(g_VoteMenu, false);
VoteMenuToAll(g_VoteMenu, voteDuration); VoteMenuToAll(g_VoteMenu, voteDuration);
LogMessage("Voting for next map has started."); LogAction(-1, -1, "Voting for next map has started.");
PrintToChatAll("[SM] %t", "Nextmap Voting Started"); PrintToChatAll("[SM] %t", "Nextmap Voting Started");
} }
@ -705,7 +705,7 @@ public Handler_MapVoteFinished(Handle:menu,
} }
PrintToChatAll("[SM] %t", "Current Map Extended", RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes); PrintToChatAll("[SM] %t", "Current Map Extended", RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes);
LogMessage("Voting for next map has finished. The current map has been extended."); LogAction(-1, -1, "Voting for next map has finished. The current map has been extended.");
// We extended, so we'll have to vote again. // We extended, so we'll have to vote again.
g_HasVoteStarted = false; g_HasVoteStarted = false;
@ -716,7 +716,7 @@ public Handler_MapVoteFinished(Handle:menu,
else if (strcmp(map, VOTE_DONTCHANGE, false) == 0) else if (strcmp(map, VOTE_DONTCHANGE, false) == 0)
{ {
PrintToChatAll("[SM] %t", "Current Map Stays", RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes); PrintToChatAll("[SM] %t", "Current Map Stays", RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes);
LogMessage("Voting for next map has finished. 'No Change' was the winner"); LogAction(-1, -1, "Voting for next map has finished. 'No Change' was the winner");
g_HasVoteStarted = false; g_HasVoteStarted = false;
CreateNextVote(); CreateNextVote();
@ -745,7 +745,7 @@ public Handler_MapVoteFinished(Handle:menu,
g_MapVoteCompleted = true; g_MapVoteCompleted = true;
PrintToChatAll("[SM] %t", "Nextmap Voting Finished", map, RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes); PrintToChatAll("[SM] %t", "Nextmap Voting Finished", map, RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes);
LogMessage("Voting for next map has finished. Nextmap: %s.", map); LogAction(-1, -1, "Voting for next map has finished. Nextmap: %s.", map);
} }
} }
@ -1048,7 +1048,7 @@ public Native_InitiateVote(Handle:plugin, numParams)
new MapChange:when = MapChange:GetNativeCell(1); new MapChange:when = MapChange:GetNativeCell(1);
new Handle:inputarray = Handle:GetNativeCell(2); new Handle:inputarray = Handle:GetNativeCell(2);
LogMessage("Starting map vote because outside request"); LogAction(-1, -1, "Starting map vote because outside request");
InitiateVote(when, inputarray); InitiateVote(when, inputarray);
} }

View File

@ -104,7 +104,7 @@ public Action:Timer_RandomizeNextmap(Handle:timer)
RemoveFromArray(g_OldMapList, 0); RemoveFromArray(g_OldMapList, 0);
} }
LogMessage("RandomCycle has chosen %s for the nextmap.", map); LogAction(-1, -1, "RandomCycle has chosen %s for the nextmap.", map);
return Plugin_Stop; return Plugin_Stop;
} }