Forum

> > CS2D > Scripts > 2 questions
Forums overviewCS2D overview Scripts overviewLog in to reply

English 2 questions

4 replies
To the start Previous 1 Next To the start

old 2 questions

Precel97
User Off Offline

Quote
Hi everyone!I've got 2 questions.
First is about imagepos.
I copy cursor script and i want to do flashlight.
Flashlight is not there where's cursor is but under player.
And i don't know how to fix this...I suppose it is something wrong in imagepos.
And the second question about slot's
Here's that what i edited from this post : http://www.unrealsoftware.de/forum_posts.php?post=234945#jn

1
2
3
4
5
6
7
8
9
10
my_menu = "Shop"

addhook("serveraction","menu_cmds")
function menu_cmds(id,act)
if act==2 then
"my_menu = my_menu .. "Shop,Candy" .."
elseif act==3 then
menu(id, my_menu)
end
end

I want when i press f3 then in shop is candy.
But i don't know how to do that.
Plz help i creating a mod and i put this who help me to credits.

old Re: 2 questions

Yasday
User Off Offline

Quote
First one:
Look at info.txt ( the image function ( parameter #4 ) )
Second one:
my_menu = my_menu .. ",Candy"

old Re: 2 questions

Yasday
User Off Offline

Quote
Here again for dummies:
1
2
3
4
5
6
7
8
9
10
my_menu = "Shop"

addhook("serveraction","menu_cmds")
function menu_cmds(id, act)
	if act == 2 then
		my_menu = my_menu .. ",Candy"
	elseif act == 3 then
		menu(id, my_menu)
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview