Wysłany: 2015-03-12, 15:29
Mateusz512
Wiek: 27 Na forum: 4511 dni Posty: 44
Witam, od pewnego czasu zmagam si? z problemem na serwerze freeroam, mianowicie gdy wpisuj? /register (login) (has?o) wyskakuje mi komunikat "Unknown error", gdy zrobi?reinstal serwera dzia?a dobrze, lecz gdy wgram sw?j acl zn?w nie dzia?a.
Prosz? o szybk? pomoc.
Wysłany: 2015-03-12, 20:21
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Wysłany: 2015-03-12, 20:51
Mateusz512
Wiek: 27 Na forum: 4511 dni Posty: 44
Ju? naprawione, problemem by?a komenda zablokowana w acl'u przy randze SuperModerator, lecz teraz zacz?? mi nie dzia?a? skrypt na tagi...
Oto kod, jest tutaj te? podczepiony antispam wi?c nie wiem dlaczego nie chce dzia?a? je?li wczoraj wszystko pi?knie chodzi?o.
function chatbox ( text , type )
if not getElementData ( source , "blockspam" ) then
if type == 0 then
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Wlasciciel" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#3366FF-|> W?a?ciciel <|-#FFFFFF " .. getPlayerName ( source ) .. ":#9999CC " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [W?a?ciciel] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "SuperAdmin" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#FF3300|> S-Admin <|#FFFFFF " .. getPlayerName ( source ) .. ":#FF3333 " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [S-Admin] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Admin" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#FF0000|> Admin <|#FFFFFF " .. getPlayerName ( source ) .. ":#FF3366 " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "JuniorAdmin" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#FF6600-|> JuniorAdmin <|-#FFFFFF " .. getPlayerName ( source ) .. ":#FF6666 " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [JuniorAdmin] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "SuperModerator" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#00FF00|> S-Mod <|#FFFFFF " .. getPlayerName ( source ) .. ":#93DB70 " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [SuperModerator] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Moderator" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#6B8E23|> Mod <|#FFFFFF " .. getPlayerName ( source ) .. ":#99CC00 " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [Moderator] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Support" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#006699|> Support <|#FFFFFF " .. getPlayerName ( source ) .. ":#6699CC " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [Support] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Premium" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#FFFF00|> Premium <|#FFFFFF " .. getPlayerName ( source ) .. ":#FFFFFF " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [Support] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "SVip" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#999966|> SuperVIP <|#FFFFFF " .. getPlayerName ( source ) .. ":#FFFFFF " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [SuperVIP] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Vip" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#999900|> VIP <|#FFFFFF " .. getPlayerName ( source ) .. ":#FFFFFF " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Console" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#FF9900|> Konsola <|#FFFFFF " .. getPlayerName ( source ) .. ":#FFFFFF " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [Konsola] " .. getPlayerName ( source ) .. ": " .. text )
elseif isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Everyone" )) then
cancelEvent ()
local r , g , b = getPlayerNametagColor ( source )
outputChatBox ( "#C0C0C0|> Gracz <|#FFFFFF " .. getPlayerName ( source ) .. ":#FFFFFF " .. text , getRootElement (), r , g , b , true )
outputServerLog ( "CHAT: [Gracz] " .. getPlayerName ( source ) .. ": " .. text )
end
end
end
addEventHandler ( "onPlayerChat" , getRootElement (), chatbox )
Wysłany: 2015-03-12, 22:42
Prezes.
Wiek: 27 Na forum: 4370 dni Posty: 75
Nick w MP: Prezes.
Piwa : 17
Wysłany: 2015-03-13, 11:39
Mateusz512
Wiek: 27 Na forum: 4511 dni Posty: 44
Tagi: nie :: działa :: /register
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: