Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2019-01-13, 15:32


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

Witam. Mam problem. Ot?? jak zrobi? komend? /me w tym skrypcie poniewa? on to usuwa

local chatRadius 100
 
function sendMessageToNearbyPlayers messagemessageType )
    if ( messageType == then
        local posXposYposZ getElementPosition source )
 
        local chatSphere createColSphere posXposYposZchatRadius )
        local nearbyPlayers getElementsWithinColShape chatSphere"player" )
        destroyElement chatSphere )
 
        for indexnearbyPlayer in ipairsnearbyPlayers ) do
            local redgreenblue getPlayerNametagColor source )
            outputChatBoxgetPlayerName source )..": #ffffff".. messagenearbyPlayerredgreenbluetrue )
        end
        cancelEvent ( )
    end
end
addEventHandler "onPlayerChat"getRootElement(), sendMessageToNearbyPlayers )


addEventHandler "onPlayerChat"getRootElement(),
function ( messagemessageType )
    if messageType == 1 then
        cancelEvent()
    end
end)

ZA POMOC R* ORAZ :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-01-13, 15:35


IgorPL222

LUA






Wiek: 26
Na forum: 3112 dni
Posty: 133
Nick w MP: mxgvr

Piwa: 746

Respekt: 55,3



local chatRadius 100
 
function sendMessageToNearbyPlayers messagemessageType )
    if ( messageType == then
        local posXposYposZ getElementPosition source )
 
        local chatSphere createColSphere posXposYposZchatRadius )
        local nearbyPlayers getElementsWithinColShape chatSphere"player" )
        destroyElement chatSphere )
 
        for indexnearbyPlayer in ipairsnearbyPlayers ) do
            local redgreenblue getPlayerNametagColor source )
            outputChatBoxgetPlayerName source )..": #ffffff".. messagenearbyPlayerredgreenbluetrue )
        end
        cancelEvent ( )
    end
end
addEventHandler "onPlayerChat"getRootElement(), sendMessageToNearbyPlayers )

:)

Podpis
discord: mxgvr
Postaw piwo autorowi tego posta
 

 
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

Respekt: 50

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,

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-01-13, 16:30


IgorPL222

LUA






Wiek: 26
Na forum: 3112 dni
Posty: 133
Nick w MP: mxgvr

Piwa: 746

Respekt: 55,3


local chatRadius 100
 
function sendMessageToNearbyPlayers messagemessageType )
    if ( messageType == then
        local posXposYposZ getElementPosition source )
 
        local chatSphere createColSphere posXposYposZchatRadius )
        local nearbyPlayers getElementsWithinColShape chatSphere"player" )
        destroyElement chatSphere )
 
        for indexnearbyPlayer in ipairsnearbyPlayers ) do
            local redgreenblue getPlayerNametagColor source )
            outputChatBoxgetPlayerName source )..": #ffffff".. messagenearbyPlayerredgreenbluetrue )
        end
        cancelEvent ( )
     elseif (messageType == 1then 
        local posXposYposZ getElementPosition source )
 
        local chatSphere createColSphere posXposYposZchatRadius )
        local nearbyPlayers getElementsWithinColShape chatSphere"player" )
        destroyElement chatSphere )
 
        for indexnearbyPlayer in ipairsnearbyPlayers ) do
            local redgreenblue getPlayerNametagColor source )
            outputChatBox"* "..getPlayerName source ).." ".. messagenearbyPlayer128,0,128true )
        end
        cancelEvent ( )
    end
end
addEventHandler "onPlayerChat"getRootElement(), sendMessageToNearbyPlayers )




Podpis
discord: mxgvr
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-01-13, 16:32


adisonboss







Wiek: 23
Na forum: 3331 dni
Posty: 237

Piwa: 6

Respekt: 50

Dziena

[ Dodano: 2019-01-13, 16:33 ]
Mo?na zamyka?

Postaw piwo autorowi tego posta
 

 
Tagi: nie :: działające :: /me :: przez :: skrypt
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Nie działające /me przez skrypt Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku