Home
Home
Register
Login

Resources
Forum






rssWeb Chat (webchat)

Category:misc
Author(s):mawej
Downloads:4674
Rate:You need to be logged in to vote
Rating:3.8 (39 Votes)
Description:
This resource is the web console, you can view last actions of players on your server via web.

Actual actions:
- Join
- Quit
- Chat
- /me
- TeamChat
- Kill messages
and other :).

You can add your own messages. Just call function or trigger event to add new message :).

Using:

* calling
call(getResourceFromname("webchat"), "addChatMsg", player or string, message, type, [r, g, b])

* event

- server side:
triggerEvent("addChatMsg", getRootElement(), player or string, message, type, [r, g, b])

- client side
triggerServerEvent("addChatMsg", getRootElement(), player or string, message, type, [r, g, b])

+ params

required
- player or string,
- string - message,
- string - type of message,

optional
- int [red, green, blue] if firs argument is string
if r,g,b == nil then r=0, g=0, b=0

You can also set limit of messages in Lua file :) by changing value of "ilosc".

Comments (15) | Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2009-07-23 16:22:28 First public release Download