Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local T = {123, 123, 123, 123} -- creature entries
- local function Reward(player)
- -- reward code (SQL?)
- end
- local function OnDeath(pUnit, event, unit)
- if(unit:GetObjectType() ~= "Player") then return end
- if(unit:IsInGroup()) then
- for k,v in ipairs(unit:GetGroupPlayers()) do
- Reward(v)
- end
- else
- Reward(unit)
- end
- end
- for k,v in ipairs(T) do
- RegisterUnitEvent(v, 4, OnDeath)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement