mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-19 13:42:54 +00:00
get_player_guid 1.0.0
This commit is contained in:
parent
0ffa6410a6
commit
4e7e2f0cdc
7
small_scripts/README.md
Normal file
7
small_scripts/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Small scripts
|
||||||
|
|
||||||
|
Simple drag and drop scripts
|
||||||
|
|
||||||
|
## get_player_guid.gsc
|
||||||
|
|
||||||
|
Print the GUID of a player in the console whenever he connects and whenever he chooses/changes class.
|
24
small_scripts/get_player_guid-source.gsc
Normal file
24
small_scripts/get_player_guid-source.gsc
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
BIN
small_scripts/get_player_guid.gsc
Normal file
BIN
small_scripts/get_player_guid.gsc
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user