I need some help with my code. Simply it doesnt work.
I have an entity in the map im playing its name is “es1” with the obsolete pic
team.SetUp( 1, test, Color (0, 0, 255, 255)) team.SetSpawnPoint( test, "es1" )
AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) include( 'shared.lua' ) function spawn1( pl ) pl:SetTeam( 1 ) pl:Spawn() end add.concommand( spawn1, "spawn1" )
If anyone knows how to get this work please edit it to gmod wiki team.SetSpawnPoint desc.
And ofc reply how to get it work