PHP Code:
function onActionServerSide(pa,plx,ply) {
if(pa == "board") {
triggerclient("weapon",this.name,pa,plx,ply);
}
}
//#CLIENTSIDE
function onTimeout() {
if(onwater(player.x,player.y) && this.waterTimer == 0) {
triggerserver("weapon",this.name,"board",player.x, player.y);
}
this.waterTimer += 1;
if(this.waterTimer >= 3)this.waterTimer = 0;
setTimer(0.05);
}
function onActionClientSide(pa,plx,ply) {
if(pa == "board") {
putleaps(5,plx,ply);
}
}
The above code doesn't seem to work. It only displays the water splash leap on my screen, not the others screen. Yes, they do have this weapon also. The putleaps() function only works on the Clientside correct? So how would I make it display to the other players (serverside)?