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
Cze?? 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 i
[ Dodano : 2017-06-07, 17:33 ]
Sr ?e przy Ha i A jest Admin ale zmieni? to w najbli?szym czasie XD
Wysłany: 2017-06-07, 17:37
X0neX
Wiek: 25 Na forum: 3309 dni Posty: 142
Nick w MP: Xavir
Piwa : 77
To poka? nam kt?ra linijka to 60, bo tak trudno troche liczy?.
Wysłany: 2017-06-07, 17:39
mlodasnygo
Wiek: 16 Na forum: 3972 dni Posty: 205
Piwa : 518
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
500 piw -
10 marca 2017
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
Nie zauwa?y?em bra?em z wiki XD @c
Podpis
[you]
pomogłem?
Możesz dać piwko, przyda się na imprezę
Wysłany: 2017-06-07, 18:05
Dexnes_
Tiger
Wiek: 26 Na forum: 4401 dni Posty: 620
Nick w MP: Dexnes
Piwa : 1394
Remix110 , W takim razie problem rozwi?zany?
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
Tak
[ 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
[you]
pomogłem?
Możesz dać piwko, przyda się na imprezę
Wysłany: 2017-06-07, 18:34
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
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 )
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: