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

Wysłany: 2017-06-07, 17:32


Remix110

Pewna osóbka :3






Wiek: 41
Na forum: 3804 dni
Posty: 291
Nick w MP: GoodNight

Piwa: 15

Respekt: 51

Cze?? :D Zrobi?em pewien skrypt na auto logowanie ale co? nie dzia?a b??d daje w 60 linijce ale nie wiem co ;-;

function Teamy()
RCON = createTeam ( "W?a?ciciel", 153, 0, 0 )
WW = createTeam ( "Wsp?? W?a?ciciel", 255, 255, 0 )
HA = createTeam ( "Head Admin", 255, 0, 0 )
A = createTeam ( "Admin", 255, 128, 0 )
SM = createTeam ( "Super Moderator", 0, 102, 0 )
M = createTeam ( "Moderator", 0, 255, 0 )
P = createTeam ( "Premium", 255, 255, 0 )
end
addEventHandler("onResourceStart", resourceRoot, admin)

function Wlasciciel ()
function setRCONTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
   setPlayerTeam(source, RCON) 
   else
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)

function WW ()
function setWWTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("WW")) then
   setPlayerTeam(source, WW) 
    else
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)

function HAl ()
function setHATeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then
   setPlayerTeam(source, HA) 
   else
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)

function A ()
function setATeamTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then
   setPlayerTeam(source, A) 
   else
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)

function SM ()
function setSMTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Super Moderator")) then
   setPlayerTeam(source, SM)
  else
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)

function M ()
function setMTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then
   setPlayerTeam(source, M)
   else
    end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)

function P ()
function setPremiumTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Premium")) then
   setPlayerTeam(source, P)
   else
    end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)


Za pomoc R* i :piwo:

[ Dodano: 2017-06-07, 17:33 ]
Sr ?e przy Ha i A jest Admin ale zmieni? to w najbli?szym czasie XD

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-07, 17:37


X0neX







Wiek: 25
Na forum: 3450 dni
Posty: 142
Nick w MP: Xavir

Piwa: 77

Respekt: 55,8

To poka? nam kt?ra linijka to 60, bo tak trudno troche liczy?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-07, 17:39


mlodasnygo







Wiek: 17
Na forum: 4113 dni
Posty: 205

Piwa: 518

Respekt: 161,8
Respekt: 161,8Respekt: 161,8

To mo?e by? ten b??d poda? ;v

widz? 2 rzeczy
-Funkcja P nie ma end (sam koniec)
-Pod funkcj? Teamy jest handler "onResourceStart" jednak jest on przypisany do funkcji 'admin' kt?rej tu nie ma ;v

Pozdrawiam

[ Dodano: 2017-06-07, 17:40 ]
a ponadto event do ka?dej funkcji ma wpisan? funkcj? o nazwie "setAdminTeam"
Czyli do jednej funkcji s? te wszystkie przypisane

Podpis
600 dni - 10 marca 2017
:piwo: 500 piw :piwo: - 10 marca 2017
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-07, 18:00


Remix110

Pewna osóbka :3






Wiek: 41
Na forum: 3804 dni
Posty: 291
Nick w MP: GoodNight

Piwa: 15

Respekt: 51

Nie zauwa?y?em bra?em z wiki XD @c

Podpis
pomogłem? :P Możesz dać piwko, przyda się na imprezę :D
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-07, 18:05


Dexnes_

Tiger






Wiek: 26
Na forum: 4542 dni
Posty: 620
Nick w MP: Dexnes

Piwa: 1394

Respekt: 390
Respekt: 390Respekt: 390Respekt: 390Respekt: 390

Remix110, W takim razie problem rozwi?zany?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-07, 18:21


Remix110

Pewna osóbka :3






Wiek: 41
Na forum: 3804 dni
Posty: 291
Nick w MP: GoodNight

Piwa: 15

Respekt: 51

Tak :D

[ Dodano: 2017-06-07, 18:27 ]
Lub nie :;

[ Dodano: 2017-06-07, 18:30 ]
B??d w:

function M ()
function setSMTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then
   setPlayerTeam(source, SM)
   end
end
addEventHandler("onPlayerLogin",getRootElement(),M)


function P ()
function setPremiumTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Premium")) then
   setPlayerTeam(source, P)
    end
end
addEventHandler("onPlayerLogin",getRootElement(),P)


DB3:

Podpis
pomogłem? :P Możesz dać piwko, przyda się na imprezę :D
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-07, 18:34


_Haze

Peace Yo!






Wiek: 25
Na forum: 4325 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020


function setSMTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then
   setPlayerTeam(source, SM)
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setSMTeam)


function setPremiumTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Premium")) then
   setPlayerTeam(source, P)
    end
end
addEventHandler("onPlayerLogin",getRootElement(),setPremiumTeam)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Remix110
Tagi: nie :: działa :: auto :: logowanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Nie działa auto logowanie 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