Garry's Mod Leaks

DarkRP levels - Rprint xp system

Submitted by Twitchyb1t, , Thread ID: 16453

Thread Closed
Twitchyb1t
Banned
Level:
0
Reputation:
0
Posts:
138
Likes:
4
Credits:
18
06-01-2016, 07:33 PM
This post was last modified: 06-01-2016, 10:11 PM by Twitchyb1t
#1
DarkRP levels system Rprint XP system

Here I will not just provide the addon Rprint (darkRP levels is free on the workshop link below)
The code is already in my version of Rprint and if you do not have darkrp levels you dont have to delete any code.
I have put these images here to show you guys how the printers give xp

Path: rprint/lua/entities/rprint_base/init.lua Line 179
[Image: 3969e68f306a807abda8e5d763ed4040.png]


Path: rprint/lua/rprint/sh_config.lua Line 10
[Image: 567a9fad5014af56391e2ddfbad53117.png]


Now where we add our own printers we can use the Levelsystem parameter (will be used so you have to be a certain level to buy)
[Image: c003909d2964b21c01bd648e3644b226.png]


Path: rprint/lua/rprint/sh_rprint.lua Line 60
[Image: c10112326b3502da12ff56421b44ffe1.png]

This is the most confusing part of the code I implemented.
It's job is to give an error if you have not given it a prefix

Path: rprint/lua/rprint/sh_rprint.lua Line 119
[Image: 6a4c0947d7aceb1654362fbee0d921f4.png]

Here we are localizing the entity parameter we know as Levelsystem to the shared file.
This allows us to use the darkrp functions such as darkrp spawning through f4 / cmd and in our case the darkrp levels system.
we can then add the level sysstem parameter as a variable in AddEntity so that all our rprint printers have a default level requirement of 1 or a specified level in the printer config file.

Content locked
This content has been locked. Please login or register in order to unlock it.

RE: DarkRP levels - Rprint xp system

Andrey
Banned
Level:
0
Reputation:
0
Posts:
12
Likes:
0
Credits:
0
23-12-2016, 04:12 PM
#2
Clearly I do HL2Rp server and add this script Thanks

RE: DarkRP levels - Rprint xp system

Deleted_56020
Newbie
Level:
0
Reputation:
0
Posts:
19
Likes:
0
Credits:
8
07-01-2018, 09:22 AM
#3
Holy crap thanks! I was looking for this everywhere and I found it!

RE: DarkRP levels - Rprint xp system

hodomododo
Lurker
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
4
07-01-2018, 11:56 AM
#4
Good script man. I could use more scripts like this for sure

RE: DarkRP levels - Rprint xp system

Xlucas13
Closed Account
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
6
07-01-2018, 02:14 PM
This post was last modified: 07-01-2018, 02:32 PM by Xlucas13
#5
Good script man. I love u my friends, it's work for me

Merci mec pour ce codage, continue comme sa mec et sa marche bien bien

RE: DarkRP levels - Rprint xp system

Juulemanden
Closed Account
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
4
07-01-2018, 04:36 PM
#6
Great man!! its so nicely of you to give it away! i love you man! THANKS!

RE: DarkRP levels - Rprint xp system

Ankw
Newbie
Level:
0
Reputation:
0
Posts:
13
Likes:
0
Credits:
18
07-01-2018, 04:47 PM
#7
Doesnt work for me. I dont know why. But some error.

RE: DarkRP levels - Rprint xp system

Deleted_56020
Newbie
Level:
0
Reputation:
0
Posts:
19
Likes:
0
Credits:
8
16-01-2018, 01:23 AM
#8
Hey the xp system isn't working but the level system works perfect, think you could help me out?

Users browsing this thread: 1 Guest(s)