Jump to content



Recommended Posts


When using onSettingChange event.

Is it possible to pass as an argument, the player who changes the setting?

I remember I saw this somewhere as an example, they were passing these arguments to the function:

function(theSetting, oldValue, newValue, thePlayer)

I've tested but thePlayer is nil..


When a setting gets changed it displays in the chatbox a message.

Ex: Set 'inkcw.changeMapTime' to '123'

How is this message displayed only to the player who changes the setting?


Link to comment

Maybe the resource uses a client -> server -> client path for changing settings.

Example: you click on a button to change a value of a setting -> the client sends your data to the server and then if successful triggers a callback client event that will output in the chatbox that message (as it is only visible to you if it is used clientside).

Link to comment
I wonder how the message "Set 'inkcw.changeMapTime' to '123'" is only displayed to the player who changes the setting.. :\

Well, it's quite easy, the admin panel sends each action to the server side, which includes the admin who did the action, it doesn't output that message using that event.

Link to comment

I searched Server and Client files of the Admin resource. I didn't find the line where it sends the message to the server.


But I found something,

I found this event like this:

addEvent("onSettingChange", false) 
addEventHandler("onSettingChange", root, 
function(name, oldvalue, value, playeradmin) 

It's plassing a 4th argument

Link to comment

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...