Discord
Steam
/
Garry's Mod
/
Couldn't inclu..
Login/Join
Event Log
Couldn't include cl_init.lua (File Not Found) (<Nowhere>)
0 replies, posted
Search
In This Thread
[B]cl_init.lua[/B] [/CODE] include( "shared.lua" ) [/CODE] [B]init.lua[/B] [CODE]AddCSLuaFile( "cl_init.lua" ) //dl that AddCSLuaFile( "shared.lua" ) //dl that too include( "shared.lua" ) //load that SpawnLocation Zombie = {} function GM:PlayerInitialSpawn( ply ) if ply:IsAdmin() or ply:IsSuperAdmin() then ply:SetTeam(1) else ply:SetTeam(2) end end function GM:PlayerSpawn( ply ) self.BaseClass:PlayerSpawn( ply ) ply:SetGravity ( 1 ) ply:SetMaxHealth( 500, true ) ply:SetWalkSpeed( 325 ) ply:SetRunSpeed ( 350 ) end function GM:PlayerLoadout( ply ) if ply:Team() == 1 then ply:Give( "weapon_crowbar" ) ply:Give( "weapon_pistol" ) ply:Give( "weapon_smg1" ) ply:Give( "weapon_frag" ) ply:Give( "weapon_physcannon" ) ply:Give( "weapon_crossbow" ) ply:Give( "weapon_shotgun" ) ply:Give( "weapon_357" ) ply:Give( "weapon_rpg" ) ply:Give( "weapon_ar2" ) ply:Give( "weapon_physgun" ) end end function NPCDied(Victim, Killer, Weapon) if Victim:GetClass() == "npc_zombie" then for i = 1, #Zombie, 1 do if Zombie[i]:Health() <= 0 then Zombie[i] = ents.Create("npc_zombie") Zombie[i]:SetPos(SpawnLocation[i]:GetPos()) Zombie[i]:Spawn() end end end end hook.Add("OnNPCKilled", "Test", NPCDied)[/CODE] [B]shared.lua[/B] [CODE]GM.Name = "No_Grav" GM.Author = "Program" GM.Email = "SLT-ST_RedXVIII@hotmail.com" GM.Website = "http://216.227.108.37/" team.SetUp(1, "Admins", Color(0, 0, 0, 255)) team.SetUp(2, "Survivors", Color( 255, 0, 0, 255)) function GM:InitPostEntity() SpawnLocation = ents.FindByName("ZombieSpawn") for i = 1, #SpawnLocation, 1 do Zombie[i] = ents.Create("npc_zombie") Zombie[i]:SetPos(SpawnLocation[i]:GetPos()) Zombie[i]:Spawn() end end[/CODE] Extra Error: Couldn't Load Init Script: "cl_init.lua" Gives players who join, "Too many Lua Errors! Sorry!" [editline]26th November 2012[/editline] NVM, Just the Dedicated Server.
Sorry, you need to
Log In
to post a reply to this thread.