Forum

> > CS2D > Scripts > i need use button script by BlazingNote
Forums overviewCS2D overview Scripts overviewLog in to reply

English i need use button script by BlazingNote

3 replies
To the start Previous 1 Next To the start

old i need use button script by BlazingNote

thesk5tera
User Off Offline

Quote
i need help in script      user SQ

http://www.unrealsoftware.de/files_show.php?file=288

i want make use button with ammo what is the initarray for ammo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
addhook("use","usasa")
function usasa(id,event,data,x,y)
if x == 49 and y == 25 then
if event == 100 then
menu(id,"Open Door 1,Open For == | 600$")
end
end
end
addhook("menu","_menu")
function _menu(id,title,key)
local money = player(id,"money")
if (title == "Open Door 1") then
if (key == 1) then
if [^^Here^^]>100 then
parse("setmoney "..id.." "..(player(id,"money") - 600))
parse("trigger buyme1")
end
end
end
end
in need help

old Re: i need use button script by BlazingNote

DarkBooy
User Off Offline

Quote
1
2
3
4
5
6
if (key == 1) then
if [^^Here^^]>100 then
parse("setmoney "..id.." "..(player(id,"money") - 600))
parse("trigger buyme1")
end
end
Like this ?
1
2
3
4
5
6
7
if (key == 1) then
		if player(id,"money")>600 then
		  parse("setmoney "..id.." "..(player(id,"money") - 600))
		   parse("trigger buyme1")
		else
		end
	end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview