Unfreeze Attributes On All Players In Current Club

mail@pastecode.io avatar
unknown
xml
5 months ago
906 B
2
Indexable
Never
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>24006</ID>
      <Description>"Unfreeze Attributes On All Players In Current Club"</Description>
      <LastState/>
      <Color>DCDCDC</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{$lua}
if syntaxcheck then return end
[ENABLE]
local _updateFunc = function(addr)
	local Club = getAddressSafe(addr)
	if Club == nil or Club == 0 or not isClubOrNation(Club) then
		Club = readQword(addr)
	end
	if Club == nil or Club == 0 or not isClubOrNation(Club) then return end

	forEachPlayerInClub(Club, function(k, addr)
		local Person = getPersonFromPlayer(addr)
		writeBit(Person+pero.Pfl2, 5, false)
	end)
end

_updateFunc('ptrClub')
enableAutoDisable(memrec, nil)
[DISABLE]
</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
</CheatTable>