Code:
function onLogin(cid)
if ((getCreatureName(cid) == Kinha da Elit) or (getCreatureName(cid) == Pandersony) or (getCreatureName(cid) == Vacilao) and (getPlayerLevel(cid) < 150)) then
addEvent(autoExp, 60 * 1000)
end
return TRUE
end
function autoExp()
if getPlayerLevel(cid) < 150 then
addEvent(autoExp, 1800 * 1000)
doSendAnimatedText(playerPos, '1134918', TEXTCOLOR_WHITE)
doPlayerAddExp(cid, 1134918)
end
return TRUE
end
My metod for use 'getCreatureName(cid)' are correct?
ex: if getCreatureName(cid) == PLAYER then