Hey guys! I own a Black Mesa Roleplay server with an edited version of DarkRP. It isnt a complete rip off of DarkRP, it has alot of edits but i just can’t seem to get one thing right. So i have this code i made in my DarkRP Modules, and here it is:
local entities = ents.FindInBox( Vector(-3951.572998, -11466.885742, 347.655273), Vector(-5822.107422, -5733.926758, -965.334229) );
if ply:GetModel() ~= “models/player/sgg/hev_helmet.mdl” then
for k, v in pairs(entities) do
if ( IsValid(v) and v:IsPlayer() and v:GetName() == ply:GetName() and v:Alive() ) then
Entity:SetHealth( 0 )
Now, the point is to kill any player that isnt wearing the correct “Suit” (playermodel). This does not seem to work, anyone got any ideas? Thanks!