mapchooser_extended: Refactored to new syntax

Added better cooldown system
Added MinPlayers/MaxPlayers system
This commit is contained in:
BotoX
2016-08-11 17:48:20 +02:00
parent f3b8ce8b89
commit 7baa42c3f3
7 changed files with 1029 additions and 1008 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ stock CReplyToCommand(client, const String:message[], any:...) {
decl String:buffer[MAX_BUFFER_LENGTH];
SetGlobalTransTarget(client);
VFormat(buffer, sizeof(buffer), message, 3);
if(GetCmdReplySource() == SM_REPLY_TO_CONSOLE) {
if(!client || GetCmdReplySource() == SM_REPLY_TO_CONSOLE) {
CRemoveTags(buffer, sizeof(buffer));
PrintToConsole(client, "%s", buffer);
} else {
+2 -2
View File
@@ -457,8 +457,8 @@ stock NativeVotes_FixResults(num_clients,
num_items,
const item_indexes[],
const item_votes[],
client_info[][2],
item_info[][2])
client_info[][],
item_info[][])
{
for (new i = 0; i < num_clients; ++i)
{