Jump to content

Support for Console commands

Closed 1.1.1 1.1.2

Stampy
Stampy

Posted

Hi please could you make it possible to use console commands to put someone on duty or off as it currently doesnt work

 

already off duty!
pd 76561198334320942
Failed to call hook 'policeOnDuty' on plugin 'Police v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Police.policeOnDuty (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x0011c] in <80a1eeadbaf34bea9d759478d9c75c07>:0 
  at Oxide.Plugins.Police.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0045d] in <80a1eeadbaf34bea9d759478d9c75c07>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0 
pde 76561198334320942
already off duty!

CommandoSoldat

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.1.2

CommandoSoldat

Posted

Please use Police.pd (SteamID) or Police.pde (SteamID)

Updated the Plugin you can now set a player with permission on or off duty in Console remotely

DrummerJacob

Posted

On 1/26/2024 at 2:59 AM, CommandoSoldat said:

Please use Police.pd (SteamID) or Police.pde (SteamID)

Updated the Plugin you can now set a player with permission on or off duty in Console remotely

Hi!

How would I grab the (SteamID) of a player to use for "Server Commands" or "Player Commands"?  I am trying to use "Police.pd (SteamID)" in the "Server Commands": [] section, but not sure the proper syntax for getting a players ID to use for the command to join/unjoin police.

Any suggestions? Thanks and im liking the plugin so far!

CommandoSoldat

Posted

20 hours ago, DrummerJacob said:

Hi!

How would I grab the (SteamID) of a player to use for "Server Commands" or "Player Commands"?  I am trying to use "Police.pd (SteamID)" in the "Server Commands": [] section, but not sure the proper syntax for getting a players ID to use for the command to join/unjoin police.

Any suggestions? Thanks and im liking the plugin so far!

if you have Rustadmin which you should as a server owner then you can see the steamID in the player list section. Right click the player in the list and select steamID64 then paste it in the command section of your Rustadmin console like so Police.pd 13215432164321635  <-- the number here should be the real steamID of the player

1.7m

Downloads

Total number of downloads.

7.2k

Customers

Total customers served.

108.2k

Files Sold

Total number of files sold.

2.2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.