ItsMods
[Release] Nextmap Plugin v1.01 - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Release] Nextmap Plugin v1.01 (/Thread-Release-Nextmap-Plugin-v1-01.html)

Pages: 1 2 3


Nextmap Plugin v1.01 - yamraj - 02-23-2012

Well here`s a little plugin i think it will useful for some of you Smile


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=enable
Command:
Code:
!nextmap //available if Rotation is disabled.

Version 1.01
Changelog (Click to View)




RE: Nextmap - Dumas - 02-23-2012

but how you do non-random rotation?


RE: Nextmap - JariZ - 02-23-2012

This is pretty cool +1


RE: Nextmap - supremo - 02-23-2012

Looks good, nice one Wink




RE: Nextmap - JoSchaap - 02-23-2012

never knew that dvar existed Smile nice job!


RE: Nextmap - yamraj - 02-23-2012

(02-23-2012, 06:47)Dumas Wrote: but how you do non-random rotation?
well try this for multiple its just an example Tongue
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 string dsr1; public override void OnServerLoad() { ServerPrint("NextMap Loaded Author:YAMRAJ"); dsr = GetServerCFG("NextMap", "DSR Name1", ""); dsr1 = GetServerCFG("NextMap", "DSR Name2", ""); } 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) || (GetDvar("nextmap") == "mp_alpha " + dsr1)) { ServerSay("^3NextMap(^1Lockdown^3)", false); } } return ChatType.ChatNone; } return ChatType.ChatContinue; } public override void OnMapChange() { user.Clear(); } } }




RE: Nextmap - JariZ - 02-24-2012

I heard this doesn't work, can anyone confirm this actually is working like it should?
Also pretty suspicious that you share source code now


RE: Nextmap - yamraj - 02-25-2012

Well i shared source coz there is no plugin related to NextMap and i obfuscate my ProMod bcoz it is stable than other promod and has relative plugin which is unstable and for your info NextMap is working fine i just checked on a server who was using this and working perfectly.
Quote:Also pretty suspicious that you share source code now
I know you have some problem with me but try not to put shit on me its un toleratable now why not act like an MODERATOR ?




RE: Nextmap - JariZ - 02-25-2012

I am not having a problem with you. You don't have to tell me my rank everytime I tell what I think.
I might be a moderator but that doesn't mean I can't give my opinion every once in a while.
You gave a proper explanation and that's all I wanted to hear, the whole 'untoleratablallae shit' wasn't needed at all.


RE: Nextmap - yamraj - 02-25-2012

lol how many times I need to give you explanation ? i talked to doh hope he will fix this situation.