i just got a darkrp server and the medic doesnt work is there a custom job download or script for a paramedic ?
What doesn't work about it?
All the medic is meant to do is heal people with health kit...
ik but the medic Weapon doesnt work i get an error when i pull it out
What's the error?
This is the error
[CODE][ERROR] gamemodes/darkrp/entities/weapon/med_kit/shared.lua:64: bad argument #1
to 'SetRenderMode' <number expected, go no value>
1. SetRenderMode - [C]:-1
2. createViewModels - gamemodes/darkrp/entities/weapon/med_kit/shared.lua:64
3. unknown - gamemodes/darkrp/entities/weapon/med_kit/shared.lua:81[/CODE]
[editline]13th January 2014[/editline]
So can you help this is the error ^
User this [code]if (SERVER) then
AddCSLuaFile("shared.lua")
end
SWEP.PrintName = "Medic Kit"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 4
SWEP.SlotPos = 0
SWEP.Description = "Heals the wounded."
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = "Left Click to heal player infront of user."
SWEP.Spawnable = false -- Change to false to make Admin only.
SWEP.AdminSpawnable = true
SWEP.Category = "DarkRP (Utility)"
SWEP.ViewModel = "models/weapons/c_medkit.mdl"
SWEP.WorldModel = "models/weapons/w_medkit.mdl"
SWEP.UseHands = true
SWEP.Primary.Recoil = 0
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = 1
SWEP.Primary.Automatic = true
SWEP.Primary.Delay = 0.1
SWEP.Primary.Ammo = "none"
SWEP.Secondary.Recoil = 0
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = 1
SWEP.Secondary.Automatic = true
SWEP.Secondary.Delay = 0.3
SWEP.Secondary.Ammo = "none"
function SWEP:PrimaryAttack()
self.Weapon:SetNextPrimaryFire(CurTime() + self.Primary.Delay)
if not SERVER then return end
local found
local lastDot = -1 -- the opposite of what you're looking at
local aimVec = self.Owner:GetAimVector()
for k,v in pairs(player.GetAll()) do
local maxhealth = v:GetMaxHealth() or 100
if v == self.Owner or v:GetShootPos():Distance(self.Owner:GetShootPos()) > 85 or v:Health() >= maxhealth or not v:Alive() then continue end
local direction = v:GetShootPos() - self.Owner:GetShootPos()
direction:Normalize()
local dot = direction:Dot(aimVec)
-- Looking more in the direction of this player
if dot > lastDot then
lastDot = dot
found = v
end
end
if found then
found:SetHealth(found:Health() + 1)
self.Owner:EmitSound("hl1/fvox/boop.wav", 150, found:Health())
end
end
function SWEP:SecondaryAttack()
self.Weapon:SetNextSecondaryFire(CurTime() + self.Secondary.Delay)
if not SERVER then return end
local maxhealth = self.Owner:GetMaxHealth() or 100
if self.Owner:Health() < maxhealth then
self.Owner:SetHealth(self.Owner:Health() + 1)
self.Owner:EmitSound("hl1/fvox/boop.wav", 150, self.Owner:Health())
end
end
[/code]
ok now do you know why people are able to hut V and fly ?? ulx noclip is disabled for users.
Make sure sv_cheats and sv_allowcslua is set to 0.
it still lets them fly ?
Then either you have a malicious addon or you setup your permissions incorrectly.
I didnt do much for this to happen when i first made the server this was possible
Ask players how they're doing it then.
i did and also i turned into a user and tryed it myself all i have to do is hit V and im flying
Then you obviously misconfigured your permissions or have a malicious addon. I can't help you with it.
ok but how would i misconfigure ?
[editline]14th January 2014[/editline]
or is there a way to make it so players cant use V when they join ?
Sorry, you need to Log In to post a reply to this thread.