Search results

  1. DreTaX

    C# CODE

    Nope. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Fougerite; namespace TestPlugin { public class TestPlugin : Fougerite.Module { public override string Name { get { return "Name"...
  2. DreTaX

    Please help me

    function On_PluginInit() { DataStore.Flush("Players"); var ini = Datas(); var keys = ini.EnumSection("Settings"); for (var count in keys) { DataStore.Add("Players", count, ini.GetSetting("Settings", count)); } } function Datas() { if (!Plugin.IniExists("Datas"))...
  3. DreTaX

    C# CODE

    http://fougerite.com/threads/c-plugin-development-guide.543/ Missing : Fougerite.Module Your method is not in the class.
  4. DreTaX

    Solved C# Plugin - Random Crash with threading

    So he is still connecting but he gets disconnected. Humm.
  5. DreTaX

    On_PlayerApproval

    When the player is not logged in and still authenticating.
  6. DreTaX

    Please help me

    ?
  7. DreTaX

    Please help me

    var entity = World.Spawn("prefabnamehere", Player.Location, 1); OR var vector = Util.CreateVector(x, y, z); var entity = World.Spawn("prefabnamehere", vector, 1); inv.AddItem("M4", 1);
  8. DreTaX

    Please help me

    var entity = World.Spawn("prefabnamehere", Vector3, count); var inv = entity.Inventory; PrefabList
  9. DreTaX

    Please help me

    The only thing I see is that you are using Jint and Magma at once. But you have the plugin in both of them? Jint Engine doesn't have the ini methods (I wonder why didn't @mikec add them before), try putting them only in the magma engine.
  10. DreTaX

    Please help me

    Apologize me, I wrote a faulty code. Im so used to python that I keep not using vars. https://db.tt/q8zuVo8G function On_PluginInit() { var ini = DatabaseIni(); Util.Log(ini.GetSetting("Settings", "BroadCast")); } function DatabaseIni() { //Util.Log("1"); if...
  11. DreTaX

    Please help me

    It should work. Try this for example. function DatabaseIni() { if (!Plugin.IniExists("Database")) { Database = Plugin.CreateIni("Database"); Database.AddSetting("Settings", "BroadCast", "Welcome!"); Database.Save(); } return Plugin.GetIni("Database"); }...
  12. DreTaX

    Please help me

    Your code lacks a bracket... Yours: if (cmd == "info") { if (DataStore.Get("Ranks", Player.SteamID) == 1) { Server.Broadcast("Nice"); } else { Server.Broadcast("Noob"); } Correct: if (cmd == "info") { if (DataStore.Get("Ranks", Player.SteamID) == 1) {...
  13. DreTaX

    StackSizes

    https://db.tt/9lUksCLu https://www.dropbox.com/pri/get/TechSmith/2016-03-20_10-34-04.gif?_subject_uid=136953717&w=AABY3aTf9ALXe_1qBwCFC4ohLSmyuK7iNdKpDLt7qatoRg&raw=1
  14. DreTaX

    StackSizes

    Seems like It is possible to modify the stack sizes for some of the items It is possible to modify weapon stats I think It's even possible to create ITEMS, and Attachtments. That would give a possiblity to create a drum magazine for example for the M4. I think It's also possible to make use...
  15. DreTaX

    StackSizes

    # -*- coding: utf-8 -*- __title__ = 'StackSizes' __author__ = 'Jakkee' __version__ = '1.0' import clr clr.AddReferenceByPartialName("Fougerite") import Fougerite class StackSizes: def On_ItemsLoaded(self, ItemsBlocks): ini = Plugin.GetIni("Settings") keys =...
  16. DreTaX

    Solved C# Plugin - Random Crash with threading

    Do a check before you do that. It might help. if (pl.IsOnline) { pl.Disconnect(); }
  17. DreTaX

    Solved C# Plugin - Random Crash with threading

    This threading system I made for Pluton succeeded the most far utmost, while my other mates never believed me It was possible to do an active threading system in iron python, I did It. :D Maybe a little modification like this in @Jakkee 's plugin can do It. __title__ = 'CountryBlackList'...
  18. DreTaX

    Solved C# Plugin - Random Crash with threading

    I think uLink hates threading. Is this because of the GeoIP request lagg thingy?
  19. DreTaX

    On_VoiceChat

    I checked It out. It gets called when there are players around you only. https://db.tt/M2s0Alnm
  20. DreTaX

    Approved No Flooding

    I see