Jump to content

بعد اذنكم


Recommended Posts

chat_range=100

function isPlayerInRangeOfPoint(player,x,y,z,range)

local px,py,pz=getElementPosition(player)

return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range

end

function onChat(player,_,msg)

local px,py,pz=getElementPosition(player)

local nick=getPlayerName(player)

for _,v in ipairs(getElementsByType("player")) do

if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then

outputChatBox("[local]"..nick..": #ffffff"..msg,v,30,30,200,true)

end

end

end

addCommandHandler("l",onChat)

انا عملت مود اللي هو لوكال شات انا فتحت موضوع قبل كدا للطريقة بس موضوع ضيعته لو احد لاقه ادمجه الموضوع المهم

بس مشكلة لايعمل معي لو احد يساعدني يكون كتير خيره

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...