Login to ZARP
|
hook.Add( "AcceptInput", "SSRPCode", function( ent, name, activator, caller, data )
if ent:GetClass() == "func_button" and (name == "Lock" or name == "Unlock") and ent:MapCreationID() == 2472 then
local str = "PD lock down has started"
if (name == "Lock") then
str = "PD lock down has ended"
end
for k,v in pairs(player.GetAll()) do
v:ChatPrint(str)
end
end
end )