Well here`s a little plugin i think it will useful for some of you 
![[Image: nextmap.png]](http://img40.imageshack.us/img40/5197/nextmap.png)
![[Image: nextmapwait.png]](http://img217.imageshack.us/img217/6937/nextmapwait.png)
Don't forget to add following lines in sv_config:
Command:
Version 1.01

Screens (Click to View)
nextmap (Click to View)
![[Image: nextmap.png]](http://img40.imageshack.us/img40/5197/nextmap.png)
spam not allowed (Click to View)
![[Image: nextmapwait.png]](http://img217.imageshack.us/img217/6937/nextmapwait.png)
Don't forget to add following lines in sv_config:
Code:
[NextMap]
DSR1=dsr1
// will be ur dsr file name located in players or admin folder
DSR2=drs2
// if you have multiple in rotation or leave black
DSR3=dsr3
Time=60
//in secs
Rotation=0
//nextmap will display on rotation 0=disable, 1=enableCode:
!nextmap //available if Rotation is disabled.Version 1.01
Changelog (Click to View)
Code:
-added option to allow multiple dsr
-added rotation optionSource (Click to View)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Addon;
using System.Collections;
namespace nextmap
{
public class nextmap : CPlugin
{
ArrayList user = new ArrayList();
public string dsr;
public override void OnServerLoad()
{
ServerPrint("NextMap Loaded Author:YAMRAJ");
dsr = GetServerCFG("NextMap", "DSR Name", "");
}
public override ChatType OnSay(string Message, ServerClient Client)
{
if (Message.StartsWith("!nextmap"))
{
if (user.Contains(Client.XUID))
{
TellClient(Client.ClientNum, "^2PM: ^1You used this command recently wait for the next map.", true);
}
else
{
user.Add(Client.XUID);
if (GetDvar("nextmap") == "mp_alpha " + dsr)
{
ServerSay("^3NextMap(^1Lockdown^3)", false);
}
else if (GetDvar("nextmap") == "mp_bravo " + dsr)
{
ServerSay("^3NextMap(^1Mission^3)", false);
}
else if (GetDvar("nextmap") == "mp_dome " + dsr)
{
ServerSay("^3NextMap(^1Dome^3)", false);
}
else if (GetDvar("nextmap") == "mp_bootleg " + dsr)
{
ServerSay("^3NextMap(^1Bootleg^3)", false);
}
else if (GetDvar("nextmap") == "mp_radar " + dsr)
{
ServerSay("^3NextMap(^1Outpost^3)", false);
}
else if (GetDvar("nextmap") == "mp_plaza2 " + dsr)
{
ServerSay("^3NextMap(^1Arcaden^3)", false);
}
else if (GetDvar("nextmap") == "mp_mogadishu " + dsr)
{
ServerSay("^3NextMap(^1Bakaraa^3)", false);
}
else if (GetDvar("nextmap") == "mp_lambeth " + dsr)
{
ServerSay("^3NextMap(^1Fallen^3)", false);
}
else if (GetDvar("nextmap") == "mp_paris " + dsr)
{
ServerSay("^3NextMap(^1Resistance^3)", false);
}
else if (GetDvar("nextmap") == "mp_seatown " + dsr)
{
ServerSay("^3NextMap(^1Seatown^3)", false);
}
else if (GetDvar("nextmap") == "mp_underground " + dsr)
{
ServerSay("^3NextMap(^1Underground^3)", false);
}
else if (GetDvar("nextmap") == "mp_hardhat " + dsr)
{
ServerSay("^3NextMap(^1Hardhat^3)", false);
}
else if (GetDvar("nextmap") == "mp_exchange " + dsr)
{
ServerSay("^3NextMap(^1Downturn^3)", false);
}
else if (GetDvar("nextmap") == "mp_village " + dsr)
{
ServerSay("^3NextMap(^1Village^3)", false);
}
else if (GetDvar("nextmap") == "mp_interchange " + dsr)
{
ServerSay("^3NextMap(^1Interchange^3)", false);
}
else if (GetDvar("nextmap") == "mp_carbon " + dsr)
{
ServerSay("^3NextMap(^1Carbon^3)", false);
}
}
return ChatType.ChatNone;
}
return ChatType.ChatContinue;
}
public override void OnMapChange()
{
user.Clear();
}
}
}



