Quote:
Originally Posted by Astram
Sorry, Im new to scripting. Can you give me an example? 
|
PHP Code:
function onActionServerSide(temp.cmd) {
if (temp.cmd == "createHouse") {
if (player.clientr.phouse2 == null) {
copyLevel("toad-level1.nw", "world/phouse/house_" @ player.account @ ".nw");
// no "levels/" in the path
}
}
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "create house") {
triggerServer("gui", this.name, "createHouse");
}
}
and then give the NPC-server the rights
Quote:
|
rw levels/world/phouse/house_*.nw
|
Haven't tested but it should work.