Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2116 117 118338 339 Next To the start

old Re: Lua Scripts/Questions/Help

Admir
User Off Offline

Quote
Starkkz has written
thanks, does the 'x' is upward, and the 'y' is sideways?. Or am I wrong?


lmao! you don't know about the X & Y side? are you forget go to school? lol here it is

Y: Upward Side
X: Sideways

also see this image if you confuse

IMG:https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Cartesian-coordinate-system.svg/250px-Cartesian-coordinate-system.svg.png

old Re: Lua Scripts/Questions/Help

Admir
User Off Offline

Quote
Flacko has written
@Admirdee:
I guess you also forgot to go to school, the image you posted is also wrong


I take the image from wikipedia.com
thats impossible to wrong

old Re: Lua Scripts/Questions/Help

Vectarrio
User Off Offline

Quote
It is correct if it is NOT in the computer. In monitors or displays Y is inverted, because of some monitor properties.
Y
1
2
3
4
5
X 1 2 3 4 5

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
You can set a player's money when it kills another one
1
2
3
4
addhook("kill","asdf")
function asdf(id,victim)
	parse("setmoney "..id.." "..(player(id,"money")+300))
end
That will give the player $300 extra dollars when he kills a player

old Re: Lua Scripts/Questions/Help

Deatherr
User Off Offline

Quote
Flacko has written
You can set a player's money when it kills another one
1
2
3
4
addhook("kill","asdf")
function asdf(id,victim)
	parse("setmoney "..id.." "..(player(id,"money")+300))
end
That will give the player $300 extra dollars when he kills a player


So how do you change the money you get back from killing your own buildings?

old Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Quote
@starkkz

I'll just give you the script; i guess you want it since you saw my server using it ?
Spoiler >

Sorry it's a giant ugly piece of code

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
Deatherr has written
Flacko has written
You can set a player's money when it kills another one
1
2
3
4
addhook("kill","asdf")
function asdf(id,victim)
	parse("setmoney "..id.." "..(player(id,"money")+300))
end
That will give the player $300 extra dollars when he kills a player


So how do you change the money you get back from killing your own buildings?


You can't.

old Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Quote
@Flacko
          Wrong!
1
2
3
4
5
6
7
8
9
10
11
12
mpbuild = mp_killbuildingmoney 0

function killbuild()
	  i = 1,32
	money = player(i,"money")
	if mpbuild ~= 1 then return end
		parse("setmoney "..i.." "..money)+money)
end

Well you're kinda wrong

just need to find a way to see if a building is gone xd



Woohoo I got Page 118!
edited 1×, last 15.12.09 01:48:52 am

old Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Quote
Rofl

http://unrealsoftware.de/files_show.php?file=363

Rofl

Just look at it
and read

Quote
by gfreemon or cyxapuk clan {World}<>{WolfS}


just soo funny



Notice the time difference lol

take hella long just to post that



again same as what i said before about the
positions thingy

not tryin to start anything

Anyway

I'm working on something close to what
[LaG] Fun 's Lua "Match" does

except my own custom matches

xd
To the start Previous 1 2116 117 118338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview