Forum

> > CS2D > Scripts > Make respawn
Forums overviewCS2D overview Scripts overviewLog in to reply

English Make respawn

1 reply
To the start Previous 1 Next To the start

old Make respawn

knight-
User Off Offline

Quote
Hi all!I want a menu for players that they can use $10000 to respawn at spawn point.
Is it possible?

old Re: Make respawn

AtomKuh
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("serveraction","sa")
function sa(id,act)
if act==1 then
menu(id,"Spawn Menu,Spawn there | 10000")
end
end


addhook("menu","adminmenu")
function adminmenu(id,title,buton)
if title=="Spawn Menu" then
if buton==1 then
local money = player(id,"money")
			if money>=10000 then
				msg ("©000255000You spawn at the Respawn!@C")
				parse("setmoney "..id.." "..(player(id,"money") - 10000))
                                parse("setpos "..id.." 100 100")
				else
				msg ("©255000000You don't have enough Money!@C")
			end
		end
end
end

at
1
parse("setpos "..id.." 100 100")
write your position.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview