Files
wnsrc/gamemodes/ixhl2rp/plugins/n7stuff/items/sh_pda_cwu.lua

33 lines
801 B
Lua
Raw Normal View History

2024-08-04 23:12:27 +03:00
--[[
| 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/
--]]
ITEM.name = "PDA CWU"
ITEM.model = Model("models/fruity/tablet/tablet_sfm.mdl")
ITEM.description = "PDA wydawane dla lokalnych grup CWU."
ITEM.category = "Combine"
ITEM.width = 1
ITEM.height = 1
ITEM.KeepOnDeath = true
ITEM.functions.Open = {
OnRun = function(item)
net.Start("ixDataFilePDA_CWU_Open")
net.Send(item.player)
return false
end,
OnCanRun = function(item)
local character = item.player:GetCharacter()
return item.player:Team() == FACTION_WORKERS or character:IsVortigaunt() and character:GetBioticPDA() == "CWU"
end
}