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: acl!!!
1. Dodanie chatu tylko dla ACL!!!
Witam, chcia?bym si? spyta? jak doda?, aby chat by? tylko dla kogo? kto jest w ACL
"Premium" ? Chodzi mi o globala..
Skrypt By [color=orange][b]DaxRel69[/b][/color]

Kod:


[lua]
function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end



function onChat(message,messagetype)

if isGuestAccount(getPlayerAccount(source)) then
outputChatBox("Najpierw wejd? do gry.", source, 255, 000, 000)
return end

if messagetype == 0 then
cancelEvent()
local x, y, z = getElementPosition(source)
local chatCol = createColSphere(x,y,z,20)
local chatRadius = getElementsWithinColShape(chatCol)
local r, g, b = getPlayerNametagColor(source)
for key, value in ipairs(chatRadius) do
outputChatBox(getPlayerName(source).."#FFFFFF: "..message,value,r,g,b,true)
end
outputServerLog("LOCAL "..getPlayerName(source)..": "..message)
-- if not isPedInVehicle(source) then
--local talktime = string.len(message)*200

-- setPedAnim...