Garry's Mod

Level XP

Submitted by lablackpvp97120, , Thread ID: 80030

Thread Closed
lablackpvp97120
Closed Account
Level:
0
Reputation:
0
Posts:
13
Likes:
1
Credits:
10
15-03-2018, 12:20 AM
#1
Salut tous aujourd'hui nouvelle vido tutoriel sur comment mettre un systme de level et des job en lvl/addon pour possdez des levels sur son serveur Garry's Mod en franais. Nhsitez pas laissez un like et vous abonnez. Instalation : tu extraits ton dossier dans : /addons/darkrpmodification/lua/darkrp_modules/ Configuration : /addons/darkrpmodification/lua/darkrp_modules/sh_config.lua Ajouter un level au mtier : /home/bhop-server/serverfiles/garrysmod/addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua et en fin de ligne du mtier tu ajoutes le texte suivant : level = TON LVL

------------------------------------------------------------------------------------------------
Le Lien des levels: https://github.com/vrondakis/Leveling-System Mais il y a aussi celui la : https://www.gmodstore.com/scripts/view/8...our-server ou par le workshop http://steamcommunity.com/sharedfiles/fi...=270216963
------------------------------------------------------------------------------------------------
Ligne de code partager par: https://www.mtxserv.fr/forums/members/jean-foret.70764/
tu dois aller dans /addons/ULX/lua/ulx/modules/sh/ Puis creer un fichiers genre " levels" ( ou niveau ) .lua et tu met dedans function ulx.addXP(calling_ply, target_ply, amount) if not amount then ULib.tsayError("Amount not specified!") return end if target_ply.DarkRPUnInitialized then return end target_ply:addXP(amount, true) DarkRP.notify(target_ply, 0,4,calling_ply:Nick() .. " Vous a donn "..amount.."XP") ulx.fancyLogAdmin(calling_ply:Nick() .. ' gave '..target_ply:Nick()..' '..amount) end local addXPx = ulx.command("Levels", "ulx addxp", ulx.addXP, "!addxp") addXPx:addParam{type=ULib.cmds.PlayerArg} addXPx:addParam{type=ULib.cmds.NumArg, hint="xp"} addXPx:defaultAccess(ULib.ACCESS_ADMIN) addXPx:help("Add XP to a player.") function ulx.setLevel(calling_ply, target_ply, level) if not level then ULib.tsayError("Level not specified!") return end if target_ply.DarkRPUnInitialized then return end DarkRP.storeXPData(target_ply,level,0) target_ply:setDarkRPVar('level',level) target_ply:setDarkRPVar('xp',0) DarkRP.notify(target_ply, 0,4,calling_ply:Nick() .. " a mit votre niveau "..level) ulx.fancyLogAdmin(calling_ply:Nick() .. ' set '..target_ply:Nick()..' level to '..level) end local setLevelx = ulx.command("Levels", "ulx setlevel", ulx.setLevel, "!setlevel") setLevelx:addParam{type=ULib.cmds.PlayerArg} setLevelx:addParam{type=ULib.cmds.NumArg, hint="level"} setLevelx:defaultAccess(ULib.ACCESS_ADMIN) setLevelx:help("Set a players level.")


------------------------------------------------------------------------------------------------

RE: Level XP

ItsAicdPlayz
Closed Account
Level:
0
Reputation:
0
Posts:
5
Likes:
0
Credits:
5
15-03-2018, 01:21 AM
#2
is this a good addon i really don't know what this does?

Users browsing this thread: 1 Guest(s)