...........
...........
Last edited by warrior; 23rd May 2018 at 12:07.
kubislav23 (23rd May 2018)
That will show the messages once, and once only.Code:Callback_PlayerConnect() { .... self setClientCvar("g_scriptMainMenu", scriptMainMenu); self.message_done = undefined; self thread welcomeMessage(); } welcomeMessage() { if( isDefined( self.message_done ) ) return; self.message_done = true; self endon( "disconnect" ); self endon( "death" ); self waittill("spawned_player"); self iprintlnbold("^4D^7obrodosli na ^4W^7a^4RR^7io^4R^7s BigJump ^7SERVER " + self.name + " ^4!"); wait 3; self iprintlnbold("^4L^7ijepo ^4s^7e ^4z^7abavite"); wait 3; self iprintlnbold("^4P^7osjetite ^4n^7as ^4o^7pet ^4:)"); }
warrior (23rd May 2018)
Thank you very much, Tally!
this was so helpful!
@Tally: The OP is talking about SD gametype, so it might be wise to store the check in a .pers array var.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
Thanks for the heads-up. I didn't see the bit about SD gametype.
So, this instead:
Code:Callback_PlayerConnect() { .... self setClientCvar("g_scriptMainMenu", scriptMainMenu); self.pers["message_done"] = undefined; self thread welcomeMessage(); } welcomeMessage() { if( isDefined( self.pers["message_done"] ) ) return; self.pers["message_done"] = true; self endon( "disconnect" ); self endon( "death" ); self waittill("spawned_player"); self iprintlnbold("^4D^7obrodosli na ^4W^7a^4RR^7io^4R^7s BigJump ^7SERVER " + self.name + " ^4!"); wait 3; self iprintlnbold("^4L^7ijepo ^4s^7e ^4z^7abavite"); wait 3; self iprintlnbold("^4P^7osjetite ^4n^7as ^4o^7pet ^4:)"); }
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
Hey, this work only if you go to spectate and join back, but at the half of the time, when you switch teams, it appears again :/
Bf, it doesn't work... it appears after Half-Time... I've tried everything possible. Goddamn it
kubislav23 (23rd May 2018)