Postado Abril 7, 2017 8 anos Alguém pode quebrar o galho e limitar que o script não funcione no account manager? function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end
Postado Abril 7, 2017 8 anos Solução @JcA Testa ai e manda a resposta. function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" if (string.find(tostring(getCreatureName(cid)),"Account Manager")) or getPlayerGroupId(cid) >= 3 then return true end for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end Editado Abril 7, 2017 8 anos por Liipe Silva (veja o histórico de edições)
Postado Abril 7, 2017 8 anos Autor 2 minutos atrás, Liipe Silva disse: @JcA Testa ai e manda a resposta. function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" if (string.find(tostring(getCreatureName(cid)),"Account Manager")) then return true end for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end Funcionou sim, esqueci de citar, você consegue eliminar player da staff também? group id 3, 4 e 5, 6
Postado Abril 7, 2017 8 anos Autor 14 minutos atrás, Liipe Silva disse: @JcA Atualizado, só verificar o código a cima. Obrigado! Reputado
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.