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

Zombie Master Roundrestart Through Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Brainstorm
Member
Join Date: Aug 2007
Plugin ID:
158
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Zombie Master
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin therefore allows a Zombie Master to restart the round by saying 'roundrestart', avoinding the use of the console.
    Old 08-25-2007 , 17:06   Zombie Master Roundrestart Through Chat
    Reply With Quote #1

    Current Version: 1.1


    Description:

    Zombie Master mod offers built-in round restart capabilities by having the zombie master type 'roundrestart' in the console. Unfortunately not everyone has the console enabled, especially new players. This little plugin therefore allows a Zombie Master to restart the round by typing the same 'roundrestart' command into chat or team chat.


    Features to come:

    None


    Changelog:

    1.0: Initial Release
    1.0: Removed most of the parsing of the chat commands.
    Attached Files
    File Type: sp Get Plugin or Get Source (zm_roundrestart.sp - 1766 views - 2.1 KB)
    File Type: smx zm_roundrestart.smx (1.7 KB, 560 views)

    Last edited by psychonic; 03-23-2010 at 12:24. Reason: Reason: changed "game" field to newly created category "Zombie Master"
    Brainstorm is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-25-2007 , 17:11   Re: Zombie Master Roundrestart Through Chat
    Reply With Quote #2

    Nice!

    I have 2 comments:
    1. Do you really need all that checking for the say command?
    2. I like the PHP-like substr command
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    Brainstorm
    Member
    Join Date: Aug 2007
    Old 08-25-2007 , 17:18   Re: Zombie Master Roundrestart Through Chat
    Reply With Quote #3

    1) Haha yes I'm a pretty defensive coder. The code is trying to detect and avoid the use of quotes, it is actually a copy of some lines of code I used in a different plugin. You're right, I'll change it.

    2) I actually didn't find a substring in the include files, so I made this one. I think that what you mean is: the last parameter is an index, not a length? Imho various languages implement substr differently, and to be honest I like this version better. But anyway, when I adjust #1, then the substr will disappear.
    Brainstorm is offline
    API
    Veteran Member
    Join Date: May 2006
    Old 08-27-2007 , 02:22   Re: Zombie Master Roundrestart Through Chat
    Reply With Quote #4

    Basic yet effective, another reason SourceMod rules. Approved.
    __________________
    API is offline
    Send a message via AIM to API
    igotfits
    Senior Member
    Join Date: May 2009
    Old 05-05-2009 , 04:45   Re: Zombie Master Roundrestart Through Chat
    Reply With Quote #5

    does this work on dod:s ?? i need a round restart for my realism server please help thank u
    igotfits is offline
    Reply


    Thread Tools
    Display Modes

    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 07:16.


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