Jump to content

adamix

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by adamix

  1. Too late for me... i have been done two versions of my MTA:SA Hook early...
  2. I posted the source code @ GoogleCode: http://code.google.com/p/mtamono !
  3. Of course it can! With some limitations, but still it can! Im working on these right now, some small results: string guid = ClientRPC.Call(player.GetAsPlayer(), "isMTAWindowActive"); ClientRPC.Answer += (g, a) => { if (g == guid) { if((bool)a.var == false) Chat.OutputChatBox("Your window is inactive!"); } };
  4. MTAMono is a module that does bridge between Lua and .Net worlds! It uses Mono framework(http://mono-project.com), .Net-based wrapper, C module and small lua script! It is in a beta stage, but many server features already working good. Example of a small script: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Timers; using MTAAPI; namespace MTAAPI_Sample { public class Events : IIEvents { public static void onConsole(Element source, string text) { string[] args = text.Split('|'); Console.WriteLine("OnConsole: " + text); } public static void onPlayerJoin(Element player) { Player p = player.GetAsPlayer(); Simple.SpawnPlayer(p); Chat.OutputChatBox("Player " + p.GetName() + " joined!", Element.Root, 255, 0, 0, false); } public static bool onPlayerChat(Element player, string message, int messageType) { Console.WriteLine("CHAT: " + player.GetAsPlayer().GetName() + " : msg: " + message); Chat.OutputChatBox(player.GetAsPlayer().GetName() + ": " + message, Element.Root, 0, 255, 0); return false; } } public class Binds : IIBinds { public static void keyBind(Element player, string key, string keyState) { Console.WriteLine("keyBIND! + " + key + " " + player.GetAsPlayer().GetName()); } }; public class Simple : IPlugin { public string GetPluginName() { return "Simple"; } public void Startup() { Console.WriteLine("Simple startup"); MTAAPI.Events.HandleEvent("onPlayerJoin"); MTAAPI.Events.HandleEvent("onConsole"); MTAAPI.Events.HandleEvent("onPlayerChat"); } public static void SpawnPlayer(Player p) { p.Spawn(10.0f, 10.0f, 15.0f); Camera.Fade(p, true); Camera.SetCameraTarget(p, p); Vehicle v = new Vehicle(411, 15.0f, 15.0f, 10.0f); p.WarpIntoVehicle(v); v.SetDamageProof(true); Blip b = new Blip(v); p.GiveMoney(5000); p.SetDoingGangDriveby(true); } } } You can download it from: Module and wrapper: http://unix-net.ru/MTAMono_win32.zip (Win32 binary) http://unix-net... (Linux 32bit - coming soon!) Mono class libraries: http://office.web-hunter.ru/MTAMono_classlibs.rar Okay, installation Extract MTAMono_win32.zip to your server folder Add MTAMono.dll module to "modules" section of your mtaserver.conf Extract MTAMono_classlibs.zip to mods\deathmatch\modules\ Add mtamono resource to your mtaserver.conf Start the server! You will see the Simple script working. For writing your own scripts theres an "src" folder, just open MTAAPI_Simple.csproj, add mods\deathmatch\modules\MTAMonoNet.dll to references and start coding! Documentation with linux version and source code will come soon.
  5. Сломали за 60-80 ревизий
  6. Какая внезапность. Создали через полтора года после моего реквеста. Ну чтож, улыбаемся и машем!
  7. 5k downloads. Congratulations! Post edited, Moderation
  8. Made just4lulz: http://unix-net.ru/nyaaa.mp3
  9. Currently i'm working on amx-emulator. I need testers! http://mtasa.info/amx.zip What need to test: SA-MP 0.3 Dialogs. Functions in a_amx.inc.
  10. The trouble is, we do not want to mantain contributions to MTA via two different control systems. Even if we mirror changes to GIT, any contributions via GIT will be rejected. It's too much work to have to moderate two seperate sets of contributions. i know, but GIT developers can provide modified patches for SVN.
  11. I think it is quite possible to implement. I looked at the script rule of arc_, there is implemented such a system only for calling the server functions for client. It is possible to adapt it to calling client functions from server.
  12. Objective: To realize the object on the server with which you can call functions of the client. Example: client = Client.new (clientElem); client.setGarageOpen (1, true); and the object on the client, with which you can call the server functions. Example: server.createPed (1, 1024, 1024, 1024); Waiting for your ideas and examples. Sorry for my english.
  13. What prevents open source code in order to study? I have never been able to find a complete list of memory addresses VC.
  14. I support SugarD-x. MTA Team, please, open the source code for MTA 0.5 VC / 3.
  15. this is doesn't work on 94/111 nightly builds. On 'start amx-test' MTA Server crashes with message 'Unhandled Exception'.
×
×
  • Create New...