Advertisement
Guest User

first

a guest
Apr 6th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. using Steamworks;
  2. using Rocket.Core.Plugins;
  3. using Rocket.Core.Logging;
  4.  
  5. namespace ExtraConcentratedJuice.ExtraPlayerSpoof
  6. {
  7.     public class ExtraPlayerSpoof : RocketPlugin<ExtraPlayerSpoofConfig>
  8.     {
  9.         protected override void Load()
  10.         {
  11.             Logger.Log("-----------");
  12.             Logger.Log("Extra's Player Spoofer Loaded!");
  13.             Logger.Log("Can you believe it? People are selling this one line plugin for $6!");
  14.             Logger.Log("> Setting player count to: " + Configuration.Instance.player_count);
  15.             Logger.Log("-----------");
  16.  
  17.             Level.onLevelLoaded += OnLevelLoaded;
  18.             SteamGameServer.SetBotPlayerCount(Configuration.Instance.player_count);
  19.         }
  20.  
  21.         protected override void Unload()
  22.         {
  23.         }
  24.  
  25.         private void OnLevelLoaded(int l)
  26.         {
  27.             SteamGameServer.SetBotPlayerCount(Configuration.Instance.player_count);
  28.         }
  29.  
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement