Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------
- -----------------------------------------------------
- if SERVER then
- AddCSLuaFile()
- end
- if CLIENT then
- SWEP.PrintName = "Телефон"
- SWEP.Slot = 1
- SWEP.SlotPos = 2
- SWEP.DrawAmmo = false
- SWEP.DrawCrosshair = false
- end
- SWEP.Author = ""
- SWEP.Instructions = "Press "
- SWEP.Contact = ""
- SWEP.Purpose = ""
- SWEP.ViewModel = "models/weapons/v_buddyfinder.mdl"
- SWEP.WorldModel = "models/weapons/c_buddyfinder.mdl"
- SWEP.ViewModelFOV = 72
- SWEP.ViewModelFlip = false
- SWEP.AnimPrefix = "rpg"
- SWEP.Spawnable = true
- SWEP.AdminSpawnable = true
- SWEP.Category = "Other"
- SWEP.Primary.ClipSize = -1
- SWEP.Primary.DefaultClip = 0
- SWEP.Primary.Automatic = false
- SWEP.Primary.Ammo = ""
- SWEP.Secondary.ClipSize = -1
- SWEP.Secondary.DefaultClip = 0
- SWEP.Secondary.Automatic = false
- SWEP.Secondary.Ammo = ""
- SWEP.UseHands = true
- function SWEP:Initialize()
- self:SetWeaponHoldType("slam")
- end
- function SWEP:Deploy()
- if SERVER then
- self.Owner:DrawWorldModel(true)
- end
- end
- function SWEP:Menu()
- local m,t = DermaMenu(), player.GetAll()
- table.RemoveByValue( t, LocalPlayer() )
- local lel = m:AddSubMenu( 'Позвонить' )
- table.sort( t, function( f,l )
- return f:Team() > l:Team()
- end )
- for k,v in pairs( t ) do
- local ы = lel:AddOption( v:GetName(), function()
- end)
- ы:SetColor( Color(0,0,0,255) )
- end
- m:Open()
- m:SetPos( ScrW()/2 - m:GetWide()/2, ScrH()/2 )
- end
- function SWEP:PrimaryAttack()
- if CLIENT then
- self:Menu()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement