get_player_guid 1.0

This commit is contained in:
Resxt 2022-03-25 22:43:49 +01:00
parent 90352f90af
commit d0366bbdd7
2 changed files with 28 additions and 0 deletions

View File

@ -21,6 +21,10 @@ Display the player's killstreak, total kills and deaths on top of the screen
![image](images/display_player_stats.png)
</details>
## get_player_guid.gsc
Print the GUID of a player in the console whenever he connects and whenever he chooses/changes class.
## hardcore_tweaks.gsc
The hardcore mode replaces some game functionalities like enabling friendly fire or disabling killcams.

View 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("changed_kit");
Print(self.name + " GUID: " + self.guid);
}
}