• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

PvP Channel

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Why don't work?
Code:
function onKill(cid, target, lastHit)
    if isPlayer(target) == true then
      doPlayerSendChannelMessage(cid, getCreatureName(cid), "I have killed the ".. getCreatureName(target) .." on level ".. getPlayerLevel(target) ..".", TALKTYPE_CHANNEL_HIGHLIGHT, PvP)
    end
  return true
end

The Channel PvP exists
 
ok, but the function is correct?
Look:
Code:
doPlayerSendChannelMessage(cid, getCreatureName(cid)
or the correct is:
Code:
doPlayerSendChannelMessage(cid, cid
?
 
doPlayerSendChannelMessage(cid, getCreatureName(cid), "I have killed the ".. getCreatureName(target) .." on level ".. getPlayerLevel(target) ..".", TALKTYPE_CHANNEL_HIGHLIGHT, ID OF CHANNEL)

Not sure if it is correct.

Change for ID of channel, you can find it in channles.xml file.
 
Back
Top