zzzzzzxz2
|
分享:
▼
x0
|
[1.6][插件] 求高手指教............
new countdown new time_s
public plugin_init() { register_event("HLTV", "event_newround", "a", "1=0", "2=0") }
public event_newround() { newround = true set_task(0.0, "sp_countdown") time_s = 20 countdown = 19 }
public newroundoff() { newround = false }
public sp_countdown() { newround = false countdown-- client_print(0, print_center,"距离僵尸出现的时间还剩: %i秒", time_s) --time_s if(time_s >= 1) { set_task(1.0, "sp_countdown") } if(time_s <= 0) { set_task(1.0, "kk1") } if(time_s >=19) { } }
public kk1() { XXXXX XXXXX .. .. set_cvar_num("sv_restart",1) }
我这个插件是想在换图后第一局开始倒数20秒,倒数完毕后,执行kk1里的东东和自动1秒后刷新 但是系统 1秒刷新完后, 倒数又重新开始,怎样解决??
|