Add player ent

[lua]
local noobs = table.Copy(players)
table.RemoveByValue(noobs, murderer)
local magnum = table.Random(noobs)
if IsValid(ent2) then
ent2:Give(“weapon_ent2”)
end
local ent1 = table.Random(noobs)
if IsValid(ent1) then
ent:Give(“weapon_ent1”)
end
[/lua]
How to prevent the issuance of one player?

if #players.GetAll() == 1 ?

At issue should be issued one time, without repetition
[lua] if IsValid(ent1) then
crowbar:Give(“ent1”)
end

I am rofling so bad right now!
Your trying to give a variable called crowbar an entity which is actully stringed.

Look up the Give function.

Umm what?
ply:Give( String weapon name )
That’s exactly what he’s doing

Wtf is crowbar and ent2 tho?

[lua]
local noobs = table.Copy(players)
table.RemoveByValue(noobs, murderer)
local magnum = table.Random(noobs)
if IsValid(magnum) then
magnum:Give(“weapon_magnum”)
end
[/lua]
I need to give weapons again, but to give the other player without repeating

Bruh English please…
If you’re having trouble try this but honest to god I have no idea what you want to do …

U seriously cant see it?
Crowbar is a name of a weapon, and ent1 is the entity he is trying to give it to lol…

I gave as an example …

Your variable names are cancer. I can’t understand whats going on.