Module:Sockets
I proudly present you ml_sockets a c++ extension for mta 1.0, it was made by Gamesnert, MCvarial & x86.
The module adds socket functions & events to mta, sockets are used for communication between computers.
See wikipedia for more info: http://en.wikipedia.org/wiki/Internet_socket
Installation:
- download ml_sockets (https://wiki.multitheftauto.com/wiki/Modules/Sockets)
- place ml_sockets in (..server\mods\deathmatch\modules)
- add the module to your mtaserver.conf ( or for linux)
- restart the server
Functions:
- socket sockOpen( string host, int port )
- bool sockWrite( socket theSocket, string data )
- bool sockClose( socket theSocket )
Events:
- onSockOpened source: N/A Args: socket theSocket
- onSockData source: N/A Args: socket theSocket, string data
- onSockClosed source: N/A Args: socket theSocket
Support for listening sockets will be added later.
More info: https://wiki.multitheftauto.com/wiki/Modules/Sockets
Download: http://code.google.com/p/multitheftauto-modules/downloads/list
Resource:irc
The first resource to make use of this module is called irc made by MCvarial.
Its a resource that creates a echobot on irc.
Installation:
- download the resource https://community.multitheftauto.com/index.php?p=resources&s=details&id=731
- download ml_sockets (https://wiki.multitheftauto.com/wiki/Modules/Sockets)
- place ml_sockets in (..server\mods\deathmatch\modules)
- add the module to your mtaserver.conf ( or for linux)
- change the settings (settings.xml in the resource)
- give the resource admin rights
- start the server
- start the resource
Commands:
!uptime level: 0
!say level: 0
!s level: 0
!players level: 0
!pm level: 0
!getip level: 2
!getserial level: 2
!mute level: 2
!unmute level: 2
!freeze level: 2
!unfreeze level: 2
!kill level: 2
!slap level: 2
!ban level: 3
!banip level: 3
!banserial level: 3
!banname level: 3
!unbanip level: 3
!unbanserial level: 3
!unban level: 3
!bans level: 3
!start level: 3
!restart level: 3
!stop level: 3
!commands level: 0
!cmds level: 0
!run level: 4
!crun level: 4
Levels
owner (~) 5
super admin (&) 4
admin (@) 3
halfop (%) 2
voice (+) 1
user () 0
The bot was tested on GTANet, FFSNetwork, Rizon & quakenet
The resource is still in beta stage, more functions & bugfixed will be added later.