Hallo,
Ich habe meinen Gamemode fertig, nu komme ich zu den waffen,
die erste die ich gemacht habe schaut voll komisch aus:
Garrysmod.png
Der Lua-Code ist der:
Code:
if SERVER then
AddCSLuaFile ("shared.lua")
SWEP.Weight = 1
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
elseif CLIENT then
SWEP.PrintName = "Adminweapon"
SWEP.Slot = 1
SWEP.SlotPos = 4
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = true
language.Add("Undone_Thrown_SWEP_Entity","Undone Thrown SWEP Entity")
end
SWEP.Author = "Evolutio"
SWEP.Contact = "[email protected]"
SWEP.Purpose = "All :P"
SWEP.Instructions = "Leftklick"
SWEP.Category = "Admin"
SWEP.Spawnable = false
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/w_knife_t.mdl"
SWEP.ActiveHoldType = "melee2"
SWEP.InitialHoldType = "melee2"
SWEP.Primary.ClipSize = 9999
SWEP.Primary.DefaultClip = 9999
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = 9999
SWEP.Secondary.DefaultClip = 9999
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none"
SWEP.DamageToPlayers1 = 19
SWEP.DamageToPlayers2 = 24
local ShootSound = Sound("Metal.SawbladeStick")
function SWEP:Reload()
end
function SWEP:Think()
end
//Throw an office chair on primary attack
//function SWEP:PrimaryAttack()
//end
//Throw a wooden chair on secondary attack
//function SWEP:SecondaryAttack()
//end
hoffe, einer kann mir helfen.