My favorites | Sign in
Project Home Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 412 attachment: sv_spawnprotection.lua (399 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local Plugin = {}
Plugin.Title = "Spawn Protection"
Plugin.Description = "Protects a player at spawn for 5 seconds."
Plugin.Privileges = { "SpawnProtection" }
Plugin.Author = "Tom"

function Plugin:PlayerSpawn( ply )
if ( ply:EV_HasPrivilege( "SpawnProtection" )) then
ply:GodEnable()
timer.Simple(5, function()
ply:GodDisable()
end)
end
end

evolve:RegisterPlugin( Plugin )
Powered by Google Project Hosting