Important Pluton for Experimental Branch

Status
Not open for further replies.

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
He wants a method which sends a console parameter. For example: Server.Command, or Server.SendCommand
Tryed Server.SendCommand("status") but no luck... Maybe I got it wrong?
I just need it to send command when timer end's... Any help?

Are timers even working?
Plugin.CreateTimer("timer", 1000, data).Start() Not working for me... Gives except code
 
Last edited:

balu92

Moderator
Moderator
Jul 11, 2014
338
75
28
33

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,065
4,486
113
At your house.
github.com
Tryed Server.SendCommand("status") but no luck... Maybe I got it wrong?
I just need it to send command when timer end's... Any help?

Are timers even working?
Plugin.CreateTimer("timer", 1000, data).Start() Not working for me... Gives except code
The method wasn't implemented. I just notified balu to add it in.
 

Ionstorm

New Member
Member
Oct 6, 2014
24
5
3
42
Was there a set home plugin yet? Or a Remove plugin? Or even an Admin Godmode? :D

Just curious!


Site could do with a development plugin section!


BTW Oxide 2.0 is released but you have to wait for them to release DLL's atm! So screw that for a bad joke!
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,065
4,486
113
At your house.
github.com
Was there a set home plugin yet? Or a Remove plugin? Or even an Admin Godmode? :D

Just curious!


Site could do with a development plugin section!


BTW Oxide 2.0 is released but you have to wait for them to release DLL's atm! So screw that for a bad joke!
Yeah I See your arguments with them.


I'm converting TpFriend which atm the best detailed TPA sys, but It has to be converted.

It won't be slow, It's smaller than my HomeSystem. HomeSystem will take time, but I'm on my way to convert all of my useful plugins. I'm Creating a small Pluton Section now till we have the new website.
 

balu92

Moderator
Moderator
Jul 11, 2014
338
75
28
33
Was there a set home plugin yet? Or a Remove plugin? Or even an Admin Godmode? :D

Just curious!


Site could do with a development plugin section!


BTW Oxide 2.0 is released but you have to wait for them to release DLL's atm! So screw that for a bad joke!
We will have our forum soon(still need to setup), so we won't just have this single post. ;)
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
It's a temp section, but It's a small setup. Use It.

http://fougerite.com/forums/#pluton-discussion-temporary.23
I see that there is Plugin uploding page... Can I maybe be part of your team in plugins and add one? :)
I used to be Oxide Plugin Developer but one man sayed:
I'll not bother wasting my time trying to help or push any longer, the early bird gets the worm, good luck trying to recover lost ground.
And that means You win with your fast mod and great support...

P.S. I would love to upload HomeSystem plugin... Got it working with ini and seems to be stable... I would love to share my work... Thanks... Waiting reply
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,065
4,486
113
At your house.
github.com

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
@DreTaX Or I am stupid and dont see it or your TPA /banip command can be used by normal players? Just looked at code... I see it at /unbanip has check but at /banip don't see it...
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,065
4,486
113
At your house.
github.com

coersum

Plugin Developer
Plugin Developer
Oct 9, 2014
77
5
8
47
Parts Unknown
I am just starting but done quite a few hours on it, I am wondering about something, I was trying to get the "Attacker" for buildinghurt, playerhurt and playerdeath events but there is only a Victim variable.
I modified the BuildingHurtEvent.cs and compiled Pluton with this:

Code:
using System;

namespace Pluton.Events
{
    public class BuildingHurtEvent : HurtEvent
    {
        public readonly BuildingPart Victim;
        public readonly Player Attacker;

        public BuildingHurtEvent(BuildingPart bp, HitInfo info)
            : base(info)
        {
            Victim = bp;
            Attacker = new Player(info.Initiator as BasePlayer);
        }
    }
}

I am not sure if this is the best/right way to get the attacker but it seems to work in my tests. It could be placed in PlayerHurt, PlayerDeath and other events where getting the attacker could be useful (or send the whole HitInfo directly).

Unless I missed a totally different way to get the attacker for those events.

Question 2:
I also made a pluggin to sethome/gohome by setting DataStore.Add("homelocation", Player.SteamID, ploc) (ploc = vector) which works great but when I "quit" and start the server again, the locations are gone.. do I have to save the locations or should Datastore save its arrays auto?
 
Status
Not open for further replies.