Galera eu preciso de uma talk actions q por exemplo
!boh ela troque 30 dias de premium por uma boh
Vlw ai quem tiver uma ideia de como fazer eu fico grato!
F U I Z
Galera eu preciso de uma talk actions q por exemplo
!boh ela troque 30 dias de premium por uma boh
Vlw ai quem tiver uma ideia de como fazer eu fico grato!
F U I Z
Ve se isso resolve, tem que configurar o premiumDays e o itemId ...
function onSay(cid) -- script by Notorious local config = { premiumDays = 30, itemId = 1445 } if getPlayerPremiumDays(cid) >= config.premiumDays then doPlayerAddPremiumDays(cid, -config.premiumDays) doPlayerAddItem(cid, config.itemId) end return true end
______________________________________________________________
Muito bom notórios isso vai me ajudar bastante!
tens como fazer uma menssagem caso o player não tenha mais vip days? valeu!
OT GLOBAL - PVP - SEM BUGS - 24/7
www.kakaroto.servegame.com
O script dele adicionará mesmo se o player não tiver os dias de premium.
Reformulado:
function onSay(cid) -- script by Notorious reformulado por kakilo local config = { premiumDays = 30, itemId = 1445 } if getPlayerPremiumDays(cid) >= config.premiumDays then if doPlayerAddPremiumDays(cid, -config.premiumDays) then doPlayerAddItem(cid, config.itemId) else doPlayerSendCancel(cid, 'You do not have enought days.') end end return true end
KaKilo ~
vlw muito obrigado :smile_positivo:
O script dele adicionará mesmo se o player não tiver os dias de premium.Reformulado:
function onSay(cid) -- script by Notorious reformulado por kakilo local config = { premiumDays = 30, itemId = 1445 } if getPlayerPremiumDays(cid) >= config.premiumDays then if doPlayerAddPremiumDays(cid, -config.premiumDays) then doPlayerAddItem(cid, config.itemId) else doPlayerSendCancel(cid, 'You do not have enought days.') end end return true end
Na verdade você que está errado.
Beijos
Não notei a checagem acima. Mesmo assim, foi sanado.
Fechado.
KaKilo ~