Wysłany: 2015-07-19, 18:44
koxik2001
Wiek: 25 Na forum: 4679 dni Posty: 33
Cze??, mam problem ot?? mam admina przez acl panel admin dziala pieknie, ale gdy chce wpisa? /add admin nick to pisze mi You are not an admin?
Wiem co to znaczy "Nie jeste? adminem". ale mam pytanie co mam zrobi? bym by? tym 'adminem' w dayz?
Wysłany: 2015-07-19, 18:47
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
Albo musisz by? w takiej grupie jaka jest w skrypcie ustawiona albo dodajesz si? do skryptu. Popatrz w kod
Wysłany: 2015-07-19, 18:56
koxik2001
Wiek: 25 Na forum: 4679 dni Posty: 33
ale gdzie w kodzie, w linicje ktorej, i jaki skrypt ? w dayz bo jest duzo
Wysłany: 2015-07-19, 19:04
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
Nie wiem, je?eli Ci zale?y to poszukasz, ja dayz nigdy nie mia?em.
Wysłany: 2015-07-19, 19:24
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
"Fanciak" napisał/a :Nie wiem, je?eli Ci zale?y to poszukasz, ja dayz nigdy nie mia?em.
Jak nie patrzyles w kod dayz'a to nie pomagaj -.-
Standardowo dostep do tej komendy mialy osoby z grupy acl Admin, na pewno jestes w tej grupie
Nie edytowales jakichs rzeczy w kodzie ?
Sprawdz tez db3, moze akurat to cos Ci pomoze.
Wysłany: 2015-07-19, 19:56
koxik2001
Wiek: 25 Na forum: 4679 dni Posty: 33
Nie no , nie ma ?adnych b??d?w jestem w acl'u w randze Admin.
Wysłany: 2015-07-20, 08:25
dandi063
Wiek: 31 Na forum: 4822 dni Posty: 34
Nick w MP: dandi063
Piwa : 1
Musisz pogrzeba? w plikach DayZ.
Tak samo jest z napisami (Nie edytowanymi tam gdzie zginiesz "Was Killed" itp.)
Pisz? "Admini online:" to nawet jak jestes w grupie ACL to i tak ciebie tam nie pokazuje.
Wysłany: 2015-07-20, 08:34
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
function setGroup ( playersource , command , teamName , targetString )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( playersource )), aclGetGroup ( "Admin" )) then
do
local foundTargetPlayer = getPlayerWildcard ( targetString )
if foundTargetPlayer then
if teamName ~= "admin" and teamName ~= "supporter" then
if teamName == "remove" then
else
outputChatBox ( "#FFFFFFCorrect names are admin, supporter and remove!" , playersource , 27 , 89 , 224 , true )
return
end
end
if teamName == "remove" then
value = false
account = getPlayerAccount ( foundTargetPlayer )
setAccountData ( account , "admin" , value )
setAccountData ( account , "supporter" , value )
setElementData ( foundTargetPlayer , "admin" , value )
setElementData ( foundTargetPlayer , "supporter" , value )
else
value = true
end
account = getPlayerAccount ( foundTargetPlayer )
accountname = getAccountName ( account )
setAccountData ( account , teamName , value )
setElementData ( foundTargetPlayer , teamName , value )
if value == true then
outputChatBox ( "#FFFFFF" .. getPlayerName ( foundTargetPlayer ) .. " #FF0000 has been promoted to " .. teamName .. "!" , getRootElement (), 27 , 89 , 224 , true )
else
outputChatBox ( "#FFFFFF" .. getPlayerName ( foundTargetPlayer ) .. " #FF0000 lost his status..." , getRootElement (), 27 , 89 , 224 , true )
end
else
outputChatBox ( "#FFFFFFCan't find player! Did you input the correct name?" , playersource , 27 , 89 , 224 , true )
end
end
else
outputChatBox ( "#FFFFFFYou are not an admin!" , playersource , 27 , 89 , 224 , true )
end
end
addCommandHandler ( "add" , setGroup )
Przeanalizujcie sobie, popr?bujcie, a nie robicie bezsensowny offtop...
PS: To jest wycinek z DayZ'a, nie my?lcie, ?e jaki? kod ?eby doda? czy co?...
Wysłany: 2015-07-20, 11:26
koxik2001
Wiek: 25 Na forum: 4679 dni Posty: 33
Mam takie co?
Kod:
function setGroup(playersource, command, teamName, targetString)
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Admin")) then
do
local foundTargetPlayer = getPlayerWildcard(targetString)
if foundTargetPlayer then
if teamName ~= "admin" and teamName ~= "supporter" then
if teamName == "remove" then
else
outputChatBox("#FFFFFFPoprawne nazwy to admin, supporter i remove!", playersource, 27, 89, 224, true)
return
end
end
if teamName == "remove" then
value = false
account = getPlayerAccount(foundTargetPlayer)
setAccountData(account, "admin", value)
setAccountData(account, "supporter", value)
setElementData(foundTargetPlayer, "admin", value)
setElementData(foundTargetPlayer, "supporter", value)
else
value = true
end
account = getPlayerAccount(foundTargetPlayer)
accountname = getAccountName(account)
setAccountData(account, teamName, value)
setElementData(foundTargetPlayer, teamName, value)
if value == true then
outputChatBox("#FFFFFF" .. getPlayerName(foundTargetPlayer) .. " #FF0000 zosta? awansowany na " .. teamName .. "!", getRootElement(), 27, 89, 224, true)
else
outputChatBox("#FFFFFF" .. getPlayerName(foundTargetPlayer) .. " #FF0000 straci? swoje uprawnienia...", getRootElement(), 27, 89, 224, true)
end
else
outputChatBox("#FFFFFFNie znaleziono gracza!", playersource, 27, 89, 224, true)
end
end
else
outputChatBox("#FFFFFFNie jeste? adminem!", playersource, 27, 89, 224, true)
end
end
addCommandHandler("add", setGroup)
Ale wpisuje /add i pisze mi Nie jeste? adminem
Mam siebie doda? do clanu admin? czy co ..
[ Dodano : 2015-07-20, 15:30 ]
Wysłany: 2015-07-20, 16:45
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
Skoro nic nie edytowales, to nie ma bata, nie jestes w ACLu i tyle...
Moze masz grupe admin'a z malej literki ? Takie glupie pytanki, na pewno na wlasciwe konto sie logujesz
No chlopie, innego wyjscia nie widze...
Wysłany: 2015-07-20, 18:28
koxik2001
Wiek: 25 Na forum: 4679 dni Posty: 33
Tagi: dayz :: admin
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: