Wysłany: 2019-01-13, 15:32
adisonboss
Wiek: 23 Na forum: 3331 dni Posty: 237
Piwa : 6
Witam. Mam problem. Ot?? jak zrobi? komend? /me w tym skrypcie poniewa? on to usuwa
local chatRadius = 100
function sendMessageToNearbyPlayers ( message , messageType )
if ( messageType == 0 ) then
local posX , posY , posZ = getElementPosition ( source )
local chatSphere = createColSphere ( posX , posY , posZ , chatRadius )
local nearbyPlayers = getElementsWithinColShape ( chatSphere , "player" )
destroyElement ( chatSphere )
for index , nearbyPlayer in ipairs ( nearbyPlayers ) do
local red , green , blue = getPlayerNametagColor ( source )
outputChatBox ( getPlayerName ( source ).. ": #ffffff" .. message , nearbyPlayer , red , green , blue , true )
end
cancelEvent ( )
end
end
addEventHandler ( "onPlayerChat" , getRootElement (), sendMessageToNearbyPlayers )
addEventHandler ( "onPlayerChat" , getRootElement (),
function ( message , messageType )
if messageType == 1 then
cancelEvent ()
end
end )
ZA POMOC ORAZ
Wysłany: 2019-01-13, 15:35
IgorPL222
LUA
Wiek: 26 Na forum: 3112 dni Posty: 133
Nick w MP: mxgvr
Piwa : 746
local chatRadius = 100
function sendMessageToNearbyPlayers ( message , messageType )
if ( messageType == 0 ) then
local posX , posY , posZ = getElementPosition ( source )
local chatSphere = createColSphere ( posX , posY , posZ , chatRadius )
local nearbyPlayers = getElementsWithinColShape ( chatSphere , "player" )
destroyElement ( chatSphere )
for index , nearbyPlayer in ipairs ( nearbyPlayers ) do
local red , green , blue = getPlayerNametagColor ( source )
outputChatBox ( getPlayerName ( source ).. ": #ffffff" .. message , nearbyPlayer , red , green , blue , true )
end
cancelEvent ( )
end
end
addEventHandler ( "onPlayerChat" , getRootElement (), sendMessageToNearbyPlayers )
Więcej szczegółów
Wystawiono 1 piw(a):adisonboss
Wysłany: 2019-01-13, 15:47
adisonboss
Wiek: 23 Na forum: 3331 dni Posty: 237
Piwa : 6
Dzienga
[ Dodano : 2019-01-13, 15:47 ]
Do zamkniecia
[ Dodano : 2019-01-13, 16:08 ]
WR?C NIE DO ZAMKNIECIA PONIEWAZ KAZDY TO WIDZI A NIE TYLKO LOKAL
[ Dodano : 2019-01-13, 16:08 ]
IgorPL222 ,
Wysłany: 2019-01-13, 16:30
IgorPL222
LUA
Wiek: 26 Na forum: 3112 dni Posty: 133
Nick w MP: mxgvr
Piwa : 746
local chatRadius = 100
function sendMessageToNearbyPlayers ( message , messageType )
if ( messageType == 0 ) then
local posX , posY , posZ = getElementPosition ( source )
local chatSphere = createColSphere ( posX , posY , posZ , chatRadius )
local nearbyPlayers = getElementsWithinColShape ( chatSphere , "player" )
destroyElement ( chatSphere )
for index , nearbyPlayer in ipairs ( nearbyPlayers ) do
local red , green , blue = getPlayerNametagColor ( source )
outputChatBox ( getPlayerName ( source ).. ": #ffffff" .. message , nearbyPlayer , red , green , blue , true )
end
cancelEvent ( )
elseif ( messageType == 1 ) then
local posX , posY , posZ = getElementPosition ( source )
local chatSphere = createColSphere ( posX , posY , posZ , chatRadius )
local nearbyPlayers = getElementsWithinColShape ( chatSphere , "player" )
destroyElement ( chatSphere )
for index , nearbyPlayer in ipairs ( nearbyPlayers ) do
local red , green , blue = getPlayerNametagColor ( source )
outputChatBox ( "* " .. getPlayerName ( source ).. " " .. message , nearbyPlayer , 128 , 0 , 128 , true )
end
cancelEvent ( )
end
end
addEventHandler ( "onPlayerChat" , getRootElement (), sendMessageToNearbyPlayers )
Wysłany: 2019-01-13, 16:32
adisonboss
Wiek: 23 Na forum: 3331 dni Posty: 237
Piwa : 6
Dziena
[ Dodano : 2019-01-13, 16:33 ]
Mo?na zamyka?
Tagi: nie :: działające :: /me :: przez :: skrypt
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: