Plutonium-T6-Scripts/small_scripts/get_player_guid.gsc
Resxt 4501736b79 Remove everything about compiled files
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
2023-02-27 14:05:04 +01:00

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);
}
}