Disallowed movement
#8
Job = {}

function Initialize(Plugin)
	Plugin:SetName("Jobs")
	Plugin:SetVersion(1)
		
	cPluginManager.BindCommand("/jobs",                    "jobs.jobs",                  HandleJobsCommand,                        " - Join, browse or leave jobs.");
	
	cPluginManager.AddHook(cPluginManager.HOOK_BLOCK_TO_PICKUPS, OnBlockToPickups)
	cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_PLACING_BLOCK, OnPlayerPlacingBlock)
	cPluginManager.AddHook(cPluginManager.HOOK_KILLING, OnKilling)
	cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_BROKEN_BLOCK, OnPlayerBrokenBlock)
	cPluginManager:AddHook(cPluginManager.HOOK_PLAYER_FISHING, OnPlayerFishing)
	cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_JOINED, OnPlayerJoined)
	cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_MOVING, OnPlayerMoving)
	
	PM = cPluginManager
		
	UsersIni = cIniFile()	
	UsersIni:ReadFile("jobs.ini")	
	
	local CheckJob = function(Player)
		Job[Player:GetName()] = UsersIni:GetValue(Player:GetUUID(),   "Job")
	end
	
	cRoot:Get():ForEachPlayer(CheckJob)
	
	LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
	return true
end

I think this is ok
Reply
Thanks given by:


Messages In This Thread
Disallowed movement - by Bobstergaming - 11-07-2015, 09:16 PM
RE: Disallowed movement - by NiLSPACE - 11-07-2015, 09:54 PM
RE: Disallowed movement - by xoft - 11-09-2015, 08:32 AM
RE: Disallowed movement - by Bobstergaming - 11-12-2015, 06:05 AM
RE: Disallowed movement - by DiamondToaster - 11-10-2015, 06:34 AM
RE: Disallowed movement - by Bobstergaming - 11-12-2015, 06:41 AM
RE: Disallowed movement - by NiLSPACE - 11-12-2015, 07:54 AM
RE: Disallowed movement - by Bobstergaming - 11-14-2015, 01:25 AM
RE: Disallowed movement - by DiamondToaster - 11-14-2015, 09:20 AM
RE: Disallowed movement - by NiLSPACE - 11-14-2015, 01:28 AM
RE: Disallowed movement - by Seadragon91 - 11-14-2015, 04:19 PM
RE: Disallowed movement - by Bobstergaming - 11-15-2015, 07:03 PM
RE: Disallowed movement - by NiLSPACE - 11-15-2015, 07:21 PM
RE: Disallowed movement - by xoft - 11-18-2015, 04:28 AM
RE: Disallowed movement - by Bobstergaming - 11-18-2015, 06:48 AM
RE: Disallowed movement - by xoft - 11-18-2015, 06:40 PM
RE: Disallowed movement - by NiLSPACE - 11-18-2015, 08:41 PM
RE: Disallowed movement - by xoft - 11-18-2015, 09:55 PM



Users browsing this thread: 8 Guest(s)