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: 40
Na forum: 3663 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"1530)
WW createTeam "Wsp?? W?a?ciciel"255255)
HA createTeam "Head Admin"2550)
createTeam "Admin"255128)
SM createTeam "Super Moderator"0102)
createTeam "Moderator"0255)
createTeam "Premium"255255)
end
addEventHandler("onResourceStart"resourceRootadmin)

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

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

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

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

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

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

function ()
function setPremiumTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Premium")) then
   setPlayerTeam(sourceP)
   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: 3309 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: 16
Na forum: 3972 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: 40
Na forum: 3663 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: 4401 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: 40
Na forum: 3663 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 ()
function setSMTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then
   setPlayerTeam(sourceSM)
   end
end
addEventHandler("onPlayerLogin",getRootElement(),M)


function ()
function setPremiumTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Premium")) then
   setPlayerTeam(sourceP)
    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: 24
Na forum: 4184 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(sourceSM)
   end
end
addEventHandler("onPlayerLogin",getRootElement(),setSMTeam)


function setPremiumTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Premium")) then
   setPlayerTeam(sourceP)
    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 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