Raised This Month: $66 Target: $400
 16% 

Restart Round (f117bomb)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   twistedeuphoria (82)
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-25-2004 , 16:04   Restart Round (f117bomb)
Reply With Quote #1

This is f117bomb's restartround plugin allows for multipl restarts at certain intervals

amx_rr <restarts> <interval (seconds)>

Again this is f117bomb's plugin, not mine, I just moved it here

I have not yet tested it

Enjoy.
Attached Files
File Type: sma Get Plugin or Get Source (amx_restartround.sma - 30030 views - 924 Bytes)
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Arianai
New Member
Join Date: Apr 2004
Old 04-26-2004 , 14:07  
Reply With Quote #2

19:03:40 L 04/26/2004 - 18:03:56: [AMXX] Run time error 22 on line 0 (plugin "admin_restartround.amx")


Help please
Arianai is offline
Send a message via MSN to Arianai
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-26-2004 , 17:18  
Reply With Quote #3

my version is

amx_restartround

make sure it's named properly unless you compiled it yourself.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 04-26-2004 , 17:23  
Reply With Quote #4

choose a category
__________________
SniperBeamer is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-26-2004 , 18:06  
Reply With Quote #5

done
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 04-27-2004 , 10:10  
Reply With Quote #6

here is a version that i have modified (old amxmod sorcue though). Read the contetns.
I guess this version is a bit more flexible, but may need the amxx testing to be sure it works as it should. (i know amxmod version works well, no idea about amxx version though)


Code:
/* AMX Mod X script. * * (c) Copyright 2002-2003, f117bomb * This file is provided as is (no warranties).     this version was modified by _KaszpiR_ <a href="http://nvt.prv.pl" target="_blank" rel="nofollow noopener">http://nvt.prv.pl</a>   i made the restart times and delay optional  amx_rr [restart times] [delay]   amx_rr 3 3      - 3 restarts, 3 sec delay each     amx_rr 3        - 3 restarts, X sec delay each   amx_rr          - Y restat, X second  Cvars for default command use control   amx_rr_dealy X // sets the default dealy between delays, X is a number in seconds   amx_rr_times Y // sets the default restart times on command call, default is 1 , number   amx_rr_announce 1 / 0  // announce the restarts to all * */ #include <amxmod> #include <amxmisc> public drestart(param[])    set_cvar_string("sv_restart",param) public admin_rr(id, level, cid) {    if (!cmd_access(id, level, cid,1))       return PLUGIN_HANDLED    new delay,times    new sdelay[4], stimes[4]    read_argv(1,stimes,4)    read_argv(2,sdelay,4)    times = strtonum(stimes)    delay = strtonum(sdelay)    if(!delay){      if(!get_cvar_num("amx_rr_delay")) delay = 3 //securty fix      else delay = get_cvar_num("amx_rr_delay")      }    if(!times){      if(!get_cvar_num("amx_rr_times")) times = 1 //securty fix      else times = get_cvar_num("amx_rr_times")      }    numtostr(delay, sdelay, 4)         for(new a = times;a > 0;--a)      set_task( float(delay * a) + 1.0 , "drestart", 0, sdelay, 4)    if(get_cvar_num("amx_rr_announce"))      console_print(id,"[AMX] RR - The Game will restart %d times with a %d sec. delay between restarts",times,delay)        new authid[32],name[32]    get_user_authid(id,authid,15)    get_user_name(id,name,31)      log_message("[AMX] RR - '%s<%s>' triggered RoundRestart.",name, authid)    log_message("[AMX] RR - The Game will restart %d times with a %d sec. delay between restarts",times,delay)    return PLUGIN_HANDLED } public plugin_init() {    register_plugin("Admin RestartRound","X0.16","f117bomb")    register_concmd("amx_rr","admin_rr",ADMIN_LEVEL_A,"[restart times] [delay]. See also cvars amx_rr_times, amx_rr_delay, amx_rr_announce.")        register_cvar("amx_rr_times","1")    register_cvar("amx_rr_delay","3")    register_cvar("amx_rr_announce","1")        return PLUGIN_CONTINUE }
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-27-2004 , 11:53  
Reply With Quote #7

to make that work in amxx change the amxmod include to amxmodx and also strtonum doesn't work right, but str_to_num does.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
maciejpolandd
New Member
Join Date: Apr 2006
Old 04-18-2006 , 07:44   help
Reply With Quote #8

czesc. jestem z polski i nie wiem wogole co mam zrobic z tymi pluginami nie maja one zadnego readme nic, powiedzcie o co w tym chodzi, bo rozumiem ze ten plugin robi resa rundy ?
maciejpolandd is offline
bigman11
Member
Join Date: Jun 2006
Location: Computer
Old 06-06-2006 , 22:34   ok.......
Reply With Quote #9

Not really something new because you can easy do "amx_rcon sv_restart"
Ok not as easy but come on it doesnt take a genus!!!!
__________________
bigman11 is offline
Send a message via MSN to bigman11
firewall
Member
Join Date: Jun 2006
Old 06-29-2006 , 11:55   Re: Restart Round (f117bomb)
Reply With Quote #10

how can i change the plugin to make the command like that:


amx_rr <interval (seconds)> <restarts>
firewall 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 21:21.


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