Jump to content

[Duda]Quest login GM


Slabon

Recommended Posts


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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...