Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventHandler("onPlayerJoin",root,function(el)
- bindKey(el,"U","down","localChat")
- end)
- function localChat(el,komenda,...)
- msg = table.concat({...}," ")
- if msg == "" then return end
- if string.len(msg) > 92 then return end
- local x,y,z=getElementPosition(el)
- local sphere=createColSphere(x,y,z,35)
- local players=getElementsWithinColShape(sphere,"player")
- for i,v in pairs(players) do
- outputChatBox("#cccccc[LOKALNY] #ffffff"..getPlayerName(source).."#dbdbdb: "..msg,v,_,_,_,true)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement