Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/22/19 in Posts

  1. California Roleplay is a medium roleplaying server set in the Los Santos and Blaine County area. We originally created this community for a previous multiplayer modification called GTA:MP. We are looking forward to hopefully soon opening our server to the public and making Rage:MP our permanent home. Website: http://ca-rp.com
    1 point
  2. Не могу зайти в свой акк, не играл 3 месяца. пишет, что пароль не верный, сделал восстановление, пришел на почту запрос со сменой пароля, на сайт заходит, в игру нет. Новый акк на это мыло не регается, пишет что на него уже зарегистрировано, кто сталкивался, как быть?
    1 point
  3. Добрый день! Описание проблемы: В прошлом году играл в RAGE MP и все было нормально не считая того что железа которое я использовал не тянула в полной мере игру. Спустя длительно время поменял компьютер, решил возобновить игру в RAGE MP и столкнулся с проблемой: логина я не помню как и почту (перерыл все свои почты, нет ни одной, с упоминанием RAGE MP), при создании нового аккаунта система пишет что на мой socket club уже зарегистрирован аккаунт. Как восстановить мне аккаунт?
    1 point
  4. Update 1.5.5 Additions Added a new business type : business created generic items, allowing you to prepare / order items that you will directly name with the following command: /createitem goods,recipe item_name This new script allows the creation of restaurants, music stores, video stores, video game stores, art galleries, or whatever else you'll come up with your imagination! Property Management will define a specific perimeter to your business so that you and your employees will know what they can order or not. A restaurant will be able to do for example /createitem recipe Carbonara Pasta : More information are available on https://forum.gta.world/en/index.php?/topic/12991-business-created-items-restaurants-book-stores-video-game-stores/ In order to request a custom item store, use Request a Shop. Choose "Custom Item Store" and then if you would like to request it inside a property you already own, make sure you select that property. Otherwise if you wish for it to be outside, leave select a property blank. Added a new business type : Liquor store. You can now sell alcohol directly in your shop to other players! All these new businesses can be requested through UCP If you wish to own / lease one : https://ucp.gta.world/property-requests/request Added 4 new sitting animations and new adult animations Fixes Fixed a bug related to items drops on death: Items will not disappear anymore If you pick them up from a dead person Removed the broken animation from /radio Fixed a bug preventing some property markers to spawn Fixed 2 server crashes
    1 point
  5. @Patro na serwerze nie obowiązują zasady RP. Każdy kto zechce może grać na serwerze, tak samo jak w GTA 5. @DOKMWI system lspd dopiero rozbudowujemy. Nie będzie policji takiej jak na serwerach RP. Jeżeli ktoś posiada inne pytania, lub chce śledzić rozwój serwera zapraszamy na Discorda. Przygotowujemy update zmieniający gospodarkę i ekonomie w grze. Dodamy także nowe prace, więc na pewno będzie ciekawie!
    1 point
  6. Doubt any one is going to donate without any sort of community established, let alone development screenshots. Right now, you're just a post.
    1 point
  7. Mit diesem kleinen Tutorial könnt Ihr MongoDB als Datenbank verwenden Im Hauptordner des Servers folgendes ausführen: npm install mongoose Alle folgenden Snippets werden Serverseitig verwendet, z.B. im Ordner "packages/mongo" index.js var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost:27017/dbname', {useNewUrlParser: true}); Jetzt benötigen wir noch ein paar Klassen, z.B. im Unterordner "packages/mongo/Classes" accounts.js var mongoose = require('mongoose'); var Schema = mongoose.Schema; var accountsSchema = new Schema({ socialClub: String, registered: { type: Date, default: Date.now }, registerIP: String, lastIP: String, lastConnect: { type: Date, default: Date.now }, isOnline: Boolean, playTime: Number, isAdmin: Boolean, isSupporter: Boolean, isIngameSupporter: Boolean, isDeveloper: Boolean, isWhitelister: Boolean, isCop: Boolean, isMedic: Boolean, isACLS: Boolean, isJustice: Boolean, rankCop: Number, rankMedic: Number, rankACLS: Number, rankJustice: Number, lastDisconnect: { type: Date, default: Date.now }, }); exports.model = accountsSchema; Jetzt binden wir diese Klasse in unsere index.js ein: ... var Schema = mongoose.Schema; var accounts = require('./classes/accounts.js'); exports.accounts = accounts.model; Jetzt wollen wir in einem anderen Modul diese Collection nutzen login.js var mongoose = require('mongoose'); var db = require('../mongo/index.js'); var accounts = mongoose.model('accounts', db.accounts); Ok wir haben nun Zugriff auf die Datenbank und das Schema für die Documents Wir prüfen ob ein Spieler bereits einen Account hat in der login.js, dafür kann "playerReady" oder "playerJoin" verwendet werden, ich prüfe das erst nach dem Download der client_packages: mp.events.add('playerReady', (player) => { accounts.findOne({ 'socialClub': player.socialClub }).then(function (account) { if(account) { // Ja, account gefunden } }); }); Jetzt werden wir den Account aktualisieren: accounts.findOne({ 'socialClub': player.socialClub }).then(function (account) { if(account) { var now = new Date(); accounts.updateOne(account, { $set: { 'lastConnect': now, 'isOnline': true, 'lastIP': player.ip } }); } }); Das geht aber auch noch komfortabler: accounts.findOne({ 'socialClub': player.socialClub }).then(function (account) { if(account) { var now = new Date(); account.lastDisconnect = now; isOnline = true; playTime = account.playTime + (now - account.lastConnect); account.save(); } }); Beim Serverstart alle Accounts auf Offline setzen: accounts.updateMany( { 'isOnline': true }, { $set: { 'isOnline': false } } ); Sollte kein Account vorhanden sein, legen wir einen an: function newAccount(player) { var now = new Date(); var adoc = new accounts({ 'socialClub': player.socialClub, 'registered': now, 'registerIP': player.ip, 'lastIP': player.ip, 'lastConnect': now, 'isOnline': true, 'playTime': 0, 'isAdmin': false, 'isSupporter': false, 'isIngameSupporter': false, 'isDeveloper': false, 'isWhitelister': false, 'isCop': false, 'isMedic': false, 'isACLS': false, 'isJustice': false, 'rankCop': 0, 'rankMedic': 0, 'rankACLS': 0, 'rankJustice': 0 }); adoc.save().then(function(adoc) { mp.events.call("loadCharacter", player); }); } Ich hoffe das dies euch unterstützt, falls ihr mal mit MongoDB arbeiten wollt.
    1 point
×
×
  • Create New...