mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-19 12:42:54 +00:00
get_player_guid 1.0
This commit is contained in:
parent
90352f90af
commit
d0366bbdd7
@ -21,6 +21,10 @@ Display the player's killstreak, total kills and deaths on top of the screen
|
||||

|
||||
</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.
|
||||
|
24
small_scripts/get_player_guid.gsc
Normal file
24
small_scripts/get_player_guid.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("changed_kit");
|
||||
Print(self.name + " GUID: " + self.guid);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user