Hello everybody :)
I am currently at a plugin for Rust. It is about InfoPanel from Default. I want the plugin to save the SteamID of the current player into a variable. All other mechanics work.
So far I only managed to save the SteamID of the user who is last joined on the server into a variable, but I need the SteamID continuously as long as the player is online to count and spend his kills.
I've been trying to get around for 2 days. :) This is my latest snippet:
I am currently at a plugin for Rust. It is about InfoPanel from Default. I want the plugin to save the SteamID of the current player into a variable. All other mechanics work.
So far I only managed to save the SteamID of the user who is last joined on the server into a variable, but I need the SteamID continuously as long as the player is online to count and spend his kills.
I've been trying to get around for 2 days. :) This is my latest snippet:
BasePlayer player = new BasePlayer();
ulong playus = player.userID;With this the compilation works, but I get a 0 as SteamID of the user. :/ Is there an easy way to extract the SteamID of the player?
I am quite a novice in C#. Sorry :)
Thank you very much :)