04-11-2012, 08:23 PM
Code:
function Initialize( Plugin )
Plugin:SetName( "block" )
Plugin:SetVersion( 2 )
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_BLOCK_DIG )
LOG( "Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
return true
end
function OnBlockDig( PacketData, Player )
for Key, Group in pairs(Player:GetGroups()) do
if (Group:GetName() == "Admins") then
return true
end
end
end
No! Dont Work again