Jump to content

Shoutbox script


koeno100

Recommended Posts

Posted

I am making a script to display the shouts that are made on my website in the server.

Currently I'm constantly querying the database where all the shouts are stored, but that would cause a lot of lag since I'm using a timer, and sometimes it skips shouts or doubles shouts.

Is there a way I can for example write a function that when someone shouts something, it triggers a certain function in the LUA script through PHP or something like that?

  • MTA Team
Posted

You can use sockets. Use the socket module and take a look at the irc resource, which makes use of the module, to understand the technique.

Posted
You can use sockets. Use the socket module and take a look at the irc resource, which makes use of the module, to understand the technique.

Do you know any examples of this kind of script, because I want to do similar stuff

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...