Script Not working

So I’m trying to do a test vip script, but it’s not working.

Here’s my init.lua where I think the problem lay:
init.lua
[lua]AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
include( “shared.lua” )

function GM:PlayerInitialSpawn( ply )
if ply:IsUserGroup( “vip” ) or ply:IsSuperAdmin() or ply:IsAdmin() != 1 then
ply:Kick(“You are not a ECGamers.com VIP”)
else
ply:StripWeapons()
ply:PrintMessage(HUD_PRINTTALK, “Hello “…ply:Nick()…” Welcome to the server”)
if ply:IsUserGroup( “vip” ) then
ply:ConCommand(“team_1”)
elseif ply:IsSuperAdmin() or ply:IsAdmin() == 1 then
ply:ConCommand(“team_1”)
end
end
end

function GM:PlayerLoadout( ply )

ply:StripWeapons()

if ply:Team() == 1 then
	if ply:IsUserGroup( "vip" ) then
		ply:Give( "weapon_stunstick" )
	end
end

end

function team_1( ply )
ply:SetTeam( 1 )
ply:Spawn()
end

concommand.Add( “team_1”, team_1 )[/lua]

Well 1st off theres no need to StripWeapons…but is there any error codes?

I strip the weapons for my own little listen server because I can’t forward ports so it ain’t worth setting up as a real server.

And no there are no errors but you don’t get anything and you don’t join the team automatically or when you select it in the menu or console.

Basically when I use ply:IsUserGroup() It does not grab it…

[lua]
AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
include( “shared.lua” )

function GM:PlayerInitialSpawn( ply )
if not ply:IsUserGroup( “vip” ) or not ply:IsSuperAdmin() or not ply:IsAdmin() then
ply:Kick(“You are not a ECGamers.com VIP”)
else
ply:StripWeapons()
ply:PrintMessage(HUD_PRINTTALK, “Hello “…ply:Nick()…” Welcome to the server”)
if ply:IsUserGroup( “vip” ) then
ply:ConCommand("team_1
")
elseif ply:IsSuperAdmin() or ply:IsAdmin() then
ply:ConCommand("team_1
")
end
end
end

function GM:PlayerLoadout( ply )

ply:StripWeapons()

if ply:Team() == 1 then
	if ply:IsUserGroup( "vip" ) then
		ply:Give( "weapon_stunstick" )
	end
end

end

function SetTeam1( ply, cmd, args )
ply:SetTeam( 1 )
ply:Spawn()
end
concommand.Add( “team_1”, SetTeam1 )
[/lua]

Fixed some syntax errors, look at yours compared to mine.

You also forgot to add the other two arguments required by a command.

I copied yours and once again it doesn’t let you join the team 1, nor does it give you the gun or even announce the hello message. Could this be something with the kick command?

Or is it just having trouble accessing the users.txt, everytime before I’ve tried to use the users.txt it seems to kill the gamemode, maybe there’s a connection issue?

And once again no error messages in console or anything like that.