So i am trying to make this swep print messages in the center of the players screen but it keeps appearing on other players screen and not the person who used it. its also doing the same thing with PRINTTEXT, Also the Player:Kill Keeps killing other players other than the player holding it. I’m trying to make this addon work on a darkrp server.
-- My BOI Punk
--Main Stuff
SWEP.Category = "DJ Kitty"
SWEP.Base = "weapon_base"
SWEP.PrintName = "Triggerd SWEP"
SWEP.Author = "DJ Kitty"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Purpose = "Hugh Mungus WOT!?"
SWEP.Instructions = "Is that sexual harassment!?!"
SWEP.ViewModelFlip = false
SWEP.DrawCrosshair = false
SWEP.Secondary = false
--Swep Models / View
SWEP.ViewModel = "models/weapons/v_hands.mdl"
SWEP.WorldModel = ""
SWEP.ViewModelFOV = 65
SWEP.ShowViewModel = true
SWEP.ShowWorldModel = true
SWEP.ViewModelBoneMods = {}
--Primary Settings
SWEP.Primary.ClipSize = 0
SWEP.Primary.Automatic = false
SWEP.Primary.DefaultClip = 0
SWEP.Primary.Ammo = "none"
SWEP.DrawCrosshair = false
SWEP.Primary.Delay = 10
-- Hold Type
function SWEP:Initialize()
self:SetWeaponHoldType("normal")
end
-- Primary
function SWEP:PrimaryAttack()
self:EmitSound("wot.mp3")
if ( SERVER ) then Entity(1):PrintMessage(HUD_PRINTCENTER, "Slightly TRIGGERD") end
end
-- Secondary
function SWEP:SecondaryAttack()
self:EmitSound("harassment.mp3")
if ( SERVER ) then Entity(1):PrintMessage(HUD_PRINTCENTER, "TRIGGERD") end
end
-- Reload
function SWEP:Reload()
if ( SERVER ) then Entity(1):PrintMessage(HUD_PRINTTALK, "WOT!?!") end
if ( SERVER ) then Player(1):Kill() end
end
-- Deploy
function SWEP:Deploy()
end