04-02-2012, 05:16 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 )
local World = Player:GetWorld()
if (World:GetName() == "WorldAdmins") then
if Player:GetGroupName().contains("Admins") then
return true
else
return false
end
end
end
It is dont work. what's wrong?