mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
TOOL.AddToMenu = false
|
||||
TOOL.ClientConVar[ "type" ] = "0"
|
||||
TOOL.ClientConVar[ "name" ] = "0"
|
||||
TOOL.ClientConVar[ "arg" ] = "0"
|
||||
|
||||
TOOL.Information = { { name = "left" } }
|
||||
|
||||
function TOOL:LeftClick( trace, attach )
|
||||
|
||||
local type = self:GetClientNumber( "type", 0 )
|
||||
local name = self:GetClientInfo( "name" )
|
||||
local arg = self:GetClientInfo( "arg" )
|
||||
|
||||
if ( CLIENT ) then return true end
|
||||
|
||||
if ( type == 0 ) then
|
||||
|
||||
Spawn_SENT( self:GetOwner(), name, trace )
|
||||
|
||||
elseif ( type == 1 ) then
|
||||
|
||||
Spawn_Vehicle( self:GetOwner(), name, trace )
|
||||
|
||||
elseif ( type == 2 ) then
|
||||
|
||||
Spawn_NPC( self:GetOwner(), name, arg, trace )
|
||||
|
||||
elseif ( type == 3 ) then
|
||||
|
||||
Spawn_Weapon( self:GetOwner(), name, trace )
|
||||
|
||||
elseif ( type == 4 ) then
|
||||
|
||||
CCSpawn( self:GetOwner(), nil, { name } ) -- Props
|
||||
|
||||
end
|
||||
|
||||
return true
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user