David_Sibirkin Posted March 8, 2017 Share Posted March 8, 2017 Как сменить виртуальный мир ? Требуется для регистрации/авторизации Link to comment Share on other sites More sharing options...
Weizik Posted March 8, 2017 Share Posted March 8, 2017 "setdimension": (player, args) => { let id = parseInt(args[1]); if(global.dimensions[id] && global.dimensions[id] > 63) { player.outputChatBox("Dimension is full"); } else { if(global.dimensions[id]) { global.dimensions[id]++; global.dimensions[player.dimension]--; player.dimension = id; player.outputChatBox("You have set your dimension!"); } else { global.dimensions[id] = 1; global.dimensions[player.dimension]--; player.dimension = id; player.outputChatBox("You have set your dimension!"); } } }, Кусок кода с исходника. Попробуй сам разобраться. 1 Link to comment Share on other sites More sharing options...
David_Sibirkin Posted March 8, 2017 Author Share Posted March 8, 2017 Спасибо, разобрался) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now