Changed some instances of LogMessage to LogAction. (bug 4649, r=fyren).
authorNicholas Hastings <skamonkey@gmail.com>
Sun Mar 20 19:37:25 2011 -0400 (2011-03-20)
changeset 3217b50010ccb6d0
parent 3216 873c77165fc7
child 3218 f95f4ef9519f
Changed some instances of LogMessage to LogAction. (bug 4649, r=fyren).
plugins/mapchooser.sp
plugins/randomcycle.sp
     1.1 --- a/plugins/mapchooser.sp	Sun Mar 13 14:03:33 2011 -0400
     1.2 +++ b/plugins/mapchooser.sp	Sun Mar 20 19:37:25 2011 -0400
     1.3 @@ -281,7 +281,7 @@
     1.4  	}
     1.5  
     1.6  	ShowActivity(client, "%t", "Changed Next Map", map);
     1.7 -	LogMessage("\"%L\" changed nextmap to \"%s\"", client, map);
     1.8 +	LogAction(client, -1, "\"%L\" changed nextmap to \"%s\"", client, map);
     1.9  
    1.10  	SetNextMap(map);
    1.11  	g_MapVoteCompleted = true;
    1.12 @@ -644,7 +644,7 @@
    1.13  	SetMenuExitButton(g_VoteMenu, false);
    1.14  	VoteMenuToAll(g_VoteMenu, voteDuration);
    1.15  
    1.16 -	LogMessage("Voting for next map has started.");
    1.17 +	LogAction(-1, -1, "Voting for next map has started.");
    1.18  	PrintToChatAll("[SM] %t", "Nextmap Voting Started");
    1.19  }
    1.20  
    1.21 @@ -705,7 +705,7 @@
    1.22  		}
    1.23  
    1.24  		PrintToChatAll("[SM] %t", "Current Map Extended", RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes);
    1.25 -		LogMessage("Voting for next map has finished. The current map has been extended.");
    1.26 +		LogAction(-1, -1, "Voting for next map has finished. The current map has been extended.");
    1.27  		
    1.28  		// We extended, so we'll have to vote again.
    1.29  		g_HasVoteStarted = false;
    1.30 @@ -716,7 +716,7 @@
    1.31  	else if (strcmp(map, VOTE_DONTCHANGE, false) == 0)
    1.32  	{
    1.33  		PrintToChatAll("[SM] %t", "Current Map Stays", RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes);
    1.34 -		LogMessage("Voting for next map has finished. 'No Change' was the winner");
    1.35 +		LogAction(-1, -1, "Voting for next map has finished. 'No Change' was the winner");
    1.36  		
    1.37  		g_HasVoteStarted = false;
    1.38  		CreateNextVote();
    1.39 @@ -745,7 +745,7 @@
    1.40  		g_MapVoteCompleted = true;
    1.41  		
    1.42  		PrintToChatAll("[SM] %t", "Nextmap Voting Finished", map, RoundToFloor(float(item_info[0][VOTEINFO_ITEM_VOTES])/float(num_votes)*100), num_votes);
    1.43 -		LogMessage("Voting for next map has finished. Nextmap: %s.", map);
    1.44 +		LogAction(-1, -1, "Voting for next map has finished. Nextmap: %s.", map);
    1.45  	}	
    1.46  }
    1.47  
    1.48 @@ -1048,7 +1048,7 @@
    1.49  	new MapChange:when = MapChange:GetNativeCell(1);
    1.50  	new Handle:inputarray = Handle:GetNativeCell(2);
    1.51  	
    1.52 -	LogMessage("Starting map vote because outside request");
    1.53 +	LogAction(-1, -1, "Starting map vote because outside request");
    1.54  	InitiateVote(when, inputarray);
    1.55  }
    1.56  
     2.1 --- a/plugins/randomcycle.sp	Sun Mar 13 14:03:33 2011 -0400
     2.2 +++ b/plugins/randomcycle.sp	Sun Mar 20 19:37:25 2011 -0400
     2.3 @@ -104,7 +104,7 @@
     2.4  		RemoveFromArray(g_OldMapList, 0);
     2.5  	}
     2.6  
     2.7 -	LogMessage("RandomCycle has chosen %s for the nextmap.", map);	
     2.8 +	LogAction(-1, -1, "RandomCycle has chosen %s for the nextmap.", map);	
     2.9  
    2.10  	return Plugin_Stop;
    2.11  }
    2.12 \ No newline at end of file