View Single Post
  #12  
Old 11-21-2013, 11:58 PM
iDigzy iDigzy is offline
Registered User
Join Date: Apr 2013
Posts: 44
iDigzy is on a distinguished road
Well I have absolutely no clue how to trigger the server, after reading a little on it, this is what I have made (not sure if it makes sense though). Hopefully someone can help me fix/understand it D:?
Quote:
function onActionServerSide(a) {
if (cmd == "testing") {
triggerClient("test", this.name, "testing");
}
}

//#CLIENTSIDE
function onPlayerChats() {
if (player.chat = "test") {
triggerServer("test", this.name, "testing");
}
}

function onActionClientSide(a) {
if (cmd == "testing") {

player.chat = "elephants";
triggerServer("test", this.name, "testing");
}
}
Reply With Quote