roni-sl / r-leveling-system Goto Github PK
View Code? Open in Web Editor NEWSimple leveling system for DarkRP(but will work with other gamemodes too)
License: MIT License
Simple leveling system for DarkRP(but will work with other gamemodes too)
License: MIT License
What is the job code for the levels to enabled it for jobs exemple?
How many Mins is X? or can i change it somehow?
Simple leveling system that can be used not only in darkrp
Features
Compatible with any gamemode
Compatible with addons that work with Vrondakis leveling system
Compatible with Job System | Job Employer NPCs
Has darkrp integration
Easy module system
Easily configurable
Compatible with MySQL(MySQLoo, tmysql4) or just sqlite
For devs
That hooks is available:
Serverside:
RLS.OnLevelChange(Player ply, number level): nothing to return
RLS.OnExpChange(Player ply, number exp, bool is_level_updated): nothing to return
RLS.UpdateExpAmount(Player ply, number exp): return number exp
Suggest your modules please
If you have ideas for a module or compatibility with an addon, just open Issue
ToDo
TTT support
Murder support
Lua Error:
[r-leveling-system-master] addons/r-leveling-system-master/lua/r_level_modules/time_exp.lua:12: attempt to call method 'AddExp' (a nil value)
1. unknown - addons/r-leveling-system-master/lua/r_level_modules/time_exp.lua:12
[r-leveling-system-master] addons/r-leveling-system-master/lua/r_level_modules/time_exp.lua:12: attempt to call method 'AddExp' (a nil value)
1. unknown - addons/r-leveling-system-master/lua/r_level_modules/time_exp.lua:12
Timer Failed! [RLS.time_exp:76561198969840992][@addons/r-leveling-system-master/lua/r_level_modules/time_exp.lua (line 10)]
Here is the lua error that appears in the console
attempt to call method 'AddExp' (a nil value)
Привет. Привет. Как можно сделать так, чтобы награда выдавалась только при получении уровня?
Хук hook.Run("RLS.OnLevelChange", self, lvl) вызывается даже при повторном подключении к серверу и награду можно получать просто перезаходя на сервер.
hook.Add("RLS.OnLevelChange", "OnLevelChange", function(ply, lvl)
if lvl == 2 then
RLS:NotifyAll(ply, " получил 2 уровень!")
ply:AddFrags(10)
elseif lvl == 3 then
RLS:NotifyAll(ply, " получил 3 уровень!")
AddFrags(10)
elseif lvl == 4 then
RLS:NotifyAll(ply, " получил 4 уровень!")
AddFrags(10)
elseif lvl == 5 then
RLS:NotifyAll(ply, " получил 5 уровень!")
AddFrags(10)
else
print("RLS.OnLevelChange - Error")
end
if lvl >= 6 then
ply:SetLevel(1)
end
end)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.