I have been searching the forums, but can't seem to find any codes on it.
I want to create a new level that adds to the file browser and what not through a weapon..
PHP Code:
function onActionServerSide(){
if (params[0] == "create"){
//Make level with name set as params[1]
}
}
//#CLIENTSIDE
function onKeyPressed(code, key){
if (key == "p"){
triggerserver("weapon", this.name, "create", "level"@player.account@".nw");
}
}
Through my research, the only thing I could seem to find on this is the copylevel() function..
NOTE:
The NPC server has all folder rights so that shouldn't be an issue