Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----Credits----
- --By AlaMiku--
- ---------------
- print("Honor Kill Token Script Initiated...")
- function OnKillPlr(event, pPlayer, pVictim)
- local pLevel = pPlayer:GetPlayerLevel()
- local vicLevel = pVictim:GetPlayerLevel()
- local RandNum1 = math.random(1,3) --Adjust to Increase/Decrease chance of getting a token.
- local modedLevel = vicLevel + 10
- if(pLevel > modedLevel) then
- pPlayer:SendAreaTriggerMessage("Player "..pVictim:GetName().." is too low of a level to grant a token.")
- else
- if(RandNum1 == 2) then
- pPlayer:AddItem(ITEMID, 1) --Obviously the token's itemid.
- end
- end
- end
- RegisterServerHook(2, "OnKillPlr")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement