• 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!

Solved Broadcast only in special arena

okurde

New Member
Joined
Jan 28, 2009
Messages
134
Reaction score
1
Hey, Is it possible to make broadcast only in special arena?

I tried with
Code:
if(isInRange(getPlayerPosition(cid), {x = 5541, y = 3421, z = 5}, {x = 5981, y = 3521, z = 8})) then
    doBroadcastMessage('Leave this place as fast as you can!', MESSAGE_EVENT_ADVANCE)
end

But everyone receive this message :/ Or maybe is there any other way to send message to players who are only in thia area?


My second problem: how can I delete all conditions? I tried with
Code:
doRemoveCondition(cid, CONDITION_INFIGHT)
but it does not remove condition when someone killed other player
Thanks
 
Code:
for _, pid in ipairs(getPlayersOnline()) do
     if isInRange(getPlayerPosition(pid), {x = 5541, y = 3421, z = 5}, {x = 5981, y = 3521, z = 8}) then
         doPlayerSendTextMessage(pid, MESSAGE_EVENT_ADVANCE, 'Leave this place as fast as you can!')
     end
end


Code:
doRemoveConditions(cid)
 
Back
Top