Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. -- look for these in hr_cm_config.lua lines 126-127 and change to
  2. HR_CrystalMeth.MethQualityFormula = {11, 43, 64, 8} -- aluminum / cyfluthrin / methylamine / inter acid
  3. HR_CrystalMeth.MethQualityFormula_WrongInfo = {math.random(5, 15), math.random(5, 15), math.random(5, 15), math.random(1, 4)} -- a little random to mess up permanent formula
  4.  
  5.  
  6.  
  7. -- add this code to hr_cm\lua\darkrp_modules\hr_cm\sv_hr_cm_help.lua
  8. concommand.Add("amph_100recipe", function(ply, cmd, args)
  9.     if (ply:IsAdmin() or ply:IsSuperAdmin()) then
  10.         ply:SendLua("LocalPlayer():EmitSound('vo/k_lab/kl_almostforgot.wav', 70, 100)");
  11.         ply:SendLua("local tab = {Color(255,255,255),[[Hey doc, here is ]],HR_CrystalMeth.MethName_Color,[[Amphetamine ]], Color(255,255,255),[[100% formula information:]]}chat.AddText(unpack(tab))");
  12.         ply:SendLua("local tab = {HR_CrystalMeth.AluminumBox_TextColor,[["..HR_CrystalMeth.AluminumBox_Text.."]], Color(255,255,255),[[ - "..(math.abs(HR_CrystalMeth.MethQualityFormula[1])*250).."g]]}chat.AddText(unpack(tab))");
  13.         ply:SendLua("local tab = {HR_CrystalMeth.CyfluthrinCan_TextColor,[["..HR_CrystalMeth.CyfluthrinCan_Text.."]], Color(255,255,255),[[ - "..math.abs(HR_CrystalMeth.MethQualityFormula[2]).." L]]}chat.AddText(unpack(tab))");
  14.         ply:SendLua("local tab = {HR_CrystalMeth.Methylamine_TextColor,[["..HR_CrystalMeth.Methylamine_Text.."]], Color(255,255,255),[[ - "..math.abs(HR_CrystalMeth.MethQualityFormula[3]).." L]]}chat.AddText(unpack(tab))");
  15.         ply:SendLua("local tab = {HR_CrystalMeth.Glass_Intermediate_Acid_Color,[["..HR_CrystalMeth.Glass_Intermediate_Acid.."]], Color(255,255,255),[[ - "..math.abs(HR_CrystalMeth.MethQualityFormula[4]).." L]]}chat.AddText(unpack(tab))");  
  16.     end;
  17. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement