Cum modific team

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Joey
Fost Moderator

Fost Moderator
Mesaje: 1340
Membru din: 09 Noi 2013, 14:58
Regat: Jinno
Aprecieri: 30  
Mulţumiri: 49  
Medalii

Salut, cum modific team de la prieteni? Imagine
Imagine
Afișează semnătura
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Baga urmatorul quest:

Cod: Selectaţi tot

quest gm_list begin
	state start begin
		when login begin
			local gms = 
			{
				{"[GM]1"},
				{"[GM]2"}
			}
			for i=1, table.getn(gms), 1 do
				local name = gms[i][1]
				if name == nil then
					return name
				end
				cmdchat('SetTeamOffline '..name)
			end
			loop_timer("check_gm", 10)
		end
		when check_gm.timer begin
			local t_gms = 
			{
				{"[GM]1"},
				{"[GM]2"}
			}
			for i=1, table.getn(t_gms), 1 do
				local t_name = t_gms[i][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() begin
			local name = pc.get_name()
			game.set_event_flag(name, 1)
		end
		when logout with pc.is_gm() begin
			local name = pc.get_name()
			game.set_event_flag(name, 0)
		end
	end
end
Succes.
Închis
Răspunsuri
5
Vizualizări
638
Răspunsuri
31
Vizualizări
3572
Răspunsuri
9
Vizualizări
597
Răspunsuri
23
Vizualizări
2366

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 128 vizitatori