fiz na pressa.. testa ae..
function onSay(cid, words, param, channel) local vocation,knight,paladin,druid,sorc = 0,0,0,0,0 for _,pid in ipairs(getPlayersOnline()) do vocation = getPlayerVocation(pid) if vocation > 4 and vocation < 9 then -- com promotion vocation = vocation - 4 elseif vocation > 8 then -- com segunda promotion vocation = vocation - 8 end if vocation == 1 then sorc = sorc + 1 elseif vocation == 2 then druid = druid + 1 elseif vocation == 3 then paladin = paladin + 1 else knight = knight + 1 end end local msg = "\nPlayers Online: "..(#getPlayersOnline()).."\nSorcerer: ".. sorc .."\nDruid: ".. druid .."\nPaladin: ".. paladin .."\nKnight: ".. knight .. "" return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, msg) end
edited: agora deve funcionar normalmente



info
Grupo: Visconde
Registrado: 02/09/10
Posts: 341
Reputação: +6
Gênero: Masculino
fmz manos ?? queria q meu script online mostrasse agora por classe 1 kina on, 2 sorcere e etc e continuasse mostrando online nao por nick por quantidade 30 ons
function onSay(cid, words, param, channel)
local msg = "H\á "..(#getPlayersOnline()).." players online."
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, msg)
end