Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Have a Garrysmod Zombie RP? Hate the headcrabs? Well then this is for you...
- if ( SERVER ) then
- local function RemoveCrabs()
- for _, npc in pairs( ents.FindByClass( "npc_*" ) ) do
- if npc:IsNPC() then
- if string.find(string.lower(npc:GetClass()),"npc_headcrab") then
- SafeRemoveEntity( npc )
- elseif string.find(string.lower(npc:GetClass()),"zombie") || string.lower(npc:GetClass()) == "npc_zombine" then
- npc:Fire("setbodygroup","0")
- end
- end
- end
- end
- hook.Add( "Think", "No_Crabs", RemoveCrabs )
- end
Advertisement
Add Comment
Please, Sign In to add comment