Pedro Colto Posted February 23, 2015 Share Posted February 23, 2015 alguem pdoe me mandar um script que apenas um determinado grupo do acl poderá usar uma determinada skin? Link to comment
#RooTs Posted February 23, 2015 Share Posted February 23, 2015 alguem pdoe me mandar um script que apenas um determinado grupo do acl poderá usar uma determinada skin? não entendi nada... Link to comment
Pedro Colto Posted February 24, 2015 Author Share Posted February 24, 2015 criei um grupo no acl chamado "Policial" e queria um script que o comando só ira valer para este grupo do acl, que nesse comando seria /Batercartao o personagem pegaria uma skin e um kit de armas só que isso dentro de um checkpoint Link to comment
Banex Posted February 24, 2015 Share Posted February 24, 2015 (edited) um exemplo de como você pode fazer isso marker = createMarker(2326.4553222656,838.19079589844,6.3528056144714,"cylinder",2,255,0,0,255) function command(player) if player then if not isElementWithinMarker(player,marker) then return end local account = getPlayerAccount(player) if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Policial")) then setElementModel(player,0) giveWeapon(player,31,500) end end end addCommandHandler("batercartao", command) Edited February 24, 2015 by Guest Link to comment
Pedro Colto Posted February 24, 2015 Author Share Posted February 24, 2015 Banex, eu vi esse script, mais não está funcinando apareceu alguns erros, tentei resoslver e conseguir fazer apenas o marker aparecer mais quando digito comando "/batercartao" ele não funciona, será que fis algo de errado?? Script marker = createMarker(2326.4553222656,838.19079589844,6.3528056144714,"cylinder",2,255,0,0,255) function command(player) if player then if not isElementWithinMarker(player,marker) then local account = getPlayerAccount(player) if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Soldado")) then setElementModel(player,0) giveWeapon(player,31,500) end end end end addCommandHandler("batercartao", command) Link to comment
#RooTs Posted February 24, 2015 Share Posted February 24, 2015 @~#Pedro, digite no chat /debugscript 3 e mostre os erros, se quiser tira um print, upa a print e mande aki Link to comment
Pedro Colto Posted February 24, 2015 Author Share Posted February 24, 2015 Aqui está img: http://i.imgur.com/ckU9cSU.png?1 Codigo: marker = createMarker(2319.7861328125,836.51287841797,6.7419986724854,"cylinder",2,255,0,0,255) function command(player) if player then if not isElementWithinMarker(player,marker) return end local account = getPlayerAccount(player) if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Soldado")) then setElementModel(player,0) giveWeapon(player,31,500) end end end addCommandHandler("batercartao", command) Link to comment
Banex Posted February 24, 2015 Share Posted February 24, 2015 Copie meu código novamente Link to comment
DNL291 Posted February 25, 2015 Share Posted February 25, 2015 Recomendo nunca criar elementos fora de funções/eventos quando o recurso for iniciado. Pedro, Certifique-se de definir o script como server no meta.xml. 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