Class Time Limit
Description Chose the time for player can play each class in each team, and select how much time he must wait for replay this class. You can also don't make timer on a class, or prohibit a class.Admins can have immuntity, you have just to select the flags and active the immunity CVAR. CVAR Code: ctl_enabled (default: 1) => Enable or disable class time limit ? ctl_flags (default: a) => Admin flags for no time limitctl_immunity (default: 0) => Enable or disable admins being immune for class time limit ?ctl_red_scout (default: -1) => Timer for play red Scout in seconds, -1 for no limit, 0 for block classctl_wait_red_scout (default: 500) => Timer to wait for replay red Scout in seconds, not need if Timer = -1 or 0ctl_red_soldier (default: -1)ctl_wait_red_soldier (default: 500)ctl_red_pyro (default: -1)ctl_wait_red_pyro (default: 500)ctl_red_demoman (default: -1)ctl_wait_red_demoman (default: 500)ctl_red_heavy (default: -1)ctl_wait_red_heavy (default: 500)ctl_red_medic (default: -1)ctl_wait_red_medic (default: 500)ctl_red_sniper (default: 500)ctl_wait_red_sniper (default: 1000)ctl_red_engineer (default: -1)ctl_wait_red_engineer (default: 500)ctl_red_spy (default: 0)ctl_wait_red_spy (default: 500)ctl_blue_scout (default: -1)ctl_wait_blue_scout (default: 500)ctl_blue_soldier (default: -1)ctl_wait_blue_soldier (default: 500)ctl_blue_pyro (default: -1)ctl_wait_blue_pyro (default: 500)ctl_blue_demoman (default: -1)ctl_wait_blue_demoman (default: 500)ctl_blue_heavy (default: -1)ctl_wait_blue_heavy (default: 500)ctl_blue_medic (default: -1)ctl_wait_blue_medic (default: 500)ctl_blue_sniper (default: 500)ctl_wait_blue_sniper (default: 1000)ctl_blue_engineer (default: -1)ctl_wait_blue_engineer (default: 500)ctl_blue_spy (default: 0)ctl_wait_blue_spy (default: 500)Installation Put class_time_limit.sp in the folder tfaddonssourcemodscriptingPut class_time_limit.smx in the folder tfaddonssourcemodpluginsPut Class_Time_Limit.cfg in the folder tfcfgsourcemod You need morecolors.inc And change the CVAR to you =) . Details If Class timer = 0 : player can't go to this class and he will have this message "This class is blocked, please chose an other class!", and class menu will open If Class timer = value > 1 : player will have this message for timeleft 30 sec and timeleft < 10 sec "Time left for play this class is %d second(s) !"Went the class timer is end, class menu will open. Then, if player is on an other class or team, timer to wait will continu. If Class timer = -1 : They don't have timer on this class. CRASH REPPORT : For now, DON'T TOUCH PYRO CVARS, Client game will be crash if time limit for pyro is active. I don't know where is the probleme, if anyone can help ? =s Sorry for my bad english =( ENJOY =D Attached Files


Wyświetl pełny artykuł