Raised This Month: $32 Target: $400
 8% 

Automatic Restart - Prevent fast-connecters to get money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:          Approver:   Johnny got his gun (102)
ToT | V!PER
Senior Member
Join Date: Jun 2004
Location: Germany
Old 01-07-2005 , 07:06   Automatic Restart - Prevent fast-connecters to get money
Reply With Quote #1

This plugin simply does a auto-restart after a defined amount of time. The restart occurs AFTER game commencing (both teams got players first).

This is usefull to prevent fast-connectors get easy and fast money for the 2nd round. So nearly everyone will be forced to play the pistolround on public-servers.

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      }
Attached Files
File Type: sma Get Plugin or Get Source (amx_autorestart.sma - 12654 views - 1.3 KB)
ToT | V!PER is offline
Send a message via ICQ to ToT | V!PER
 


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


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