Вопрос Помощь с CW 2.0

Статус
В этой теме нельзя размещать новые ответы.
  • 6
  • 2
Контакты для связи отсутствуют.
Нужен скрипт на проверу (назовем так). Который будет смотреть, если у игрока vip, то ему доступны все модификации, если user запрещены все. CW 2.0
 
  • 6
  • 2
Контакты для связи отсутствуют.
я сейчас у врача так что не могу дать точный скрипт дам такую строчку

if ply:IsUserGroup("vip") then
придумай как ее заюзать
Попробовал засунуть, сразу в модификации под каждую, не работает.
 
  • 338
  • 16
  • 33
Попробовал засунуть, сразу в модификации под каждую, не работает.
нее ты должен сделать тип там где открытие меню модификаций перед ним написать
if ply:IsUserGroup("название группы") then
 
  • 6
  • 2
Контакты для связи отсутствуют.
1:
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")

if CLIENT then
    SWEP.DrawCrosshair = false
    SWEP.PrintName = "AEK-971"
    SWEP.CSMuzzleFlashes = true
    
    SWEP.IronsightPos = Vector(-2.266, 0, 0.559)
    SWEP.IronsightAng = Vector(1.432, -0.408, 0)
    
    SWEP.AimpointPos = Vector(-2.12, 0, -0.52)
    SWEP.AimpointAng = Vector(0.272, -0.069, 0)

    SWEP.EoTechPos = Vector(-2.06, 0, 0.063)
    SWEP.EoTechAng = Vector(-3.145, 0.209, 0)
    
    SWEP.KobraPos = Vector(-2, 0, -0.002)
    SWEP.KobraAng = Vector(1.478, 0.137, 0)
    
    SWEP.ShortDotPos = Vector(-2.06, -3.764, -0.22)
    SWEP.ShortDotAng = Vector(0, 0, 0)
    
    SWEP.PSOPos = Vector(-1.787, -2.313, 0.136)
    SWEP.PSOAng = Vector(0, 0, 0)
    
    SWEP.AlternativePos = Vector(-0.24, 0, -0.48)
    SWEP.AlternativeAng = Vector(0, 0, 0)

    SWEP.ViewModelMovementScale = 1
    
    SWEP.IconLetter = "b"
    killicon.Add("cw_aek971", "weaponicons/cw_aek971", Color(255, 80, 0, 150))
    
    SWEP.MuzzleEffect = "muzzleflash_ak74"
    SWEP.PosBasedMuz = false
    SWEP.ShellScale = 0.7
    SWEP.ShellOffsetMul = 1
    SWEP.ShellPosOffset = {x = 0, y = 0, z = 0}
    SWEP.SightWithRail = true
    SWEP.ForeGripOffsetCycle_Draw = 0
    SWEP.ForeGripOffsetCycle_Reload = 0.95
    SWEP.ForeGripOffsetCycle_Reload_Empty = 0.9
    
    SWEP.BoltBone = "AK_Bolt"
    SWEP.BoltShootOffset = Vector(0, 2.3, 0)
    SWEP.OffsetBoltOnBipodShoot = true

    SWEP.AttachmentModelsVM = {
        ["md_rail"] = {model = "models/wystan/attachments/akrailmount.mdl", bone = "AK_Body", rel = "", pos = Vector(-0.189, 0.731, 0.479), angle = Angle(0, 0, 0), size = Vector(1, 1, 1)},
        ["md_eotech"] = {model = "models/wystan/attachments/2otech557sight.mdl", bone = "AK_Body", rel = "", pos = Vector(0.31, -10.172, -8.875), angle = Angle(2.897, -90, 0), size = Vector(1, 1, 1)},
        ["md_aimpoint"] = {model = "models/wystan/attachments/aimpoint.mdl", bone = "AK_Body", rel = "", pos = Vector(-0.232, -5.877, -3.29), angle = Angle(0, 0, 0), size = Vector(1, 1, 1)},
        ["md_pbs1"] = {model = "models/cw2/attachments/pbs1.mdl", bone = "AK_Body", rel = "", pos = Vector(0.027, 19.017, -0.678), angle = Angle(0, -180, 0), size = Vector(0.699, 0.699, 0.699)},
        ["md_kobra"] = {model = "models/cw2/attachments/kobra.mdl", bone = "AK_Body", rel = "", pos = Vector(0.479, -0.793, -1.048), angle = Angle(0, -180, 0), size = Vector(0.5, 0.5, 0.5)},
        ["md_pso1"] = {model = "models/cw2/attachments/pso.mdl", bone = "AK_Body", rel = "", pos = Vector(0.229, -4.343, -0.336), angle = Angle(0, -180, 0), size = Vector(0.6, 0.6, 0.6)},
        ["md_schmidt_shortdot"] = {model = "models/cw2/attachments/schmidt.mdl", bone = "AK_Body", rel = "", pos = Vector(-0.248, -4.562, -2.221), angle = Angle(0, -90, 0), size = Vector(0.8, 0.8, 0.8)}
    }
    
    SWEP.PSO1AxisAlign = {right = 0, up = 0, forward = 0}
    SWEP.SchmidtShortDotAxisAlign = {right = 0, up = -0.075, forward = 0}
end

SWEP.MuzzleVelocity = 880 -- in meter/s

SWEP.LuaViewmodelRecoil = false

SWEP.Attachments = {[1] = {header = "Sight", offset = {800, -500},  atts = {"md_kobra", "md_eotech", "md_aimpoint", "md_schmidt_shortdot", "md_pso1"}},
    [2] = {header = "Barrel", offset = {300, -500}, atts = {"md_pbs1"}},
    ["+reload"] = {header = "Ammo", offset = {800, 0}, atts = {"am_magnum", "am_matchgrade"}}}

SWEP.Animations = {fire = {"shoot1", "shoot2", "shoot3"},
    reload = "reload_full",
    reload_empty = "reload",
    idle = "idle",
    draw = "draw"}
    
SWEP.Sounds = {    draw = {[1] = {time = 0, sound = "CW_AEK971_DEPLOY"},
[2] = {time = 0.6, sound = "CW_AEK971_FOLEY"}},

    reload_full = {[1] = {time = 0.37, sound = "CW_AEK971_MAGOUT"},
    [2] = {time = 1.42, sound = "CW_AEK971_MAGIN"},
    [4] = {time = 1.57, sound = "CW_AEK971_FOLEY"}},
    
    reload = {[1] = {time = 0.37, sound = "CW_AEK971_MAGOUT"},
    [2] = {time = 1.42, sound = "CW_AEK971_MAGIN"},
    [3] = {time = 2.22, sound = "CW_AEK971_BOLTPULL"},
    [4] = {time = 3, sound = "CW_AEK971_FOLEY"}}}

SWEP.SpeedDec = 30

SWEP.Slot = 3
SWEP.SlotPos = 0
SWEP.NormalHoldType = "ar2"
SWEP.RunHoldType = "passive"
SWEP.FireModes = {"auto", "3burst", "semi"}
SWEP.Base = "cw_base"
SWEP.Category = "CW 2.0"

SWEP.Author            = "Spy"
SWEP.Contact        = ""
SWEP.Purpose        = ""
SWEP.Instructions    = ""

SWEP.ViewModelFOV    = 70
SWEP.ViewModelFlip    = false
SWEP.ViewModel        = "models/cw2/rifles/aek971.mdl"
SWEP.WorldModel        = "models/cw2/rifles/w_aek971.mdl"

SWEP.Spawnable            = true
SWEP.AdminSpawnable        = true

SWEP.Primary.ClipSize        = 30
SWEP.Primary.DefaultClip    = 30
SWEP.Primary.Automatic        = true
SWEP.Primary.Ammo            = "5.45x39MM"

SWEP.FireDelay = 0.0631578947368421
SWEP.FireSound = "CW_AEK971_FIRE"
SWEP.FireSoundSuppressed = "CW_AEK971_FIRE_SUPPRESSED"
SWEP.Recoil = 1.1

SWEP.HipSpread = 0.043
SWEP.AimSpread = 0.005
SWEP.VelocitySensitivity = 1.6
SWEP.MaxSpreadInc = 0.05
SWEP.SpreadPerShot = 0.007
SWEP.SpreadCooldown = 0.13
SWEP.Shots = 1
SWEP.Damage = 33
SWEP.DeployTime = 0.6

SWEP.ReloadSpeed = 1
SWEP.ReloadTime = 1.87
SWEP.ReloadTime_Empty = 3.3
SWEP.ReloadHalt = 1.87
SWEP.ReloadHalt_Empty = 3.3
SWEP.SnapToIdlePostReload = false
Ну вот допустим код, оружия AEK. Куда здесь не могу понять
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу