mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-19 04:32:53 +00:00
show_text_on_first_spawn 1.0.1
Indent fix
This commit is contained in:
parent
1f5d5f9031
commit
095f33da54
@ -18,12 +18,13 @@ OnPlayerConnected()
|
|||||||
OnPlayerSpawned()
|
OnPlayerSpawned()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
for(;;)
|
|
||||||
{
|
|
||||||
self waittill("spawned_player");
|
|
||||||
|
|
||||||
// Don't show first spawn text to bots
|
for(;;)
|
||||||
if (isDefined(self.pers["isBot"]))
|
{
|
||||||
|
self waittill("spawned_player");
|
||||||
|
|
||||||
|
// Don't show first spawn text to bots
|
||||||
|
if (isDefined(self.pers["isBot"]))
|
||||||
{
|
{
|
||||||
if (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"])
|
if (!IsDefined(self.pers["saw_first_spawn_message"]) || !self.pers["saw_first_spawn_message"])
|
||||||
{
|
{
|
||||||
self.pers["saw_first_spawn_message"] = true;
|
self.pers["saw_first_spawn_message"] = true;
|
||||||
self ShowFirstSpawnMessage();
|
self ShowFirstSpawnMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
self IPrintLnBold(first_spawn_message);
|
||||||
wait 3;
|
|
||||||
self IPrintLnBold(first_spawn_message);
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user