Probleme script

  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
Salut j'ai un probleme avec le script the perfect delivery quand je selectionne la mission je spawn dans les aires avec mon camion comment faire aider moi merci .

merci
 
Valfunde

Valfunde

Helpeur Divin
Messages
3 800
Score réaction
1 235
Points
450
flico à dit:
Salut j'ai un probleme avec le script the perfect delivery quand je selectionne la mission je spawn dans les aires avec mon camion comment faire aider moi merci .

merci
Bonjour,

Ceci est un probleme de configuration, tu n'as pas bien défini dans le fichier config l'endroit ou spawn le camion.
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
C ou car j'ai regarder partout j'ai refais au moins 5 fois et j'ai pas trouver
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
flico à dit:
C ou car j'ai regarder partout j'ai refais au moins 5 fois et j'ai pas trouver
Partage nous ta config
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
ok
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
-- [[ By Diablos | Version 1.1.2 / Updated 11/26/16 ]] --
-- [[ If you have a problem, please leave a ticket on Scriptfodder ]] --
-- [[ This is the configuration file ]] --

-- [[ Don't touch all of these table configurations. ]] --
if not Diablos then Diablos = {} end
Diablos.DS = {}
Diablos.DS.Delivery = {}
Diablos.DS.CT = {}
Diablos.DS.TableOfKeys = {}
Diablos.DS.Strings = {}
-- [[ After these lines you can modify what you want. ]] --

-- /!\ WARNING: PLEASE READ THIS, THIS IS FOR THE CONFIGURATION /!\
-- For every delivery you will do, just use the Delivery Placer toolgun. Automatically, the ID in [] increments: you must change it if you miss a place because ID must follow (don't let an empty ID).
-- I thought I don't need to explain what is text, money or time, this is self-explanatory, BUT (text: name of the place of the delivery / money: how much money delivery will win / time: the time (in seconds) to do the delivery maximally).
-- If the setting Diablos.DS.NeedToBringTheCarAtTheOriginalPlace below is set on true, time is for the half of round trip, of course.
-- origin is the Vector() (position) you set during your first click of the toolgun.
-- If you would like to make that a mission (delivery) can be do if the player returns a certain condition, use customFunction which works same as customCheck, example below.
-- Delete '--' comment of the last line and add a line as this: for a custom user group (just an example): customFunction = function(ply) return ply:GetUserGroup() == "VIP" end
-- To have Vector() of Diablos.DS.VehiclePos and Angle() of Diablos.DS.VehiclePos (below), go in the position you want and type "getpos", that will return Vector and Angle from where you are (warning commas!).
-- Restart your server when you did all the modifications in the configuration file!
-- I hope you will like this addon, thanks! Best regards of Diablos.
-- /!\ END OF THE EXPLANATION /!\

Diablos.DS.Delivery[1] = {
text = "Concessionaire",
money = 7000,
time = 100,
origin = Vector(-4327, 3878, -101),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[2] = {
text = "White house",
money = 5000,
time = 20,
origin = Vector(1554, 6312, -32),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[3] = {
text = "Town hall",
money = 3000,
time = 60,
origin = Vector(-4272, -2419, 250),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[4] = {
text = "Taco Bell",
money = 2000,
time = 90,
origin = Vector(1554, 6312, -32),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[5] = {
text = "Fuel pump",
money = 12000,
time = 120,
origin = Vector(1554, 6312, -32),
customFunction = function(ply) return ply:GetUserGroup() == "moderator" end -- Here the player needs to be in the "moderator" group to do this mission. You can remove the line if you don't want it.
}

Diablos.DS.Delivery[6] = {
text = "Night club {VIP}",
money = 15000,
time = 45,
origin = Vector(1554, 6312, -32),
customFunction = function(ply) return ply:GetUserGroup() == "VIP" end -- Here the player needs to be in the VIP group to do this mission. You can remove the line if you don't want it.
}

Diablos.DS.Language = "en" -- Available languages: "fr", "es" or "en" by default. Other languages will be available in few weeks/months, if you speak an other language send me a message and we will see to translate.

Diablos.DS.AllPeopleHaveThePanel = false -- Set to true to make that all people can use the delivery board on the NPC. Else, set to false.

Diablos.DS.TeamsWhoHaveThePanel = { -- If the line above is set on true, this line can be avoided. Else, set name of teams that can go on the delivery board on the NPC.
"Delivery Man"
}

Diablos.DS.CanStealMoney = true -- Set to true to make that the vehicle can be arrested by teams below (case of RP) and they can stole money of the vehicle. Else, set to false. To stole money, the deliveryman must be in the vehicle and don't move.

Diablos.DS.TeamsWhoCanTakeMoneyFromVehicle = { -- Set the teams which can take the money from the vehicle by forcing the driver (case of RP). After just they must +RELOAD button.
"Gangster"
}

Diablos.DS.RatioTeamsCanTake = 0.4 -- Set the ratio players of the team just above can take in the vehicle. If there is 10000$ and ratio is on 0.6, they just can take 6000$, other will stay in the delivery vehicle.

Diablos.DS.DeliveryManWillWinRest = false -- Set to true to make that the delivery man will win the rest of the money after he succeeds the mission while having stolen his money before.

Diablos.DS.EnabledBlurs = true -- Set to true if you would like to enable the blur effects (around the frames). Else, set to false.

Diablos.DS.VehicleClass = "gmcvantdmdlx" -- Set the classname of vehicle you want for the delivery (right click on the vehicle and copy to clipboard).

Diablos.DS.VehicleSkin = 0 -- Set the skin of the vehicle. If you don't want to change the skin, put the value to 0.

Diablos.DS.VehiclePos = Vector(1710, -120, -60) -- Original pos of the vehicle when the vehicle will spawn. You can take the Vector by using my toolgun which is on this addon and copy the Vector() in the 'origin' line.

Diablos.DS.VehicleAng = Angle(0, 180, 0) -- Original angle of the vehicle when the vehicle will spawn.

Diablos.DS.VCMod = false -- Set to true if you have VCMod, to make that the mission will be a failure if the vehicle has no health.

Diablos.DS.NPCModel = "models/gman.mdl" -- Model of the NPC.

Diablos.DS.MessageAtTheTopOfTheHead = "DELIVERY BOARD" -- Message ('title') above the head of the NPC. "" to disable.

Diablos.DS.PlayersNeedToBeginDelivery = 0 -- Number of players that the server needs to begin a delivery (to avoid that players will win money when there is nobody). 0 to disable.

Diablos.DS.PriceYouWillPayToDoADelivery = 200 -- Price you must pay to begin a delivery. 0 to disable.

Diablos.DS.TimeBetweenDelivery = 15 -- Time (in seconds) between every delivery.

Diablos.DS.NeedToBringTheCarAtTheOriginalPlace = true -- Set to true to make that when you are in the delivery place, you must bring the car to the place where the vehicle spawns to receive your money and finish the mission.

Diablos.DS.ShowMissionsPlayerCantDo = true -- Set to true if you would like to make that the player can see the mission he can't do. Else, set to false.

Diablos.DS.AmountOfFailBeforeBeDemote = 2 -- Amount of fail a deliveryman must do to be demoted automatically. 0 to disable.

Diablos.DS.AmountOfSuccessBeforeHaveAReward = 4 -- Amount of success a deliveryman must do to have a reward. 0 to disable.

Diablos.DS.Reward = 500 -- How much money the player will win if he has much successes.

-- [[ Color Theme Configuration ]] --

Diablos.DS.CT.FrameColor = Color(40, 40, 40, 150) -- -- Color of the frame (windows generally).

Diablos.DS.CT.HeaderColor = Color(60, 60, 60, 110) -- Color of the headers.

Diablos.DS.CT.CloseButtonsColor = Color(20, 20, 20, 200) -- Color of the close buttons.

Diablos.DS.CT.ButtonsColor = Color(60, 60, 60, 150) -- Color of the 'Steal Money' and 'Copy to clipboard' buttons.

Diablos.DS.CT.LabelColor = Color(220, 220, 220, 220) -- Color of the labels (text you can see in frames).

Diablos.DS.CT.EveryMissionLeftSideColor = Color(0, 100, 250, 30) -- Color of the left side of every mission (when there is writing name of mission and other things).

Diablos.DS.CT.EveryMissionCanRightSideColor = Color(50, 140, 50, 30) -- Color of the right side of every mission when the player CAN do this mission. Also the color when you click to the 'Steal Money' button.

Diablos.DS.CT.EveryMissionCantRightSideColor = Color(140, 50, 50, 30) -- Color of the right side of every mission when the player CAN'T do this mission.

Diablos.DS.CT.VBarColor = Color(0, 100, 250, 50) -- Color of the Vertical Bar when you have too missions and you must scroll.

Diablos.DS.CT.VBarOutlineColor = Color(0, 100, 200, 30) -- Color of the 'outline' (big word) of the VBar when you have too missions and you must scroll. This is roughly same as above with less number values.

Diablos.DS.CT.DeliveryVehicleColor = Color(0, 0, 0, 255) -- Color of the delivery vehicle.

Diablos.DS.CT.HUDIndicationsColor = Color(255, 0, 0, 150) -- Color of the indication when a player begins a mission and see informations on his screen.

Diablos.DS.CT.MessageAtTheTopOfTheHead = Color(30, 140, 140, 255) -- Color of the 'title' at the top of the head of the NPC.

-- [[ Language part ]] --

if Diablos.DS.Language == "fr" then
Diablos.DS.Strings = {
nameofnpc = "NPC Livraison",
deliveryboard = "TABLEAU DE LIVRAISON",
welcome = "Salut! Voici ton TABLEAU DE LIVRAISON:",
alreadyinmission = "VOUS ETES DEJA EN MISSION: FAITES VOTRE OBJECTIF, IDIOT!",
summaryofmissions = "RESUME DE VOS MISSIONS:",
successes = "Réussites: ",
failures = "Echecs: ",
missionscando = "MISSIONS QUE VOUS POUVEZ FAIRE",
missionscantdo = "MISSIONS QUE VOUS NE POUVEZ PAS FAIRE",
apply = "APPLIQUER",
cant = "IMPOSSIBLE",
mustwait = "Vous devez attendre pour la prochaine livraison!",
cantdoiftoofar = "Vous ne pouvez pas faire une mission si vous êtes trop loin du NPC!",
deliverypoint = "Point de livraison: ",
timeremaining = "Temps restant: ",
notenoughplayers = "Il n'y a pas assez de joueurs dans le serveur pour voir le tableau de livraison!",
arentauthorize = "Vous n'êtes pas autorisé à voir le tableau de livraison!",
youpaid = "Vous payez ",
yourdestinationis = "Votre destination est: ",
youwin = "Vous gagnez ",
bringvehicleoriginalplace = "Apporter le véhicule à la place d'origine pour finir la mission.",
missionfailed = "Mission échouée parce que vous avez mis trop de temps!",
failurenotallmoney = "C'est un échec car il n'y a pas tout l'argent!",
failurenotallmoneywin = "C'est un échec car il n'y a pas tout l'argent! Mais vous gagnez ",
vehicleisdestroyed = "C'est un échec parce que votre véhicule est détruit!",
playerdied = "C'est un échec car vous êtes mort durant la mission!",
persondoesalreadymission = "Une autre personne est déjà en train de faire la mission.",
manysuccesses = " parce que vous avez eu beaucoup de réussites!",
manyfailures = "Vous êtes viré car vous faites trop d'échecs!",
havetaken = "Vous avez pris ",
nothingleft = "Il n'y a plus rien à prendre!",
somebodystealsmoney = "Quelqu'un prend de l'argent",
stealmoney = "VOLER ARGENT",
stealmoneyindication = "Voler de l'argent du véhicule en cliquant sur le bouton ci-dessous:",
moneystealed = "Argent volé!",
moneystealedlog = " a volé de l'argent du véhicule de livraison de ",
deliveryzonesetup = "CREATION D'UNE ZONE DE LIVRAISON",
pastecode = "Collez le code suivant dans",
copy = "Copier",
codecopied = "Le code a été copié, collez le dans votre fichier de configuration!"
}
elseif Diablos.DS.Language == "es" then
Diablos.DS.Strings = {
nameofnpc = "NPC Entrenga",
deliveryboard = "TABLA DE ENTREGA",
welcome = "¡Hola! Es tu TABLA DE ENTREGA:",
alreadyinmission = "ESTÁS EN MISIÓN : ¡HECHO TU OBJETIVO, IDIOTA!",
summaryofmissions = "RESUMEN DE TUS MISIONES :",
successes = "Logros: ",
failures = "Fracasos: ",
missionscando = "MISIONES QUE PUEDES HACER",
missionscantdo = "MISIONES QUE NO PUEDES HACER",
apply = "APLICAR",
cant = "IMPOSIBLE",
mustwait = "¡Esperando la siguiente entrega!",
cantdoiftoofar = "¡Usted no puede hacer una misión si usted es demasiado lejos del NPC!",
deliverypoint = "Punto de entrega: ",
timeremaining = "Tiempo restante: ",
notenoughplayers = "¡No hay bastantes jugadores en el servido para ver la tabla de entrega!",
arentauthorize = "No eres autorizado a ver la tabla de entrega!",
youpaid = "Pagas ",
yourdestinationis = "Su destino es: ",
youwin = "Usted gana ",
bringvehicleoriginalplace = "Aportar el vehículo al sitiode origen para acabar la misión.",
missionfailed = "¡Misión suspendido porque usted puso demasiado tiempo!",
failurenotallmoney = "¡Es un fracaso porque no hay todo dinero!",
failurenotallmoneywin = "¡Es un fracaso porque no hay todo dinero! Pero usted gana ",
vehicleisdestroyed = "¡Es un fracaso porque su vehículo es destruido!",
playerdied = "¡Es un fracaso porque moriste durante la misión!",
persondoesalreadymission = "Otra persona ya está haciendo la misión.",
manysuccesses = " ¡porque usted tuvo muchos éxitos!",
manyfailures = "¡Eres despedido porque usted hace demasiados fracasos!",
havetaken = "Usted tomó ",
nothingleft = "¡No hay nada más que hay que tomar!",
somebodystealsmoney = "¡Alguien toma dinero!",
stealmoney = "ROBAR DINERO",
stealmoneyindication = "Robar dinero del vehículo haciendo clic en el botón más abajo:",
moneystealed = "Dinero robó!",
moneystealedlog = " robó dinero del vehículo de entrega de ",
deliveryzonesetup = "CREATION DE UNA ZONA DE ENTREGA",
pastecode = "Pegue el codigo siguiente en",
copy = "Copiar",
codecopied = "¡El código ha sido copiado, esté pegado en su fichero de configuración!"
}
else
Diablos.DS.Strings = {
nameofnpc = "NPC Delivery",
deliveryboard = "DELIVERY BOARD",
welcome = "Welcome! Your DELIVERY BOARD:",
alreadyinmission = "YOU ARE ALREADY IN MISSION: CONTINUE YOUR OBJECTIVE, IDIOT!",
summaryofmissions = "SUMMARY OF YOUR MISSIONS:",
successes = "Successes: ",
failures = "Failures: ",
missionscando = "MISSIONS YOU CAN DO",
missionscantdo = "MISSIONS YOU CAN'T DO",
apply = "APPLY",
cant = "CAN'T",
mustwait = "You must wait for the next delivery!",
cantdoiftoofar = "You can't do a mission if you are too far from the NPC!",
deliverypoint ="Delivery point: ",
timeremaining = "Time remaining: ",
notenoughplayers = "There is not enough players in the server to see the delivery board!",
arentauthorize = "You aren't authorize to see the delivery board!",
youpaid = "You paid ",
yourdestinationis ="Your destination is: ",
youwin = "You win ",
bringvehicleoriginalplace = "Bring the vehicle to the original place to finish the mission.",
missionfailed = "Mission failed: you are too long!",
failurenotallmoney = "This is a failure because there is not all the money!",
failurenotallmoneywin = "This is a failure because there is not all the money! But you win ",
vehicleisdestroyed = "This is a failure because your vehicle is destroyed!",
playerdied = "This is a failure because you were dead during the mission!",
persondoesalreadymission = "An other person already does the mission.",
manysuccesses = " because you have made many successes!",
manyfailures = "You are demoted because you have made too many failures!",
havetaken = "You have taken ",
nothingleft = "There is nothing left to take!",
somebodystealsmoney = "Somebody steals money.",
stealmoney = "STEAL MONEY",
stealmoneyindication = "Steal the money of the vehicle by clicking on the button below:",
moneystealed = "Money stealed!",
moneystealedlog = " stole money from the delivery vehicle of ",
deliveryzonesetup = "DELIVERY ZONE SETUP",
pastecode = "Paste the following code into",
copy = "Copy",
codecopied = "The code has been copied, paste it in your configuration file!"
}
end

-- [[ End of configuration ]] --
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
C'est les Vector qu'y faut modifier
 
Valfunde

Valfunde

Helpeur Divin
Messages
3 800
Score réaction
1 235
Points
450
Diablos.DS.VehiclePos = Vector(1710, -120, -60) -- Original pos of the vehicle when the vehicle will spawn. You can take the Vector by using my toolgun which is on this addon and copy the Vector() in the 'origin' line.
 
  • J'aime
Réactions: Diablos26
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
Valfunde à dit:
Diablos.DS.VehiclePos = Vector(1710, -120, -60) -- Original pos of the vehicle when the vehicle will spawn. You can take the Vector by using my toolgun which is on this addon and copy the Vector() in the 'origin' line.
SkydrazZ à dit:
C'est les Vector qu'y faut modifier
Trop rapide pour toi ^^
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
D'accord masi comment le modifier
il faut mettre quoi a la place ?
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
??
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
flico à dit:
D'accord masi comment le modifier
il faut mettre quoi a la place ?
Tu fais getpos dans ta console les 3 premier serie de nombre sont le vector et après le ;c'est le set angle
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
getpos 1710, -120, -60
c tout ?
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
d'accord merci
 
  • J'aime
Réactions: SkydrazZ
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
Sa marche pas
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
-- [[ By Diablos | Version 1.1.2 / Updated 11/26/16 ]] --
-- [[ If you have a problem, please leave a ticket on Scriptfodder ]] --
-- [[ This is the configuration file ]] --

-- [[ Don't touch all of these table configurations. ]] --
if not Diablos then Diablos = {} end
Diablos.DS = {}
Diablos.DS.Delivery = {}
Diablos.DS.CT = {}
Diablos.DS.TableOfKeys = {}
Diablos.DS.Strings = {}
-- [[ After these lines you can modify what you want. ]] --

-- /!\ WARNING: PLEASE READ THIS, THIS IS FOR THE CONFIGURATION /!\
-- For every delivery you will do, just use the Delivery Placer toolgun. Automatically, the ID in [] increments: you must change it if you miss a place because ID must follow (don't let an empty ID).
-- I thought I don't need to explain what is text, money or time, this is self-explanatory, BUT (text: name of the place of the delivery / money: how much money delivery will win / time: the time (in seconds) to do the delivery maximally).
-- If the setting Diablos.DS.NeedToBringTheCarAtTheOriginalPlace below is set on true, time is for the half of round trip, of course.
-- origin is the Vector() (position) you set during your first click of the toolgun.
-- If you would like to make that a mission (delivery) can be do if the player returns a certain condition, use customFunction which works same as customCheck, example below.
-- Delete '--' comment of the last line and add a line as this: for a custom user group (just an example): customFunction = function(ply) return ply:GetUserGroup() == "VIP" end
-- To have Vector() of Diablos.DS.VehiclePos and Angle() of Diablos.DS.VehiclePos (below), go in the position you want and type "getpos", that will return Vector and Angle from where you are (warning commas!).
-- Restart your server when you did all the modifications in the configuration file!
-- I hope you will like this addon, thanks! Best regards of Diablos.
-- /!\ END OF THE EXPLANATION /!\

Diablos.DS.Delivery[1] = {
text = "Concessionaire",
money = 7000,
time = 100,
origin = Vector(-4327, 3878, -101),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[2] = {
text = "White house",
money = 5000,
time = 20,
origin = Vector(1554, 6312, -32),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[3] = {
text = "Town hall",
money = 3000,
time = 60,
origin = Vector(-4272, -2419, 250),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[4] = {
text = "Taco Bell",
money = 2000,
time = 90,
origin = Vector(1554, 6312, -32),
-- customFunction = function(ply) return end -- You can remove line comment "--" if you would like to add condition(s) to do the mission
}

Diablos.DS.Delivery[5] = {
text = "Fuel pump",
money = 12000,
time = 120,
origin = Vector(1554, 6312, -32),
customFunction = function(ply) return ply:GetUserGroup() == "moderator" end -- Here the player needs to be in the "moderator" group to do this mission. You can remove the line if you don't want it.
}

Diablos.DS.Delivery[6] = {
text = "Night club {VIP}",
money = 15000,
time = 45,
origin = Vector(1554, 6312, -32),
customFunction = function(ply) return ply:GetUserGroup() == "VIP" end -- Here the player needs to be in the VIP group to do this mission. You can remove the line if you don't want it.
}

Diablos.DS.Language = "en" -- Available languages: "fr", "es" or "en" by default. Other languages will be available in few weeks/months, if you speak an other language send me a message and we will see to translate.

Diablos.DS.AllPeopleHaveThePanel = false -- Set to true to make that all people can use the delivery board on the NPC. Else, set to false.

Diablos.DS.TeamsWhoHaveThePanel = { -- If the line above is set on true, this line can be avoided. Else, set name of teams that can go on the delivery board on the NPC.
"Delivery Man"
}

Diablos.DS.CanStealMoney = true -- Set to true to make that the vehicle can be arrested by teams below (case of RP) and they can stole money of the vehicle. Else, set to false. To stole money, the deliveryman must be in the vehicle and don't move.

Diablos.DS.TeamsWhoCanTakeMoneyFromVehicle = { -- Set the teams which can take the money from the vehicle by forcing the driver (case of RP). After just they must +RELOAD button.
"Gangster"
}

Diablos.DS.RatioTeamsCanTake = 0.4 -- Set the ratio players of the team just above can take in the vehicle. If there is 10000$ and ratio is on 0.6, they just can take 6000$, other will stay in the delivery vehicle.

Diablos.DS.DeliveryManWillWinRest = false -- Set to true to make that the delivery man will win the rest of the money after he succeeds the mission while having stolen his money before.

Diablos.DS.EnabledBlurs = true -- Set to true if you would like to enable the blur effects (around the frames). Else, set to false.

Diablos.DS.VehicleClass = "gmcvantdmdlx" -- Set the classname of vehicle you want for the delivery (right click on the vehicle and copy to clipboard).

Diablos.DS.VehicleSkin = 0 -- Set the skin of the vehicle. If you don't want to change the skin, put the value to 0.

Diablos.DS.VehiclePos = Vector(1710, -120, -60) -- Original pos of the vehicle when the vehicle will spawn. You can take the Vector by using my toolgun which is on this addon and copy the Vector() in the 'origin' line.

Diablos.DS.VehicleAng = Angle(0, 180, 0) -- Original angle of the vehicle when the vehicle will spawn.

Diablos.DS.VCMod = false -- Set to true if you have VCMod, to make that the mission will be a failure if the vehicle has no health.

Diablos.DS.NPCModel = "models/gman.mdl" -- Model of the NPC.

Diablos.DS.MessageAtTheTopOfTheHead = "DELIVERY BOARD" -- Message ('title') above the head of the NPC. "" to disable.

Diablos.DS.PlayersNeedToBeginDelivery = 0 -- Number of players that the server needs to begin a delivery (to avoid that players will win money when there is nobody). 0 to disable.

Diablos.DS.PriceYouWillPayToDoADelivery = 200 -- Price you must pay to begin a delivery. 0 to disable.

Diablos.DS.TimeBetweenDelivery = 15 -- Time (in seconds) between every delivery.

Diablos.DS.NeedToBringTheCarAtTheOriginalPlace = true -- Set to true to make that when you are in the delivery place, you must bring the car to the place where the vehicle spawns to receive your money and finish the mission.

Diablos.DS.ShowMissionsPlayerCantDo = true -- Set to true if you would like to make that the player can see the mission he can't do. Else, set to false.

Diablos.DS.AmountOfFailBeforeBeDemote = 2 -- Amount of fail a deliveryman must do to be demoted automatically. 0 to disable.

Diablos.DS.AmountOfSuccessBeforeHaveAReward = 4 -- Amount of success a deliveryman must do to have a reward. 0 to disable.

Diablos.DS.Reward = 500 -- How much money the player will win if he has much successes.

-- [[ Color Theme Configuration ]] --

Diablos.DS.CT.FrameColor = Color(40, 40, 40, 150) -- -- Color of the frame (windows generally).

Diablos.DS.CT.HeaderColor = Color(60, 60, 60, 110) -- Color of the headers.

Diablos.DS.CT.CloseButtonsColor = Color(20, 20, 20, 200) -- Color of the close buttons.

Diablos.DS.CT.ButtonsColor = Color(60, 60, 60, 150) -- Color of the 'Steal Money' and 'Copy to clipboard' buttons.

Diablos.DS.CT.LabelColor = Color(220, 220, 220, 220) -- Color of the labels (text you can see in frames).

Diablos.DS.CT.EveryMissionLeftSideColor = Color(0, 100, 250, 30) -- Color of the left side of every mission (when there is writing name of mission and other things).

Diablos.DS.CT.EveryMissionCanRightSideColor = Color(50, 140, 50, 30) -- Color of the right side of every mission when the player CAN do this mission. Also the color when you click to the 'Steal Money' button.

Diablos.DS.CT.EveryMissionCantRightSideColor = Color(140, 50, 50, 30) -- Color of the right side of every mission when the player CAN'T do this mission.

Diablos.DS.CT.VBarColor = Color(0, 100, 250, 50) -- Color of the Vertical Bar when you have too missions and you must scroll.

Diablos.DS.CT.VBarOutlineColor = Color(0, 100, 200, 30) -- Color of the 'outline' (big word) of the VBar when you have too missions and you must scroll. This is roughly same as above with less number values.

Diablos.DS.CT.DeliveryVehicleColor = Color(0, 0, 0, 255) -- Color of the delivery vehicle.

Diablos.DS.CT.HUDIndicationsColor = Color(255, 0, 0, 150) -- Color of the indication when a player begins a mission and see informations on his screen.

Diablos.DS.CT.MessageAtTheTopOfTheHead = Color(30, 140, 140, 255) -- Color of the 'title' at the top of the head of the NPC.

-- [[ Language part ]] --

if Diablos.DS.Language == "fr" then
Diablos.DS.Strings = {
nameofnpc = "NPC Livraison",
deliveryboard = "TABLEAU DE LIVRAISON",
welcome = "Salut! Voici ton TABLEAU DE LIVRAISON:",
alreadyinmission = "VOUS ETES DEJA EN MISSION: FAITES VOTRE OBJECTIF, IDIOT!",
summaryofmissions = "RESUME DE VOS MISSIONS:",
successes = "Réussites: ",
failures = "Echecs: ",
missionscando = "MISSIONS QUE VOUS POUVEZ FAIRE",
missionscantdo = "MISSIONS QUE VOUS NE POUVEZ PAS FAIRE",
apply = "APPLIQUER",
cant = "IMPOSSIBLE",
mustwait = "Vous devez attendre pour la prochaine livraison!",
cantdoiftoofar = "Vous ne pouvez pas faire une mission si vous êtes trop loin du NPC!",
deliverypoint = "Point de livraison: ",
timeremaining = "Temps restant: ",
notenoughplayers = "Il n'y a pas assez de joueurs dans le serveur pour voir le tableau de livraison!",
arentauthorize = "Vous n'êtes pas autorisé à voir le tableau de livraison!",
youpaid = "Vous payez ",
yourdestinationis = "Votre destination est: ",
youwin = "Vous gagnez ",
bringvehicleoriginalplace = "Apporter le véhicule à la place d'origine pour finir la mission.",
missionfailed = "Mission échouée parce que vous avez mis trop de temps!",
failurenotallmoney = "C'est un échec car il n'y a pas tout l'argent!",
failurenotallmoneywin = "C'est un échec car il n'y a pas tout l'argent! Mais vous gagnez ",
vehicleisdestroyed = "C'est un échec parce que votre véhicule est détruit!",
playerdied = "C'est un échec car vous êtes mort durant la mission!",
persondoesalreadymission = "Une autre personne est déjà en train de faire la mission.",
manysuccesses = " parce que vous avez eu beaucoup de réussites!",
manyfailures = "Vous êtes viré car vous faites trop d'échecs!",
havetaken = "Vous avez pris ",
nothingleft = "Il n'y a plus rien à prendre!",
somebodystealsmoney = "Quelqu'un prend de l'argent",
stealmoney = "VOLER ARGENT",
stealmoneyindication = "Voler de l'argent du véhicule en cliquant sur le bouton ci-dessous:",
moneystealed = "Argent volé!",
moneystealedlog = " a volé de l'argent du véhicule de livraison de ",
deliveryzonesetup = "CREATION D'UNE ZONE DE LIVRAISON",
pastecode = "Collez le code suivant dans",
copy = "Copier",
codecopied = "Le code a été copié, collez le dans votre fichier de configuration!"
}
elseif Diablos.DS.Language == "es" then
Diablos.DS.Strings = {
nameofnpc = "NPC Entrenga",
deliveryboard = "TABLA DE ENTREGA",
welcome = "¡Hola! Es tu TABLA DE ENTREGA:",
alreadyinmission = "ESTÁS EN MISIÓN : ¡HECHO TU OBJETIVO, IDIOTA!",
summaryofmissions = "RESUMEN DE TUS MISIONES :",
successes = "Logros: ",
failures = "Fracasos: ",
missionscando = "MISIONES QUE PUEDES HACER",
missionscantdo = "MISIONES QUE NO PUEDES HACER",
apply = "APLICAR",
cant = "IMPOSIBLE",
mustwait = "¡Esperando la siguiente entrega!",
cantdoiftoofar = "¡Usted no puede hacer una misión si usted es demasiado lejos del NPC!",
deliverypoint = "Punto de entrega: ",
timeremaining = "Tiempo restante: ",
notenoughplayers = "¡No hay bastantes jugadores en el servido para ver la tabla de entrega!",
arentauthorize = "No eres autorizado a ver la tabla de entrega!",
youpaid = "Pagas ",
yourdestinationis = "Su destino es: ",
youwin = "Usted gana ",
bringvehicleoriginalplace = "Aportar el vehículo al sitiode origen para acabar la misión.",
missionfailed = "¡Misión suspendido porque usted puso demasiado tiempo!",
failurenotallmoney = "¡Es un fracaso porque no hay todo dinero!",
failurenotallmoneywin = "¡Es un fracaso porque no hay todo dinero! Pero usted gana ",
vehicleisdestroyed = "¡Es un fracaso porque su vehículo es destruido!",
playerdied = "¡Es un fracaso porque moriste durante la misión!",
persondoesalreadymission = "Otra persona ya está haciendo la misión.",
manysuccesses = " ¡porque usted tuvo muchos éxitos!",
manyfailures = "¡Eres despedido porque usted hace demasiados fracasos!",
havetaken = "Usted tomó ",
nothingleft = "¡No hay nada más que hay que tomar!",
somebodystealsmoney = "¡Alguien toma dinero!",
stealmoney = "ROBAR DINERO",
stealmoneyindication = "Robar dinero del vehículo haciendo clic en el botón más abajo:",
moneystealed = "Dinero robó!",
moneystealedlog = " robó dinero del vehículo de entrega de ",
deliveryzonesetup = "CREATION DE UNA ZONA DE ENTREGA",
pastecode = "Pegue el codigo siguiente en",
copy = "Copiar",
codecopied = "¡El código ha sido copiado, esté pegado en su fichero de configuración!"
}
else
Diablos.DS.Strings = {
nameofnpc = "NPC Delivery",
deliveryboard = "DELIVERY BOARD",
welcome = "Welcome! Your DELIVERY BOARD:",
alreadyinmission = "YOU ARE ALREADY IN MISSION: CONTINUE YOUR OBJECTIVE, IDIOT!",
summaryofmissions = "SUMMARY OF YOUR MISSIONS:",
successes = "Successes: ",
failures = "Failures: ",
missionscando = "MISSIONS YOU CAN DO",
missionscantdo = "MISSIONS YOU CAN'T DO",
apply = "APPLY",
cant = "CAN'T",
mustwait = "You must wait for the next delivery!",
cantdoiftoofar = "You can't do a mission if you are too far from the NPC!",
deliverypoint ="Delivery point: ",
timeremaining = "Time remaining: ",
notenoughplayers = "There is not enough players in the server to see the delivery board!",
arentauthorize = "You aren't authorize to see the delivery board!",
youpaid = "You paid ",
yourdestinationis ="Your destination is: ",
youwin = "You win ",
bringvehicleoriginalplace = "Bring the vehicle to the original place to finish the mission.",
missionfailed = "Mission failed: you are too long!",
failurenotallmoney = "This is a failure because there is not all the money!",
failurenotallmoneywin = "This is a failure because there is not all the money! But you win ",
vehicleisdestroyed = "This is a failure because your vehicle is destroyed!",
playerdied = "This is a failure because you were dead during the mission!",
persondoesalreadymission = "An other person already does the mission.",
manysuccesses = " because you have made many successes!",
manyfailures = "You are demoted because you have made too many failures!",
havetaken = "You have taken ",
nothingleft = "There is nothing left to take!",
somebodystealsmoney = "Somebody steals money.",
stealmoney = "STEAL MONEY",
stealmoneyindication = "Steal the money of the vehicle by clicking on the button below:",
moneystealed = "Money stealed!",
moneystealedlog = " stole money from the delivery vehicle of ",
deliveryzonesetup = "DELIVERY ZONE SETUP",
pastecode = "Paste the following code into",
copy = "Copy",
codecopied = "The code has been copied, paste it in your configuration file!"
}
end

-- [[ End of configuration ]] --
 
While True

While True

Geek suprême
Messages
445
Score réaction
395
Points
190
Sinon, si la position te convient, et que le seul souci c'est qu'il spawn en l'air, réduit la troisième valeur du vecteur (x,y,z)
Diablos.DS.VehiclePos = Vector(1710, -120, -60) devient :
Diablos.DS.VehiclePos = Vector(1710, -120, -100)

Si c'est toujours pas bon, réduit encore un petit peu la hauteur.
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
je vais voir merci
 
  • Initiateur de la discussion
flico

flico

Geek suprême
Messages
190
Score réaction
18
Points
115
Sa marche pas
 
Diablos26

Diablos26

Psychopathe
Messages
951
Score réaction
326
Points
315
Merci aux personnes d'avoir essayer d'aider (Valfunde, SkydraZz et While True).
While True à dit:
Diablos.DS.VehiclePos = Vector(1710, -120, -60) devient :
Diablos.DS.VehiclePos = Vector(1710, -120, -100)
Je pense cependant (sauf si je fais erreur car je suis actuellement fatigué) qu'il faudrait, à l'inverse, augmenter le troisième argument faisant office du vecteur Z (pour que ce soit plus haut), soit passer de -60 à -20 et non à -100.
Sinon, miracle que j'ai vu ce sujet, mais il existe un bouton pour faire un ticket à droite du script, étant donné qu'ici j'ai juste vu ça par hasard et que je ne suis plus actif sur mTx.
 
While True

While True

Geek suprême
Messages
445
Score réaction
395
Points
190
Diablos26 à dit:
Merci aux personnes d'avoir essayer d'aider (Valfunde, SkydraZz et While True).

Je pense cependant (sauf si je fais erreur car je suis actuellement fatigué) qu'il faudrait, à l'inverse, augmenter le troisième argument faisant office du vecteur Z (pour que ce soit plus haut), soit passer de -60 à -20 et non à -100.
Sinon, miracle que j'ai vu ce sujet, mais il existe un bouton pour faire un ticket à droite du script, étant donné qu'ici j'ai juste vu ça par hasard et que je ne suis plus actif sur mTx.
Justement, son problème est que ca spawn dans les airs ^^ donc il faut bien réduire le Z, bref, maintenant que t'es là, tu peux gérer ca avec lui ^^
 
Diablos26

Diablos26

Psychopathe
Messages
951
Score réaction
326
Points
315
While True à dit:
Justement, son problème est que ca spawn dans les airs ^^ donc il faut bien réduire le Z, bref, maintenant que t'es là, tu peux gérer ca avec lui ^^
En fonction du placement relatif et de la tournure de la phrase, cela peut changer. Si le véhicule est trop en bas de la map, il est aussi dans les airs, dans les airs du bas (je te l'accorde c'est totalement du n'importe quoi mais les joueurs appellent ce "vide" les "airs", bien que ce soit en bas). Enfin oui, le mieux c'est qu'il m'envoie un ticket support ^^'
 
Discord d'entraide
Rejoignz-nous sur Discord