Hello Guys, i have the script finished.
But it doesn't work.
Here the script:
tdm.gsc
Code:Callback_StartGameType() thread counter();And down of the all scripts in tdm.gsc:Code:Callback_PlayerConnect() { thread dummy(); self.statusicon = "hud_status_connecting"; self waittill("begin"); self.statusicon = ""; self thread freezeMe(); ..... }
Now if the gametype starts, it will call the thread counter.Code:counter() { level.counter = 20; while(level.counter > 0) { wait 1; level.counter--; } } freezeMe() { self endon("disconnect"); if(level.counter > 0) { self freezecontrols(true); self thread unfreezeMe(); } } unfreezeMe() { self endon("disconnect"); wait level.counter; self freezecontrols(false); }
This give it a time and go down after a secound.
if somebody connect it will read which secound he is and he will freeze.
But nothing will happend. Somebody know why?
Thanks

Reply With Quote
