mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-19 13:42:54 +00:00
Just a refactor that doesn't affect any script or add anything new. Plutonium T6 now supports loading source scripts so compiling them isn't needed anymore https://plutonium.pw/docs/changelog/#r3408 [Refactor] Removed all compiled scripts Moved all source scripts to the main folder instead of a source folder Renamed all source scripts to remove the source tag at the end Removed notions of compiled and source scripts in the repository's README
28 lines
395 B
Plaintext
28 lines
395 B
Plaintext
Init()
|
|
{
|
|
level thread OnPlayerConnect();
|
|
}
|
|
|
|
OnPlayerConnect()
|
|
{
|
|
for(;;)
|
|
{
|
|
level waittill("connected", player);
|
|
|
|
Print(player.name + " GUID: " + player.guid);
|
|
|
|
player thread OnPlayerSpawned();
|
|
}
|
|
}
|
|
|
|
OnPlayerSpawned()
|
|
{
|
|
self endon("disconnect");
|
|
|
|
for(;;)
|
|
{
|
|
self waittill("spawned_player");
|
|
|
|
Print(self.name + " GUID: " + self.guid);
|
|
}
|
|
} |