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: globalny
1. Chat GLobalny
[lua]function globalMessage(thePlayer, cmd, ...)
local message = table.concat ( { ... }, " " )
local name = getPlayerName(thePlayer)
outputChatBox("#FFFFFF"..name..": #aaaaaa"..message, getRootElement(), 255, 255, 255, true)
end
addCommandHandler("genel", globalMessage)


function Tags (mensaje, tipo)
local cuenta = getAccountName(getPlayerAccount(source))
local nombre = getPlayerName(source)

if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then
cancelEvent()
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000[Admin] "..nombre..": #00FF00"..mensaje, getRootElement(), r, g, b, true)
outputServerLog("[Admin] "..nombre..": "..mensaje)

elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("SuperModerator")) then
cancelEvent()
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000[SuperModerator] "..nombre..": #00FF00"..mensaje, getRootElement(), r, g, b, true)
outputServerLog("[SuperModerator] "..nombre..": "..mensaje)

elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Moderator")) then
cancelEvent()
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000[Moderator] "..nombre..": #00FF00"..mensaje, getRootElement(), r, g, b, true)
...