Jump to content

[Duda]Quest login GM


Slabon

Mensajes recomendados


quest gmlogin begin

state start begin

when login with pc.is_gm() begin

if pc.get_name() == [GM] then

command("n ".. pc.get_name() .." está Online!")

command("n texto.")

elseif pc.get_name() == [SGM] then

command("n "..pc.get_name().." está Online!")

command("n texto.")

end

end

end

end

Supongo que sabrás como hacer el resto.

Enlace para comentar
Compartir en otros sitios

Eso no funciona.

 

quest gmlogin begin
state start begin
  when login with pc.is_gm() begin
   if string.sub(pc.get_name(),1,4) == "[GM]" then
    command("n ".. pc.get_name() .." está Online!")
    command("n texto.")
   elseif string.sub(pc.get_name(),1,5) == "[SGM]" then
    command("n "..pc.get_name().." está Online!")
    command("n texto.")
   end
  end
end
end
Enlace para comentar
Compartir en otros sitios

Eso no funciona.

 

quest gmlogin begin
state start begin
  when login with pc.is_gm() begin
   if string.sub(pc.get_name(),1,4) == "[GM]" then
	command("n ".. pc.get_name() .." está Online!")
	command("n texto.")
   elseif string.sub(pc.get_name(),1,5) == "[SGM]" then
	command("n "..pc.get_name().." está Online!")
	command("n texto.")
   end
  end
end
end

Buena idea ^^ pero mejor ponedle notice_all en vez de command.

Enlace para comentar
Compartir en otros sitios

  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...