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(trescmsgtype)
    if (
msgtype == 0then
        cancelEvent
()
        
local x,y,getElementPosition(source)
        for 
keygracze in ipairs(getElementsByType("player")) do
            
local x2,y2,z2 getElementPosition(gracze)
            if (
getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)<20then
                local int 
getElementInterior(source)
                
local dim getElementDimension(source)
                
local int2 getElementInterior(gracze)
                
local dim2 getElementDimension(gracze)
                                                                 
                if (
int == int2 and dim == dim2then
                    outputChatBox
("#0000FF("..getElementData(source,"id")..")#ffffff ".. getPlayerName(source) ..":#ffffff ".. trescgracze255255255true)
                       
                
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??