AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Restart Round (f117bomb) (https://forums.alliedmods.net/showthread.php?t=1386)

FlyingMongoose 04-25-2004 15:04

Restart Round (f117bomb)
 
1 Attachment(s)
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.

Arianai 04-26-2004 13:07

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


Help please

FlyingMongoose 04-26-2004 16:18

my version is

amx_restartround

make sure it's named properly unless you compiled it yourself.

SniperBeamer 04-26-2004 16:23

choose a category

FlyingMongoose 04-26-2004 17:06

done

_KaszpiR_ 04-27-2004 09:10

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 }

FlyingMongoose 04-27-2004 10:53

to make that work in amxx change the amxmod include to amxmodx and also strtonum doesn't work right, but str_to_num does.

maciejpolandd 04-18-2006 06:44

help
 
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 ?

bigman11 06-06-2006 21:34

ok.......
 
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!!!!

firewall 06-29-2006 10:55

Re: Restart Round (f117bomb)
 
how can i change the plugin to make the command like that:


amx_rr <interval (seconds)> <restarts>


All times are GMT -4. The time now is 02:33.

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