- Initiateur de la discussion
F
FivesLCK
Geek
- Messages
- 24
- Score réaction
- 0
- Points
- 65
Bonjour à tous, j'ai actuellement un serveur Garry's mod de 20 slots, et là je bosser sur les jobs, et je n'arrive pas à mettre le job "ScoutTrooper" dans le groupe que j'ai créer "ScoutTrooper", j'ai suivit deux tuto :
http://www.jeuxvideo.com/forums/42-3000777-38252961-1-0-1-0-tuto-creer-son-darkrp.htm
https://mtxserv.com/forums/threads/job-vip.159/
Dans les deux "tutos", ils disent de mettre les 3 lignes suivante juste après la ligne
"candemote = false" (n'oubliez pas de mettre une virgule après le false). :
customCheck = function(ply) return CLIENT or ply:getNWString("usergroup") == "LE NOM DU GROUPE CREER" or ply:IsAdmin or ply:IsSuperAdmin end,
CustomCheckFailMsg = "MESSAGE SI LE JOUEUR EST PAS VIP",
Malheureusement quand je fais ça, et que je reboot mon serveur, il n'y plus aucun job, alors que avant de mettre les 3 lignes cité au dessus, il n'y a rien, les jobs sont bien là..
Voici ce qu'il y'a dans mon jobs.lua :
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CADET = DarkRP.createJob("Cadet Impérial", {
color = Color(255, 0, 0, 255),
model = {"models/kriegsyntax/starwars/ensign_playermodel.mdl"},
description = [[]],
weapons = {},
command = "Cadet",
max = 20,
salary = 50,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Armée Impériale",
})
TEAM_SCOUT = DarkRP.createJob("ScoutTrooper", {
color = Color(255, 0, 0, 255),
model = {"models/kriegsyntax/starwars/scouttrooper_playermodel.mdl"},
description = [[]],
weapons = {"weapon_752bf3_e11","weapon_752bf3_binoculars","weapon_752bf3_scoutblaster"},
command = "Scout",
max = 5,
salary = 110,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Armée Impériale",
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CADET
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
En gros ce que je voudrais c'est pouvoir mettre chaque jobs dans un groupe, afin qu'aucun joueur puisse prendre un des jobs "whitelist", merci de votre compréhension.
http://www.jeuxvideo.com/forums/42-3000777-38252961-1-0-1-0-tuto-creer-son-darkrp.htm
https://mtxserv.com/forums/threads/job-vip.159/
Dans les deux "tutos", ils disent de mettre les 3 lignes suivante juste après la ligne
"candemote = false" (n'oubliez pas de mettre une virgule après le false). :
customCheck = function(ply) return CLIENT or ply:getNWString("usergroup") == "LE NOM DU GROUPE CREER" or ply:IsAdmin or ply:IsSuperAdmin end,
CustomCheckFailMsg = "MESSAGE SI LE JOUEUR EST PAS VIP",
Malheureusement quand je fais ça, et que je reboot mon serveur, il n'y plus aucun job, alors que avant de mettre les 3 lignes cité au dessus, il n'y a rien, les jobs sont bien là..
Voici ce qu'il y'a dans mon jobs.lua :
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CADET = DarkRP.createJob("Cadet Impérial", {
color = Color(255, 0, 0, 255),
model = {"models/kriegsyntax/starwars/ensign_playermodel.mdl"},
description = [[]],
weapons = {},
command = "Cadet",
max = 20,
salary = 50,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Armée Impériale",
})
TEAM_SCOUT = DarkRP.createJob("ScoutTrooper", {
color = Color(255, 0, 0, 255),
model = {"models/kriegsyntax/starwars/scouttrooper_playermodel.mdl"},
description = [[]],
weapons = {"weapon_752bf3_e11","weapon_752bf3_binoculars","weapon_752bf3_scoutblaster"},
command = "Scout",
max = 5,
salary = 110,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Armée Impériale",
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CADET
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
En gros ce que je voudrais c'est pouvoir mettre chaque jobs dans un groupe, afin qu'aucun joueur puisse prendre un des jobs "whitelist", merci de votre compréhension.
Dernière édition: