Forum

> > CS2D > Scripts > Admin tele
Forums overviewCS2D overview Scripts overviewLog in to reply

English Admin tele

6 replies
To the start Previous 1 Next To the start

old Admin tele

Flame
BANNED Off Offline

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

old Re: Admin tele

Flame
BANNED Off Offline

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

old Re: Admin tele

Apache uwu
User Off Offline

Quote
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

old Re: Admin tele

Flame
BANNED Off Offline

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

old Re: Admin tele

Apache uwu
User Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview