• Spawn Protection Entity
    2 replies, posted
Hey FP! I had a quick entity I needed someone to make! This entity will stop spawn camping on my Team Deathmatch type gamemode. This entity should be visible, and deadly looking. (like a smoke cloud) This entity would spawn where the terrorist spawns are set. Only the terrorist team could walk through it without being killed! Have you ever played the game Zombie Survival? Yeah kinda like that spawn protection!
Well, I know this isn't what you wanted, but heres a quick script I made a few weeks back: [lua] hook.Add ( "PlayerSpawn", "ReqSpawn", function ( ply ) local x = 4 -- change to how many seconds you want the spawn protection to last ply:GodEnable() timer.Simple (x, function() ply:GodDisable() end) end [/lua] place it in garrysmod/garrysmod/lua/autorun/server, with whatever name you want, make sure to save it as .lua
alright, it works for now, until someone can do the one i requested :D
Sorry, you need to Log In to post a reply to this thread.