ItsMods

Full Version: Nextmap Plugin v1.01
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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)

but how you do non-random rotation?
This is pretty cool +1
Looks good, nice one Wink

never knew that dvar existed Smile nice job!
(02-23-2012, 06:47)Dumas Wrote: [ -> ]but how you do non-random rotation?
well try this for multiple its just an example Tongue
CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Addon;
  6. using System.Collections;
  7.  
  8. namespace nextmap
  9. {
  10. public class nextmap : CPlugin
  11. {
  12. ArrayList user = new ArrayList();
  13. public string dsr;
  14. public string dsr1;
  15. public override void OnServerLoad()
  16. {
  17. ServerPrint("NextMap Loaded Author:YAMRAJ");
  18. dsr = GetServerCFG("NextMap", "DSR Name1", "");
  19. dsr1 = GetServerCFG("NextMap", "DSR Name2", "");
  20. }
  21.  
  22. public override ChatType OnSay(string Message, ServerClient Client)
  23. {
  24. if (Message.StartsWith("!nextmap"))
  25. {
  26. if (user.Contains(Client.XUID))
  27. {
  28. TellClient(Client.ClientNum, "^2PM: ^1You used this command recently wait for the next map.", true);
  29. }
  30. else
  31. {
  32. user.Add(Client.XUID);
  33. if ((GetDvar("nextmap") == "mp_alpha " + dsr) || (GetDvar("nextmap") == "mp_alpha " + dsr1))
  34. {
  35. ServerSay("^3NextMap(^1Lockdown^3)", false);
  36. }
  37. }
  38. return ChatType.ChatNone;
  39. }
  40. return ChatType.ChatContinue;
  41. }
  42. public override void OnMapChange()
  43. {
  44. user.Clear();
  45. }
  46. }
  47. }


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
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 ?

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.
lol how many times I need to give you explanation ? i talked to doh hope he will fix this situation.
Pages: 1 2 3