ProLisu Posted January 15, 2012 Share Posted January 15, 2012 (edited) Witam mam pytanie mam otóż ten kod: Assassyni = createTeam ( "Assassyni", 51, 102, 255 ) function Assassyni ( thePlayer ) local playerName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Assassyni" ) ) then setPlayerTeam ( thePlayer, Assassyni ) giveWeapon ( thePlayer, 4, 10000 ) giveWeapon ( thePlayer, 24, 100 ) giveWeapon ( thePlayer, 30, 2500 ) giveWeapon ( thePlayer, 17, 25 ) giveWeapon ( thePlayer, 41, 3000 ) setPedArmor ( thePlayer, 100 ) setElementModel ( thePlayer, 110 ) setElementModel ( thePlayer, 114 ) setElementPosition ( thePlayer, -1968.5272216797, 293.55743408203, 34.821102142334 ) setPlayerNametagColor ( thePlayer, 51, 102, 255 ) else outputChatBox( "Nie należysz do Assassynów!", getRootElement()) end end addCommandHandler ( "assassyni", Assassyni ) I teraz jak zrobić aby po wpisaniu komendy gracz nie mógł już jej wpisać? Edited January 15, 2012 by Guest Link to comment
dzek (varez) Posted January 15, 2012 Share Posted January 15, 2012 "assassyni" .. co za słowo. nie lepiej albo po angielsku, albo po polsu. setElementData jeżeli ma to (blokada) działać do następnego reconnecta setElementData jeżeli ma to działać do śmierci (przy śmierci resetuj, event onPedWasted) setAccountData jeżeli ma działać raz dla danego konta. 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