Forum

> > CS2D > Scripts > script request
Forums overviewCS2D overview Scripts overviewLog in to reply

English script request

20 replies
Page
To the start Previous 1 2 Next To the start

old script request

deletemepl0x
User Off Offline

Quote
Hello!
Im requesting a scipt.
The script is "no weapon drop after death"
The title says everything.
Im just creating a EPIC map and i dont know how to make script (i will learn soon )
I serched in the search, but didnt found anything
P.S. sry my englisk is bad
edited 2×, last 08.08.11 06:55:21 pm

old Re: script request

Kel9290
User Off Offline

Quote

1
2
3
4
addhook("die","die1")
function die1()
	return 1
end
btw, you can find it in samples

old eww

deletemepl0x
User Off Offline

Quote
eww...
i dont get it
im a n00b at scripting
explain plz

old Re: script request

Banaan
User Off Offline

Quote
Just use cs2d cmd mp_deathdrop for that.

Open your console and write
1
mp_deathdrop 4

And nothing will be dropped on death.

Meh too late :S

old aww

deletemepl0x
User Off Offline

Quote
I need a lua script, not console for that!!!

old Re: script request

Bowlinghead
User Off Offline

Quote
1
2
3
4
addhook("die","die1")
function die1()
     return 1
end

At first, try that out!!

old eww

deletemepl0x
User Off Offline

Quote
u mean to made a mapname.txt ?
I just need a lua for a map.

old Re: script request

Banaan
User Off Offline

Quote
mapname.txt is briefing (the message you'll see on loading the map, or if you press Esc - 1) and has nothing to do with this.

The Lua is given and it works. Read info.txt in your sys/lua folder if you want to understand it.

old Re: script request

dizziness
User Off Offline

Quote
user Bowlinghead has written
1
2
3
4
addhook("die","die1")
function die1()
     return 1
end

At first, try that out!!


This setting is more easy and simple than lua script - - mp_deathdrop 4

old @Kel9290

deletemepl0x
User Off Offline

Quote
Kel, u ARE THE BEST IN THIS THREAD! thx!
But where i need to place mapname.lua?

old Re: script request

PeterToman
COMMUNITY BANNED Off Offline

Quote
lol... mapname = the name of your map...
put it to cs2d_0119_ / maps (I think)
or maybe to cs2d_0119 / sys / lua

old Re: script request

Hador
User Off Offline

Quote
user deletemepl0x has written
But where i need to place mapname.lua?


Put it in the same folder as the map. If you haven't changed anything in the server settings then it should run automatically. (-> cs2d cmd mp_luamap )

old Re: script request

Infinite Rain
Reviewer Off Offline

Quote
1.
Go to CS2D/maps
2.
create file <mapname>.lua
3.
open this with notepad and write this:
1
parse('mp_deathdrop 4')
4.
Save
5.
ENJOY!

old yay

deletemepl0x
User Off Offline

Quote
yay, thx! cookie
but how to remove drop wpn when alive command?
edited 1×, last 10.08.11 06:56:14 pm

old nope

deletemepl0x
User Off Offline

Quote
no, i mean that when u press g, then weapon wont drop
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview