Forum

> > CS2D > General > Weapon spawn laser problem, editor
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Weapon spawn laser problem, editor

4 replies
To the start Previous 1 Next To the start

old Weapon spawn laser problem, editor

bgbdead
User Off Offline

Quote
Probbably you remember the good old dust laser DM server. If you dont - i will explain it - normal dust but with respawn mode (at random places) and everyone have laser, pistol and knife at spawning. So, the question is - how can I make the players to spawn with a laser?

old Re: Weapon spawn laser problem, editor

ohaz
User Off Offline

Quote
you have two possibilities.
1. you want to have the script for the whole server, then you need to put it in a file ( ANYNAME.lua ), save it in the /sys/lua/ folder and add
dofile("sys/lua/ANYNAME.lua") to the bottom of server.lua.

2. you want the script only to work on this map.
Create a file called YOURMAPNAME.lua in /maps/ and put the script i gave you in there. if you now start the map the script works too.
attention, if you want to spread the map, you need to give the people the scriptfile too!

old Re: Weapon spawn laser problem, editor

Zune5
COMMUNITY BANNED Off Offline

Quote
Concluding to that, you may want to add
1
2
3
4
addhook("buy","sample.weapon.buy")
function sample.weapon.buy()
	return 1
end
This prevents people buying anything, so they won't grenade spam with smoke grens or something...
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview