PCTecuci Romania - Citeste doar ceea ce merita

Înregistrați-vă acum pentru a avea acces la toate funcțiile noastre. După ce v-ați înregistrat și vă logați, veți putea contribui la acest site prin trimiterea propriului dvs. conținut sau răspunsul la conținutul existent. Veți putea personaliza profilul dvs., primiți puncte de reputație ca recompensă pentru trimiterea conținutului, comunicând în același timp și cu alți membri prin intermediul căsuței de e-mail private și multe altele! 

Acest mesaj va fi eliminat odată ce v-ați conectat.  

Sign in to follow this  
liviu42

Tutorial : Lista GM/OwN

Recommended Posts

Daca vreti sa modificati [GM]NumeleTau. in loc de [OWN]NumeleTau adaugati numele vostru EXEMPLU> [GM]Basescu [OwN]Basescu s.a.m.d in toate locurile! daca v-am ajutat ma puteti rasplati printr-o multumire.

 

Quest:

 

quest gm_list begin
   state start begin
      when login begin
         local gms =
         {
            {"[OwN]NumeleTau"},
            {"[GF]NumeleTau"},
         }
         for i=1, table.getn(gms), 1 do
            local name = gms[1]
            if name == nil then
               return name
            end
            cmdchat('SetTeamOffline '..name)
         end
         loop_timer("check_gm", 8)
      end
      when check_gm.timer begin
         local t_gms =
         {
            {"[OwN]NumeleTau"},
            {"[GF]NumeleTau"},
         }
         for i=1, table.getn(t_gms), 1 do
            local t_name = t_gms[1]
            if t_name == nil then
               return t_name
            end
            if game.get_event_flag(t_name) == 1 then
               cmdchat('SetTeamOnline '..t_name)
            else
               cmdchat('SetTeamOffline '..t_name)
            end
         end
      end
      when login with pc.is_gm() or pc.get_name() ==  "[OwN]NumeleTau" or pc.get_name() == "[GF]NumeleTau" or pc.get_name() == "[sGA]NumeleTau" or pc.get_name() == "[ViP]NumeleTau begin
         local name = pc.get_name()
         game.set_event_flag(name, 1)
      end
      when logout with pc.is_gm() or pc.get_name() == "[OwN]NumeleTau" or pc.get_name() == "[GF]NumeleTau" or pc.get_name() == "[sGA]NumeleTau" or pc.get_name() == "[ViP]NumeleTau" begin
         local name = pc.get_name()
         game.set_event_flag(name, 0)
      end
   end
end          

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this