Postado Junho 1, 2016 9 anos Olá Alguem Poderia me ajuda a melhorar essa Script Ja tentei de tudo e não consegui pois eu não manjo nada.( Para quem não entendeu essa Scripts Da um Descrição ao player quando da Look Nele). Script: function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local type = getPlayerStorageValue(thing.uid, 89745) doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela" or "Ele").." eh "..(type < 0 and "Um Shinobi" or type == 1 and "Um Genin" or type == 2 and "Um Chunin" or type == 3 and "Um Jounin" or type == 4 and "Um Anbu" or type == 5 and "Um Sennin" or type == 6 and "Akatsuki")) end return true end Gostaria de melhorar essa Scripts assim: Adicionar Mais Descrição,explicando melhor ao Player Ganhar a Storage 550000,1 ele ganhara o Look " Pertence a Akatsuki" Atualmente a Scripts dexa Assim: 15:20 You see Maleee (Level 350). He is a naruto Ele eh Um Shinobi. Gostaria que ficasse assim 15:20 You see Maleee (Level 350). He is a naruto Ele eh Um Shinobi. Pertence a Akatsuki. Explicando as Storages: 550000,0 == Academia Shinobi 550000,1 == Akatsuki upup
Postado Junho 1, 2016 9 anos function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local var,ret = getPlayerStorageValue(thing.uid, 89745) < 0 and 0 or getPlayerStorageValue(thing.uid, 89745), getPlayerStorageValue(thing.uid, 550000) < 0 and 0 or getPlayerStorageValue(thing.uid, 550000) local a = {[0] = "Shinobi",[1] = "Genin",[2] = "Chunin",[3] = "Jounin",[4] = "Anbu",[5] = "Sennin",[6] = "Akatsuki"} local b = {[0] = "Academia Shinobi", [1] = "Akatsuki", [2] = "Vila da Folha"} doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." "..a[var].." e pertence a "..b[ret]) end return true end [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Junho 1, 2016 9 anos Autor Em 01/06/2016 em 18:48, Vodkart disse: function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local var,ret = getPlayerStorageValue(thing.uid, 89745) < 0 and 0 or getPlayerStorageValue(thing.uid, 89745), getPlayerStorageValue(thing.uid, 550000) < 0 and 0 or getPlayerStorageValue(thing.uid, 550000) local a = {[0] = "Shinobi",[1] = "Genin",[2] = "Chunin",[3] = "Jounin",[4] = "Anbu",[5] = "Sennin",[6] = "Akatsuki"} local b = {[0] = "Academia Shinobi", [1] = "Akatsuki", [2] = "Vila da Folha"} doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." "..a[var].." e pertence a "..b[ret]) end return true end Obrigado @Vodkart ajudo muito | REP + | / 16:13 You see Testar (Level 10). He is a naruto Ele é um Shinobi e pertence a Akatsuki.
Postado Agosto 14, 2016 8 anos Em 01/06/2016 em 18:48, Vodkart disse: function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local var,ret = getPlayerStorageValue(thing.uid, 89745) < 0 and 0 or getPlayerStorageValue(thing.uid, 89745), getPlayerStorageValue(thing.uid, 550000) < 0 and 0 or getPlayerStorageValue(thing.uid, 550000) local a = {[0] = "Shinobi",[1] = "Genin",[2] = "Chunin",[3] = "Jounin",[4] = "Anbu",[5] = "Sennin",[6] = "Akatsuki"} local b = {[0] = "Academia Shinobi", [1] = "Akatsuki", [2] = "Vila da Folha"} doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." "..a[var].." e pertence a "..b[ret]) end return true end pode arrumar o meu pra min? sennin e 5 e akat e 6 O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
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.