04-11-2012, 06:20 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 )
if (Player:GetGroups() == "Admins") then
return true
else
return false
end
end
Dont Work Help what problem?