Well i saw this awhile ago, and im not sure if it got made it not but what it does it Broadcasts to the server when you kill a player if the player that killed the target got an Unjustified Frag or Justified Frag.
So here it is.
Enjoy
So here it is.
Code:
<event type="kill" name="Killb" event="script" value="killb.lua"/>
Code:
registerCreatureEvent(cid, "Killb")
Lua:
function onKill(cid, target)
if isPlayer(target) == TRUE then
if ((isInParty(target) and isInParty(cid)) and (getPlayerParty(cid) == getPlayerParty(target))) and isPlayer(target)then
broadcastMessage(getCreatureName(cid) .. " just killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING)
elseif getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then
broadcastMessage(getCreatureName(cid) .. " just killed ".. getCreatureName(target).." (UnJustified)",MESSAGE_STATUS_WARNING)
elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then
broadcastMessage(getCreatureName(cid) .. " just killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING)
end
end
return TRUE
end
Code:
00:57 Test Three just killed Test (UnJustified)
01:00 Test just killed Test Three (Justified)
Enjoy
Last edited: