Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 2116 117 118338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

Admir
User Off Offline

Zitieren
Starkkz hat geschrieben
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

alt Re: Lua Scripts/Questions/Help

Admir
User Off Offline

Zitieren
Flacko hat geschrieben
@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

alt Re: Lua Scripts/Questions/Help

Vectarrio
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

Deatherr
User Off Offline

Zitieren
Flacko hat geschrieben
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?

alt Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Zitieren
@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

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
Deatherr hat geschrieben
Flacko hat geschrieben
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.

alt Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Zitieren
@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!
1× editiert, zuletzt 15.12.09 01:48:52

alt Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Zitieren
Rofl

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

Rofl

Just look at it
and read

Zitat
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
Zum Anfang Vorherige 1 2116 117 118338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht