I’m trying to make it so I can spawn unlimited props but I don’t know how to do that one really, have unlimited health as in not take damage, and only for my SteamID. For the props it’s, http://wiki.garrysmod.com/?title=Gamemode.PlayerSpawnProp
But I don’t know how to add it. It would be great if someone could help. Also I quickly whipped this up, so I don’t know if there are errors. Thanks.
[lua]function DarkSpawn( ply )
if ply:SteamID() == “STEAM_0:1:18765762” ) then
ply:PrintMessage( HUD_PRINTTALK, "Welcome back, " … ply:Nick() … "
Your priveledges have been loaded.() )
else
ply:PrintMessage( HUD_PRINTTALK, "Welcome back, " .. ply:Nick() .. "
We hope you like this server, also - http://www.187ciclan.com() )
end
end
hook.Add( “PlayerSpawn”, “DarkSpawned”, DarkSpawn )
function playershouldtakedamage(victim, attacker)
if ply:SteamID() == “STEAM_0:1:18765762” ) then
return false
else
return true
end
hook.Add( “PlayerShouldTakeDamage”, “playershouldtakedamage”, playershouldtakedamage)
[/lua]