From 095f33da54852bcd6a7e2dc0b10fbf35f7f2538c Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Tue, 29 Mar 2022 18:42:28 +0200 Subject: [PATCH] show_text_on_first_spawn 1.0.1 Indent fix --- small_scripts/show_text_on_first_spawn.gsc | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/small_scripts/show_text_on_first_spawn.gsc b/small_scripts/show_text_on_first_spawn.gsc index 67371c6..0c4e409 100644 --- a/small_scripts/show_text_on_first_spawn.gsc +++ b/small_scripts/show_text_on_first_spawn.gsc @@ -18,12 +18,13 @@ OnPlayerConnected() OnPlayerSpawned() { self endon("disconnect"); - for(;;) - { - self waittill("spawned_player"); - // Don't show first spawn text to bots - if (isDefined(self.pers["isBot"])) + for(;;) + { + self waittill("spawned_player"); + + // Don't show first spawn text to bots + if (isDefined(self.pers["isBot"])) { if (self.pers["isBot"]) { @@ -32,18 +33,18 @@ OnPlayerSpawned() } if (!IsDefined(self.pers["saw_first_spawn_message"]) || !self.pers["saw_first_spawn_message"]) - { - self.pers["saw_first_spawn_message"] = true; - self ShowFirstSpawnMessage(); - } + { + self.pers["saw_first_spawn_message"] = true; + self ShowFirstSpawnMessage(); + } } } ShowFirstSpawnMessage() { - first_spawn_message = "^1Read the rules by typing !rules in the chat"; - + first_spawn_message = "^1Read the rules by typing !rules in the chat"; + + self IPrintLnBold(first_spawn_message); + wait 3; self IPrintLnBold(first_spawn_message); - wait 3; - self IPrintLnBold(first_spawn_message); } \ No newline at end of file