Raised This Month: $32 Target: $400
 8% 

[L4D2] Automatic Main Menu Opener AMMO v1.2.0 (6/9/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tentacle Master
Member
Join Date: Jan 2012
Plugin ID:
2977
Plugin Version:
1.2.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Automaticly open a menu for a player on spawn.
    Old 05-28-2012 , 21:27   [L4D2] Automatic Main Menu Opener AMMO v1.2.0 (6/9/2012)
    Reply With Quote #1

    Automatic Main Menu Opener AMMO

    version 1.2.1
    Author: WeAreBorg
    MTMS Head Admin/Programmer

    Heavy thanks to zipcore and his Battle RPG

    Attention Upgraders: Please delete your cfg file as a new one will need to be generated.

    Ever put a new server together with some great new plugin you found that has a menu? Have your regulars gotten on and tried the regular commands that no longer work then rage quit? New people get on your server and not even know you have a plugin with a menu?

    No Longer...

    This plugin automatically opens what ever Main Menu you have when a player spawns and reminds them how to open it again when they first join. Also comes with a small welcome message. Simple edit the config file with the menu's chat command! This plugin can be configured to open a Menu on First Spawn Only, open a Menu on Every Spawn, blare a Chat Reminder of the command to reopen the menu for a configurable number of times.

    Install .smx in the usual place and let it build its config. Change AMMOpener_Command to what ever your command is that opens the menu. Commands that start with sm_ such as "sm_buy" will remove the sm_ when telling the player the command in chat.

    Spoiler: In reality this plugin just runs a FakeClientCommand so you can actually make it do more than just open a menu. A menu is what I designed it for.

    Cvars...

    AMMOpener_version Installed version of Automatic Main Menu Opener on this server"
    AMMOpener_firstspawn "1" Enable Auto Main Menu Open for First Spawn?
    AMMOpener_enablechat "1" Enable Chat Reminder To Open Main Menu?
    AMMOpener_everyspawn "1" Enable Auto Main Menu Open for Every Spawn?
    AMMOpener_FSTimer "15.0" Time Duration till Menu is opened on player's spawn
    AMMOpener_CRTimer "10.0" On First Spawn, player will be reminded in chat every <this many seconds>
    AMMOpener_ChatRemindCount "20" Number of times to remind player to open the menu on first spawn
    AMMOpener_Command "sm_buy" Command, minus !, used to open main menu. 'sm_' will be removed when announced to players
    AMMOpener_MenuName "=Buy Menu=" Menu Title
    AMMOpener_Server "MTMS-Server" Server Description used when announcing to players
    AMMOpener_Teams "4" Announce to.. 1=spec only 2=survivors only 3=infected only 4=non spec only 5=all

    I use this plugin on all 12 of my servers. No reported issues. I love it for my Fortspawn2 servers.

    Version Notes

    v1.1.0
    -Release
    v1.2.0
    -Fixed IsClientInGame errors
    -Fixed color marker error in chat message
    -added new cvar that only prints message/opens main menu if a player is on the right team. Yes I know spectators don't spawn but I put it in for an idea I have for the future.
    v1.2.1
    -Fixed color marker error in chat message again

    To Do
    combine AMMOpener_firstspawn and AMMOpener_everyspawn into 1 cvar
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_AMMOpener.sp - 2022 views - 6.0 KB)
    File Type: cfg l4d2_AMMOpener.cfg (1.3 KB, 921 views)
    __________________
    Maximum Online Gaming: Multi Tanks Maximum Spawn Servers (MTMS) Head Admin / Programmer

    Plugins:
    Automatic Main Menu Opener -public ||| My Little Pony Models Pack -public ||| No One Left4Dead -private ||| Fortspawn 2 -private

    Last edited by Tentacle Master; 06-09-2012 at 18:10.
    Tentacle Master is offline
    mugen
    Member
    Join Date: Jun 2010
    Old 05-29-2012 , 03:36   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #2

    looks nice thx i have a problem : no menu opens tried !buy buy sm_buy no menu

    oh yeh game is l4d2 coop server

    Last edited by mugen; 05-29-2012 at 03:37.
    mugen is offline
    Tentacle Master
    Member
    Join Date: Jan 2012
    Old 05-29-2012 , 09:45   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #3

    Are you using a plugin that uses sm_buy as a command like Points System? This plugin just sends a command behalf of the player, it has no menu or commands of its own.
    __________________
    Maximum Online Gaming: Multi Tanks Maximum Spawn Servers (MTMS) Head Admin / Programmer

    Plugins:
    Automatic Main Menu Opener -public ||| My Little Pony Models Pack -public ||| No One Left4Dead -private ||| Fortspawn 2 -private
    Tentacle Master is offline
    mugen
    Member
    Join Date: Jun 2010
    Old 05-30-2012 , 03:28   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #4

    i have no buy and tried it on fresh server also no menu
    mugen is offline
    Simca
    Senior Member
    Join Date: Feb 2012
    Old 06-01-2012 , 20:04   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #5

    Please remove or allow us the change this.
    [AMMO] x03T

    Can you make a cvar that only shows for survivor or infected? I use hat plugin and the infected can't use it.

    [CODE]L 06/02/2012 - 08:28:15: [SM] Native "PrintToChat" reported: Client 1 is not in game
    L 06/02/2012 - 08:28:15: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:28:15: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:28:15: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:29:50: [SM] Native "IsFakeClient" reported: Client 1 is not connected
    L 06/02/2012 - 08:29:50: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:29:50: [SM] [0] Line 120, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:29:53: Error log file session closed.
    L 06/02/2012 - 08:42:16: SourceMod error session started
    L 06/02/2012 - 08:42:16: Info (map "c1m1_hotel") (file "errors_20120602.log")
    L 06/02/2012 - 08:42:16: [SM] Native "PrintToChat" reported: Client 9 is not in game
    L 06/02/2012 - 08:42:16: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:42:16: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:42:16: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:42:28: [SM] Native "PrintToChat" reported: Client 2 is not in game
    L 06/02/2012 - 08:42:28: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:42:28: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:42:28: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:421: [SM] Native "PrintToChat" reported: Client 6 is not in game
    L 06/02/2012 - 08:421: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:421: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:421: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:426: [SM] Native "PrintToChat" reported: Client 9 is not in game
    L 06/02/2012 - 08:426: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:426: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:426: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    Simca is offline
    RavenDan29
    Veteran Member
    Join Date: Sep 2009
    Old 06-02-2012 , 01:27   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #6

    So if i use http://forums.alliedmods.net/showthread.php?t=134113 this will then bring up the menu automatically for players?
    __________________
    RavenDan29 is offline
    Tentacle Master
    Member
    Join Date: Jan 2012
    Old 06-03-2012 , 21:18   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #7

    Quote:
    Originally Posted by RavenDan29 View Post
    So if i use http://forums.alliedmods.net/showthread.php?t=134113 this will then bring up the menu automatically for players?
    Yes that will work. I figured that plugin was common enough for it to be the default.

    Simca, My original version did allow the ability to change the AMMO tag. But I took it off for selfish reasons. I may add that functionality back.

    I think the cvar to show teams is a good idea. I'll probably make into 1 cvar rather than 3, 1 for each team.
    I thought I had an isclientingame check.... I'll check it out.
    __________________
    Maximum Online Gaming: Multi Tanks Maximum Spawn Servers (MTMS) Head Admin / Programmer

    Plugins:
    Automatic Main Menu Opener -public ||| My Little Pony Models Pack -public ||| No One Left4Dead -private ||| Fortspawn 2 -private
    Tentacle Master is offline
    Tentacle Master
    Member
    Join Date: Jan 2012
    Old 06-03-2012 , 23:06   Re: [L4D2] Automatic Main Menu Opener AMMO v1.1.0
    Reply With Quote #8

    Quote:
    Originally Posted by Simca View Post
    Please remove or allow us the change this.
    [AMMO] x03T
    I at least fixed this error. See above post for more explanation
    Quote:
    Originally Posted by Simca View Post
    Can you make a cvar that only shows for survivor or infected? I use hat plugin and the infected can't use it.
    Done. Set AMMOpener_Teams to "2"
    Quote:
    Originally Posted by Simca View Post
    [CODE]L 06/02/2012 - 08:28:15: [SM] Native "PrintToChat" reported: Client 1 is not in game
    L 06/02/2012 - 08:28:15: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:28:15: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:28:15: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:29:50: [SM] Native "IsFakeClient" reported: Client 1 is not connected
    L 06/02/2012 - 08:29:50: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:29:50: [SM] [0] Line 120, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:29:53: Error log file session closed.
    L 06/02/2012 - 08:42:16: SourceMod error session started
    L 06/02/2012 - 08:42:16: Info (map "c1m1_hotel") (file "errors_20120602.log")
    L 06/02/2012 - 08:42:16: [SM] Native "PrintToChat" reported: Client 9 is not in game
    L 06/02/2012 - 08:42:16: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:42:16: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:42:16: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:42:28: [SM] Native "PrintToChat" reported: Client 2 is not in game
    L 06/02/2012 - 08:42:28: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:42:28: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:42:28: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:421: [SM] Native "PrintToChat" reported: Client 6 is not in game
    L 06/02/2012 - 08:421: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:421: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:421: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    L 06/02/2012 - 08:426: [SM] Native "PrintToChat" reported: Client 9 is not in game
    L 06/02/2012 - 08:426: [SM] Displaying call stack trace for plugin "l4d2_AMMOpener.smx":
    L 06/02/2012 - 08:426: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::OpenMainMenuMsg()
    L 06/02/2012 - 08:426: [SM] [1] Line 123, /home/groups/alliedmodders/forums/files/1/6/8/1/8/0/104354.attach::TimerChatRemind()
    Should have fixed this error
    __________________
    Maximum Online Gaming: Multi Tanks Maximum Spawn Servers (MTMS) Head Admin / Programmer

    Plugins:
    Automatic Main Menu Opener -public ||| My Little Pony Models Pack -public ||| No One Left4Dead -private ||| Fortspawn 2 -private

    Last edited by Tentacle Master; 06-03-2012 at 23:07.
    Tentacle Master is offline
    ChickenFighter
    Junior Member
    Join Date: Oct 2010
    Location: Germany
    Old 06-04-2012 , 14:25   Re: [L4D2] Automatic Main Menu Opener AMMO v1.2.0 (6/3/2012)
    Reply With Quote #9

    You really should add the cvar to edit the tag. Dont want to have AMMO as my tag it just doesnt fit i think ^^
    ChickenFighter is offline
    Tentacle Master
    Member
    Join Date: Jan 2012
    Old 06-04-2012 , 14:40   Re: [L4D2] Automatic Main Menu Opener AMMO v1.2.0 (6/3/2012)
    Reply With Quote #10

    Quote:
    Originally Posted by ChickenFighter View Post
    You really should add the cvar to edit the tag. Dont want to have AMMO as my tag it just doesnt fit i think ^^
    I'll think about it.
    __________________
    Maximum Online Gaming: Multi Tanks Maximum Spawn Servers (MTMS) Head Admin / Programmer

    Plugins:
    Automatic Main Menu Opener -public ||| My Little Pony Models Pack -public ||| No One Left4Dead -private ||| Fortspawn 2 -private
    Tentacle Master is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:05.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode