plugins/nextmap.sp
changeset 2083 3dcbef056e44
parent 2077 3c6fe374e8b7
child 2194 e4ab469a0003
     1.1 --- a/plugins/nextmap.sp	Sun May 25 20:50:11 2008 +0000
     1.2 +++ b/plugins/nextmap.sp	Mon May 26 01:09:10 2008 +0000
     1.3 @@ -61,10 +61,7 @@
     1.4  	RegConsoleCmd("say", Command_Say);
     1.5  	RegConsoleCmd("say_team", Command_Say);
     1.6  	
     1.7 -	if (GetCommandFlags("nextmap") == INVALID_FCVAR_FLAGS)
     1.8 -	{
     1.9 -		RegServerCmd("nextmap", Command_Nextmap);
    1.10 -	}
    1.11 +	RegConsoleCmd("nextmap", Command_Nextmap);
    1.12  
    1.13  	RegAdminCmd("sm_setnextmap", Command_SetNextmap, ADMFLAG_CHANGEMAP, "sm_setnextmap <map>");
    1.14  	RegConsoleCmd("listmaps", Command_List);
    1.15 @@ -113,7 +110,7 @@
    1.16  		decl String:map[32];
    1.17  		GetNextMap(map, sizeof(map));
    1.18  		
    1.19 -		PrintToChat(client, "%t", "Next Map", map);
    1.20 +		PrintToChat(client, "[SM] %t", "Next Map", map);
    1.21  	}
    1.22  	
    1.23  	return Plugin_Continue;	
    1.24 @@ -159,13 +156,13 @@
    1.25  	return Plugin_Handled;
    1.26  }
    1.27   
    1.28 -public Action:Command_Nextmap(args)
    1.29 +public Action:Command_Nextmap(client, args)
    1.30  {
    1.31  	decl String:map[64];
    1.32  	
    1.33  	GetNextMap(map, sizeof(map));
    1.34  	
    1.35 -	ReplyToCommand(0, "%t", "Next Map", map);
    1.36 +	ReplyToCommand(client, "[SM] %t", "Next Map", map);
    1.37  	
    1.38  	return Plugin_Handled;
    1.39  }