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秒刷新完後, 倒數又重新開始,怎樣解決??
|