Manel Posted May 17, 2023 Posted May 17, 2023 Alguém têm um script de bate-ponto sem ser por marker , poder usar o comando e entrar em serviço em qualquer local do mapa?? Alguém me consegue ajudar??
RomanDev Posted May 17, 2023 Posted May 17, 2023 Eaeee, para isso você poderia utilizar element-data que facilitaria o seu processo de criação. Utilize do exemplo abaixo para a criação do seu sistema; function bate_ponto(player) if (isObjectInACLGroup("user."..(getAccountName(getPlayerAccount(player))), aclGetGroup("Permissão Necessária"))) then if (not getElementData(player, "bate_ponto")) then outputChatBox("Você entrou em serviço!", player); setElementData(player, "bate_ponto", true); else outputChatBox("Você saiu de serviço!", player); removeElementData(player, "bate_ponto"); end else outputChatBox("Sem permissão!", player); end end addCommandHandler("bateponto", bate_ponto);
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