Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-07-19, 18:44


koxik2001







Wiek: 25
Na forum: 4679 dni
Posty: 33



Respekt: 50

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?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-19, 18:47


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Albo musisz by? w takiej grupie jaka jest w skrypcie ustawiona albo dodajesz si? do skryptu. Popatrz w kod

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-19, 18:56


koxik2001







Wiek: 25
Na forum: 4679 dni
Posty: 33



Respekt: 50

ale gdzie w kodzie, w linicje ktorej, i jaki skrypt ? :D w dayz bo jest duzo

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-19, 19:04


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Nie wiem, je?eli Ci zale?y to poszukasz, ja dayz nigdy nie mia?em.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-19, 19:24


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
"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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-19, 19:56


koxik2001







Wiek: 25
Na forum: 4679 dni
Posty: 33



Respekt: 50

Nie no , nie ma ?adnych b??d?w jestem w acl'u w randze Admin.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-20, 08:25


dandi063







Wiek: 31
Na forum: 4822 dni
Posty: 34
Nick w MP: dandi063

Piwa: 1

Respekt: 50

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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-20, 08:34


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

function setGroup(playersourcecommandteamNametargetString)
  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!"playersource2789224true)
            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(accountteamNamevalue)
        setElementData(foundTargetPlayerteamNamevalue)
        if value == true then
          outputChatBox("#FFFFFF" .. getPlayerName(foundTargetPlayer) .. " #FF0000 has been promoted to " .. teamName .. "!"getRootElement(), 2789224true)
        else
          outputChatBox("#FFFFFF" .. getPlayerName(foundTargetPlayer) .. " #FF0000 lost his status..."getRootElement(), 2789224true)
        end
      else
        outputChatBox("#FFFFFFCan't find player! Did you input the correct name?"playersource2789224true)
      end
    end
  else
    outputChatBox("#FFFFFFYou are not an admin!"playersource2789224true)
  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?...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-20, 11:26


koxik2001







Wiek: 25
Na forum: 4679 dni
Posty: 33



Respekt: 50

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 ]
??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-20, 16:45


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
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...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-20, 18:28


koxik2001







Wiek: 25
Na forum: 4679 dni
Posty: 33



Respekt: 50

Ok dzia?a! Dzi?ki
LOCK

Postaw piwo autorowi tego posta
 

 
Tagi: dayz :: admin
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » DayZ admin Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku