Npc Drug Dealer

Hi,

I’ve create an npc drug dealer, With it i have one problem.

The problem is :

  • I can spawn a lot of entitie but i need spawn just for one player.

Here’s how to create entirely that I can do

function Spawngr(ply, ent)
if not ply:CanAfford(50) then
ply:AddMoney(-50)
local gr = ents.Create("seed_weed")
gr:SetPos(table.Random(paxSpawn))
gr.Owner = ply
gr.Own(ply)
gr:Spawn()
gr:Activate()

Thanks in advance