Raised This Month: $12 Target: $400
 3% 

[ANY] Easy Restart Game [updated 10/08/12]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Rp.KryptoNite
Senior Member
Join Date: Feb 2012
Location: Israel
Plugin ID:
2902
Plugin Version:
V1.0.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Easy Restarting Plugin By Kryptonite
    Old 04-12-2012 , 16:22   [ANY] Easy Restart Game [updated 10/08/12]
    Reply With Quote #1

    Simple Round restarting plugin:

    avalible for games who support SOURCE ENGINE on build command (mp_restartgame 1).

    Enjoy.

    Convars :
    sm_rr

    Version :
    1.0.0

    Attached Files
    File Type: sp Get Plugin or Get Source (rr.sp - 1919 views - 423 Bytes)

    Last edited by Sheepdude; 01-20-2013 at 22:14. Reason: feedback given
    Rp.KryptoNite is offline
    Rp.KryptoNite
    Senior Member
    Join Date: Feb 2012
    Location: Israel
    Old 04-12-2012 , 16:27   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #2

    Approved !
    Rp.KryptoNite is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 04-12-2012 , 21:32   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #3

    Please to get approved follow these rules:
    https://forums.alliedmods.net/showthread.php?t=57142

    Version Needed.
    Unnecessary command !credits, if a end user really want to know who created the plugin they will use sm plugins.
    YOu are putting the files in a .ZIP when all you have to do is upload the .SP and the forum will automatically compile it.

    and you will get a error, on line 17, because of indentations.

    How it should look:
    PHP Code:
    #include <sourcemod>
    #define PLUGIN_VERSION "1.0.1"
    public Plugin:myinfo =
    {
        
    name "Easy RR",
        
    author "KryptoNite [IL]",
        
    description "Easy command to restart the game instead of an admin doing: sm_rcon mp_restartgame 2",
        
    version PLUGIN_VERSION,
        
    url ""
    };

    public 
    OnPluginStart()
    {
        
    CreateConVar("sm_easy_rr_version"PLUGIN_VERSION"Easy RR"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
        
    RegAdminCmd ("sm_rr"Command_rrADMFLAG_GENERIC);
    }
    public 
    Action:Command_rr(clientargs)
    {
        
    ServerCommand ("mp_restartgame 2");


    Last edited by DarthNinja; 04-13-2012 at 15:43. Reason: Removed IP address
    Mitchell is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 04-13-2012 , 13:57   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #4

    This is so unnecessary why not use !rcon mp_restartgame 2 ?

    Also you dont got any cvar's for easily change the restart time instead of have to recompile?
    ecca is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 04-13-2012 , 14:21   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #5

    guess it's bad to use sm_credit.
    Leonardo is offline
    Rp.KryptoNite
    Senior Member
    Join Date: Feb 2012
    Location: Israel
    Old 04-13-2012 , 15:40   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #6

    Unloading !credits ,and re-Uplading Soon . Thanks for Comments
    Thats my First plugin so i kinda built myself in that forum using reading of Sp Files
    keeping reading and trying to understand that stuff
    Mitchell ,Thanks ill follow
    Rp.KryptoNite is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 04-13-2012 , 15:46   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #7

    The URL field in Plugin:myinfo is intended to provide useful info for people wanting to download the plugin. Not to advertise your server.
    Don't attach a zip file when your plugin will compile fine on the forums.
    I would also advise against posting your email address publicly. I have removed it from your post.
    __________________

    Last edited by DarthNinja; 04-13-2012 at 15:49.
    DarthNinja is offline
    Rp.KryptoNite
    Senior Member
    Join Date: Feb 2012
    Location: Israel
    Old 04-16-2012 , 03:38   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #8

    Ok thanks Darth im new and id like to learn more about writing the plugins
    now i know how to make triggers with admin permission only [ADMFLAG]
    id like to learn more ... donno where to start though - i hope i helped
    Rp.KryptoNite is offline
    minimoney1
    SourceMod Donor
    Join Date: Dec 2010
    Old 04-16-2012 , 05:56   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #9

    Quote:
    Originally Posted by Rp.KryptoNite View Post
    Ok thanks Darth im new and id like to learn more about writing the plugins
    now i know how to make triggers with admin permission only [ADMFLAG]
    id like to learn more ... donno where to start though - i hope i helped
    http://wiki.alliedmods.net/
    Also check out http://docs.sourcemod.net/api
    and look for CheckCommandAccess (It's one of those commonly used natives when it comes to admin flags)
    minimoney1 is offline
    Rp.KryptoNite
    Senior Member
    Join Date: Feb 2012
    Location: Israel
    Old 10-07-2012 , 19:31   Re: [ANY] Easy Restart Game -By KryptoNite
    Reply With Quote #10

    Plugin fixed re wroted god it took me my first time about 30 minutes to make it work
    now took me 45 seconds Lol .
    Good day -please approve .
    Rp.KryptoNite 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 03:41.


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