aski Posted February 14, 2014 Share Posted February 14, 2014 (edited) Co robie nie tak? chce aby po wejściu na Serva Gracz zalogował się w team którym jest w ACL poli = createTeam ( "PGM", 193, 177, 2 ) function poli1 ( thePlayer ) local playerName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "PGM" ) ) then setPlayerTeam ( thePlayer, poli ) setElementPosition ( thePlayer, 1549.84143, -1208.50720, 20.03212 ) setPlayerNametagColor ( thePlayer, 193, 177, 2 ) else outputChatBox( "Nie jestes w tym gangu.", getRootElement()) end end addEventHandler("onPlayerLogin",getRootElement(),setpoli1Team) a jak daje addCommandHandler ( "loginpgm", poli1 ) zamiast addEventHandler("onPlayerLogin",getRootElement(),setpoli1Team) to działa komendą Edited February 16, 2014 by Guest Link to comment
dzek (varez) Posted February 14, 2014 Share Posted February 14, 2014 /debugscript 3? gdzie ty masz tam funkcje `setpoli1Team` ? Link to comment
aski Posted February 15, 2014 Author Share Posted February 15, 2014 nie rozumiem prosze aby jak ktoś się zalogował na serva i jest w ACL-u aby automatycznie był pod tab w team jak to zrobić?? Link to comment
Mefisto_PL Posted February 16, 2014 Share Posted February 16, 2014 poli = createTeam ( "PGM", 193, 177, 2 ) function poli1 ( thePlayer ) local playerName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "PGM" ) ) then setPlayerTeam ( thePlayer, poli ) setElementPosition ( thePlayer, 1549.84143, -1208.50720, 20.03212 ) setPlayerNametagColor ( thePlayer, 193, 177, 2 ) else outputChatBox( "Nie jestes w tym gangu.", getRootElement()) end end addEventHandler("onPlayerLogin",getRootElement(),poli1) Link to comment
dzek (varez) Posted February 16, 2014 Share Posted February 16, 2014 Nazywaj proszę swoje wątki tak, aby coś mówiły. "Co źle" "błąd" "problem" "pomocy" to ZŁE nazwy wątków. Poprawiłem Twoje na lepsze, spróbuj następnym razem takie tworzyć, dzięki. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now