Problem using gm_spawn (please help me!)

When he spawn something from it? Ok. I`ll give it a try.

Uhm… What keyword would I use then? if ply:Team?

[lua]
function Team(ply)
if ply:Team() == 1 then
code
else ply:Team() == 2 then
– code – Team 2
else
– no team
end
end
[/lua]

Ok. TYExM (Thank You Extremely Much)