Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. addEventHandler("onPlayerJoin",root,function(el)
  2.     bindKey(el,"U","down","localChat")
  3. end)
  4.  
  5. function localChat(el,komenda,...)
  6.     msg = table.concat({...}," ")
  7.     if msg == "" then return end
  8.     if string.len(msg) > 92 then return end
  9.     local x,y,z=getElementPosition(el)
  10.     local sphere=createColSphere(x,y,z,35)
  11.     local players=getElementsWithinColShape(sphere,"player")
  12.     for i,v in pairs(players) do
  13.         outputChatBox("#cccccc[LOKALNY] #ffffff"..getPlayerName(source).."#dbdbdb: "..msg,v,_,_,_,true)
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement