Search results

  1. balu92

    Solved Add a prefix?

    'ChatMessage.NewText="";' causes that error var ChatMSG = ChatMessage.ToString().slice(1, ChatMessage.ToString().Length); // to remove the apostrofs
  2. balu92

    Solved Add a prefix?

    color must be string: "[color #00ff00]" + ChatMSG there is NO: ChatMessage.toString() there is: ChatMessage.ToString()
  3. balu92

    Solved Add a prefix?

    try this: if(Player.Admin)){ var ChatColour = Prefix.AdminChatColour; Server.BroadcastFrom("[Admin]" + Player.Name, ChatColour + ChatMessage.ToString()); ChatMessage.NewText = ""; return; }
  4. balu92

    Solved Add a prefix?

    I don't think ChatString has the java .toString(), as it's not a string itself, it has an overriden c# ToString() that you could use instead or: ChatMessage.origText.toString() or: String(ChatMessage)
  5. balu92

    Solved Add a prefix?

    probably [color red] is not supported format, try: [color #ff0000] ?
  6. balu92

    Solved Add a prefix?

    second look: if(!Plugin.IniExists("Settings")){ var ini = Plugin.CreateIni("Settings"); ini.AddSetting("Settings","AdminChatColour","[color red]"); ini.Save(); // save it } var ini = Plugin.GetIni("Settings"); DataStore.Add("Prefix","AdminChatColour"...
  7. balu92

    Solved Add a prefix?

    first look: Server.BroadcastFrom("[Admin] "+ Player.Name, ChatColour ChatMSG); Server.BroadcastFrom("[Admin] "+ Player.Name, ChatColour + ChatMSG);
  8. balu92

    Good job

    I think under plugins, he meant Oxide, Essentials, etc..
  9. balu92

    Important Player.SteamID

    +1 for offline player
  10. balu92

    This. Remember?

    Challange accepted! ;)
  11. balu92

    IronPython needs testers

    Multiple DestroyEvents are fixed Undefined/null WeaponNames are fixed WeaponName can be: "Explosive Charge", "F1 Grenade", "Hunting Bow", "Mutant Bear Claw", "Bear Claw", same with wolf the default is: "Bleeding", if it's "Bleeding" it can be radiation, starving, fall dmg... I can't fix that...
  12. balu92

    IronPython needs testers

    That's the spirit! :D I want to know about everything that is not working as expected!
  13. balu92

    IronPython needs testers

    I need more help in python, so I'm totally ok with that. ;)
  14. balu92

    IronPython needs testers

    Well, that is what it is all about. Test the features, report back, create pull requests, throw some new idea at me. I'm a noob in Python, I only dumped the object's of hooks as a test. I think the EntityDestroy event can be problematic if you it in more than one plugin. To be honest I was lazy...
  15. balu92

    IronPython needs testers

    whoops, I forgot about that readme... there is one in the release, read that for now :confused: Edit: just updated Readme.md, but it's not formatted properly
  16. balu92

    IronPython needs testers

    IronPythonModule is the new way of creating plugins, its not an official plugin, yet. Github: https://github.com/balu92/IronPythonModule IronPythonModule is in pre-open-alpha-beta-early-access phase (did I miss any of the popular tags?) Current version: 1.0.3 Read the Readme, ask the questions...
  17. balu92

    Approved GatherPlus

    nothing should be inside a "switch" but outside the "default" or a "case"
  18. balu92

    This. Remember?

    Thanks for that. ;) So, is it a comeback?
  19. balu92

    Tips for Datastore / DataStore.Save();

    It was meant to use it as you will, I guess! Its just not safe to call, when ppl store players and vector3s and who knows what in the ds.
  20. balu92

    Tips for Datastore / DataStore.Save();

    You shouldn't call .Save() manually, ever. Why? Because of serialization and other errors. (some dev will store non-serializable data in the ds in runtime, you can't do anything about that, unless you do everything for yourself). DataStore should be saved more often and not just when at...