Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: tagiem
1. chat z id i tagiem
Cze?? chce zrobi? id z tagiem mam kod na chat z id ale chce jeszcze do??czyc do tego tag czyli np (id)[Administrator]Nick gracza. Za pomoc daje :piwo: + R*

Kod:

addEventHandler
("onPlayerChat", root, function(tresc, msgtype)
    if (
msgtype == 0) then
        cancelEvent
()
        
local x,y,z = getElementPosition(source)
        for 
key, gracze in ipairs(getElementsByType("player")) do
            
local x2,y2,z2 = getElementPosition(gracze)
            if (
getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)<20) then
                local int 
= getElementInterior(source)
                
local dim = getElementDimension(source)
                
local int2 = getElementInterior(gracze)
                
local dim2 = getElementDimension(gracze)
                                                                 
                if (
int == int2 and dim == dim2) then
                    outputChatBox
("#0000FF("..getElementData(source,"id")..")#ffffff ".. getPlayerName(source) ..":#ffffff ".. tresc, gracze, 255, 255, 255, true)
                       
                
end
            end
        end
    end
end
)
2. Problem z tagiem
Wgra?em tagi do serwera zabawa i mam problem, poniewa? pisz? na chacie podw?jnie. Zauwa?y?em, ?e po wy??czeniu freeroam jest ok ale musz? mie? to w??czone. Co zrobi??