Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add a judge when who is pulled out of prison by others and directly re-imprisoned. #100

Open
kissingers opened this issue Nov 5, 2022 · 1 comment
Labels
Enhancement Idea to improve upon the anticheat module. Help Wanted Out side of the maintainers ability\free time\or understanding and requests help from community devs Role Play Feature described as Role Play and will not be a priority of any kind. Suggestion Suggestions to change or handle something differently.

Comments

@kissingers
Copy link

Describe your feature request or suggestion in detail

I do this by lua, register a map change even, who still be jailed(by who have the aura 71041 with time 0) will direct teleport back to prison. I think if this is functions that come with the module , and can config in .conf file, will more good for server mgmt.

local function PlayerUpdateMap(event,player)
if player:HasAura(71041) then
if player:Teleport(1,16227.80,16403.01,-64.38,3.51117) then
player:SendBroadcastMessage("go back to prison...")
end
end
end
RegisterPlayerEvent(27,PlayerUpdateMap)

Describe a possible solution to your feature or suggestion in detail

No response

Additional context

No response

@acidmanifesto acidmanifesto added Suggestion Suggestions to change or handle something differently. Enhancement Idea to improve upon the anticheat module. Help Wanted Out side of the maintainers ability\free time\or understanding and requests help from community devs labels Nov 5, 2022
@kissingers
Copy link
Author

kissingers commented Nov 12, 2022

Because I can't judge who ever be imprison, so I update the lua, those have aura 71041 by other way will not send to prison by mistake.
I think the anticheat mod know who is in prison, so it will easy to judge who will back to prison if he change the map.

print(">>Script: Reprison system loading...OK")
local EverToPrison = {}

local function PrisonMapJudge(event,player)
	local pGUID = player:GetGUIDLow()
	if player:HasAura(71041) then
		if player:GetAreaId() == 876 then
			EverToPrison[pGUID] = 1
		elseif EverToPrison[pGUID] then
			if player:Teleport(1,16227.80,16403.01,-64.38,3.51117) then
				player:SendBroadcastMessage("go back to prison...")
			end
		end
	end
end

--PLAYER_EVENT_ON_ChangeMap
RegisterPlayerEvent(27,PrisonMapJudge) 

@acidmanifesto acidmanifesto added the Role Play Feature described as Role Play and will not be a priority of any kind. label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Idea to improve upon the anticheat module. Help Wanted Out side of the maintainers ability\free time\or understanding and requests help from community devs Role Play Feature described as Role Play and will not be a priority of any kind. Suggestion Suggestions to change or handle something differently.
Projects
None yet
Development

No branches or pull requests

2 participants