mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-18 22:23:46 +03:00
34 lines
793 B
Lua
34 lines
793 B
Lua
--[[
|
|
| 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 = "Ptasie jajo"
|
|
ITEM.model = "models/willardnetworks/food/egg2.mdl"
|
|
ITEM.description = "Małe jajo z którego niedługo wykluje się piskle."
|
|
|
|
ITEM.functions.Hatch = {
|
|
icon = "icon16/briefcase.png",
|
|
OnRun = function(item)
|
|
if (item:GetData("hatchTime", 0) < os.time()) then
|
|
net.Start("birdEggHatch")
|
|
net.Send(item.player)
|
|
|
|
return false
|
|
else
|
|
item.player:Notify("Jajo nie jest jeszcze gotowe do wyklucia!")
|
|
|
|
return false
|
|
end
|
|
end,
|
|
OnCanRun = function(item)
|
|
return item.player:Team() == FACTION_BIRD
|
|
end
|
|
}
|