Leaderboard
Popular Content
Showing content with the highest reputation on 05/23/20 in all areas
-
In the last period, an Italian RageMP community has emerged and this is the reason why I decided to create this topic. I think that when a community starts to emerge, it is necessary that the latter has a section in the native forum of the mod in order to communicate and expand the community itself (Italian one but even RageMP would expand). Another reason why I decided to create this topic is that the messages of the RageMP client have already been translated into Italian, so I was told that having achieved this goal, it would have been enough to create this topic and reach 30 likes to have an Italian section. So.. If you are interested in creating an Italian section, please like this post. And remember.. Italians do it better. RAGEMP ITALIA DISCORD: https://discord.gg/9G6wa4N1 point
-
1 point
-
Salutare, Pentru a intelege mai bine ce am de spus, o sa o fac sub formatul unui Q&A. Despre ce este vorba? De astazi am inceput dezvoltarea unui server de RAGEMP cu gamemodeul de tip RPG. La drum eu am pornit cu un set de idei, preluate mai mult sau mai putin de pe SAMP, pe care as vrea sa le implementez. De ce vrei sa faci un server? GTA 5 e un upgrade mare pentru mine de la SAMP si chiar mi-as dori sa existe un server de genu, iar momentan nu am vazut sa existe in Romania pe RAGEMP. De asemenea, sunt pasionat de programare si chiar lucrez in domeniu, coincidenta e ca pot dezvolta in C# .Net Core, limbaj si framework cu care lucrez si in prezent la locul de munca. Pe langa toate acestea, mi-am dorit mereu o comunitate de gaming, iar asta e un prilej de a o face. Cand ai de gand sa il lansezi? In momentul in care exista un minim de functionalitati de care sa beneficieze jucatorii si sa nu se plictiseasca, atunci va fi lansata o versiune BETA. In momentul in care versiunea BETA va aparea, va fi perioada cea mai buna pentru rezolvarea bug-urilor si implementarea unor noi functionalitati sau modificarea unora existente. Perioada BETA va sta atat timp cat este nevoie pana cand vom avea ceva stabil si care sa merite a fi deschis oficial. Ai nevoie de ajutor? Da, am nevoie de ajutorul vostru cu idei si sesizari, iar cand va fi lansat BETA o sa am nevoie de niste persoane care sa testeze cat mai bine functionalitatile. Vor exista rasplate pentru cei care vor ajuta, in masura in care o vor face. Cat despre echipa serverului, initial o sa ma ocup doar eu de administrare si dezvoltare, urmand ca in viitor sa aleg inca 2 persoane printre care una se va ocupa de forum si una de server (doar administrativ, nu si pe partea de dezvoltare). Stii cum trebuie sa arate un server de RAGEMP? Nu, chiar nu stiu, am intrat foarte putin pe servere de RAGEMP, dar am facut destul research incat sa ajung la concluzia ca aici vreau sa fac un server RPG. Ideile mele vin in mod special de pe SAMP, deci o sa aduc traditia de acolo pana aici + adaptarile aferente jocului si beneficiilor pe care le ofera GTA 5 vs GTA SA. Ce va pot spune, e ca imi doresc sa nu fie bazat pe Voice Chat, ci sa permit o combinare intre Voice Chat si Text Chat, astfel incat sa nu fie una dintre ele mai importanta, ci cat mai egale. E de lunga durata? O intrebare la care am un raspuns simplu. Atat timp cat am cu ce sa il intretin si sa il tin in picioare, atat va fi disponibil. Vor exista donatii pe server? Da, vor exista donatii, doar ca orice persoana care doneaza, va primii doar un avantaj de moment fata de restul jucatorilor. Prin asta vreau sa spun ca vor avea beneficii pe care orice alt jucator de pe server le poate obtine prin joc(Ex: 10 lei = 50000$). Cum am spus si mai sus, serverul va fi in picioare cat timp am cu ce sa il intretin, iar donatiile voastre ma vor ajuta sa fac asta mai usor sau sa pot imbunatatii calitatea jocului, cat si a intregii aparaturi (incepand de la dezvoltare pana la hostare, securitate, optimizare, promovare, etc.). De ce RPG? Eu in mare parte am jucat doar RPG pe SAMP, mi-a placut si nu pot spune ca m-a prins alt gamemode (RP, DM, etc.), prin urmare asta veti vedea. Cum aflu mai multe detalii despre acest proiect? Am creat un server de discord pe care putem discuta mai multe amanunte! Va astept! https://discord.gg/y9WTPnc1 point
-
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
-
Version 2.0
12991 downloads
Hello everybody. Some weeks ago i made a post on this forum's spanish section releasing my old gamemode, which I have been porting to RAGE:MP right after the bridge was released for the first time. In the beginning it was only in spanish, so I didn't thought it was a good idea to release to the whole community, as not so many people here speak spanish (I guess) but, after seeing that more people than I had expected downloaded it and also taking the suggestion George made me, I decided to start translating it and also, allowing to be multilanguage in a future. That above is the main reason I'm writing this post, I want to release here my gamemode (even if the link is already in this forum) so all the people using this excelent mod can just start their development with a base gamemode, instead of making it from the scratch. I have to say that it's not 100% ported and translated but I will be working on it in my spare time, meaning this won't be an abandoned project, it will have continuous support and development. Any suggestion for the gamemode, any question or any issue, you can contact me on the forum, sending a PM or posting here. One last thing I have to point out is that I know the gamemode is not documented but please, understand that I can't explain how all the systems inside work, as it's quite big. Anyway in a near future I will be adding some wiki or documentacion explaining briefly its contents and a guide to know the structure maybe.0 points
