Raised This Month: $ Target: $400
 0% 

Automatic Round Restart


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
Dedomil
Junior Member
Join Date: Jan 2005
Old 01-05-2005 , 18:52   Automatic Round Restart
Reply With Quote #1

This its Public Auto restart. Original AMX Mod

Msg in console

amx_auto_rr set to 0/1

0 - OFF
1 - ON
================================
Slovak Langaue

Takže toto je velmi cool pluginsok do AMX Modu X. Original je
z AMX Modu takze ho uz niektory poznaju. Nemusite nastavovat
ziadne hodnoty len pridat a je to. Reset vzdy prebieha asi 30
sekund po nalodovani novej mapy. Dobre pre Public nez sa vsetci
hraci pripoja na server.

sv_restartround je na 2sec.

Attached Files
File Type: sma Get Plugin or Get Source (auto-restart.sma - 1334 views - 3.3 KB)
__________________
CS 1.5 RuLeZZZzzz...
Dedomil is offline
Send a message via ICQ to Dedomil
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-06-2005 , 16:52  
Reply With Quote #2

Any more information? When and why does it automatically restart the round?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
ToT | V!PER
Senior Member
Join Date: Jun 2004
Location: Germany
Old 01-07-2005 , 06:06  
Reply With Quote #3

It simply makes the server sv_restart 2 , 20 seconds after game commencing occurs. This was a usefull plugin earlier to prevent fast-connecters winning first round already before other players got into game. So everyone could play the pistol round.

Here is the modified and stripped to basic functions versions of my now nearly 2 years old first plugin ;-)

Code:
#include <amxmodx>

public restart_time()   
   set_task (get_cvar_float("amx_autorestart"),"restart_map",0)   

public restart_map() {    
      set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)     
      show_hudmessage(0,"[AMXX] Automatic Round-Restart!")    
      set_cvar_float("sv_restart",2.0)   
      return PLUGIN_HANDLED
   }   

public plugin_init() {   
   register_plugin("Auto-Restart","1.00","ToT | V!PER")   
   register_event("TextMsg","restart_time","a","2&#Game_C")   
   register_cvar("amx_autorestart","20.0")
   return PLUGIN_CONTINUE     
}
PS.: Code posted for moderators to get approval :-)
Attached Files
File Type: sma Get Plugin or Get Source (amx_autorestart.sma - 962 views - 1.3 KB)
ToT | V!PER is offline
Send a message via ICQ to ToT | V!PER
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-07-2005 , 06:58  
Reply With Quote #4

ToT | V!PER is right, you should definitely read the rules before posting/porting plugins. Trashm
Johnny got his gun is offline
Reply



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 17:17.


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