Forum

> > CS2D > Scripts > Admin tele
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Admin tele

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Admin tele

Flame
BANNED Off Offline

Zitieren
Hi all
Who can make script that only admins write !umbrella and they tele to the position x y

alt Re: Admin tele

Flame
BANNED Off Offline

Zitieren
But i need that only admins write !umbrella and tele to x and y

alt Re: Admin tele

Apache uwu
User Off Offline

Zitieren
So like this?

1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("say","_say")

admins={0}

function _say(id,message)
	if message=="!umbrella" then
		for _,usgn in ipairs(admins) do
			if player(id,"usgn")==usgn then
				parse("setpos "..id.." XPOS YPOS")
			end
		end
	end
end

alt Re: Admin tele

Flame
BANNED Off Offline

Zitieren
But how do i have to write ?
parse("setpos "..id.." XPOS YPOS") I must change XPOS AND YPOS :
like ? : parse("setpos "..id.." 2132 2111")

alt Re: Admin tele

Apache uwu
User Off Offline

Zitieren
Yeah that's why I capped it. You also must include all the admins' usgn in a table.

1
admins={2356,123,6543,234}

Separated by a comma.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht