AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Easy Restart Game [updated 10/08/12] (https://forums.alliedmods.net/showthread.php?t=182698)

Rp.KryptoNite 04-12-2012 16:22

[ANY] Easy Restart Game [updated 10/08/12]
 
1 Attachment(s)
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


Rp.KryptoNite 04-12-2012 16:27

Re: [ANY] Easy Restart Game -By KryptoNite
 
Approved !

Mitchell 04-12-2012 21:32

Re: [ANY] Easy Restart Game -By KryptoNite
 
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");



ecca 04-13-2012 13:57

Re: [ANY] Easy Restart Game -By KryptoNite
 
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?

Leonardo 04-13-2012 14:21

Re: [ANY] Easy Restart Game -By KryptoNite
 
guess it's bad to use sm_credit.

Rp.KryptoNite 04-13-2012 15:40

Re: [ANY] Easy Restart Game -By KryptoNite
 
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 :)

DarthNinja 04-13-2012 15:46

Re: [ANY] Easy Restart Game -By KryptoNite
 
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.

Rp.KryptoNite 04-16-2012 03:38

Re: [ANY] Easy Restart Game -By KryptoNite
 
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

minimoney1 04-16-2012 05:56

Re: [ANY] Easy Restart Game -By KryptoNite
 
Quote:

Originally Posted by Rp.KryptoNite (Post 1690211)
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)

Rp.KryptoNite 10-07-2012 19:31

Re: [ANY] Easy Restart Game -By KryptoNite
 
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 .


All times are GMT -4. The time now is 18:47.

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