Files

> > CS2D > Lua Scripts > Drop Knife
Files overviewCS2D overviewLua Scripts overview

English Drop Knife >

32 comments897 b, 1,018 Downloads

old Drop Knife

HaRe
User Off Offline

The name says everything,
Finaly you can drop your knife and buy it,
so i made an script that you start with Claw's (DMG 0)
and if you write !bk (stands for buyknife) then you get an knife
and lose 1000 if you dont have 1000 it says "you dont have enough money to buy a knife"
So if you write !dk (stands for Drop knife) it drops the knife and it spawns in the map when you go over it you get it.

Known Bugs:
-- None fixed all yet

Write

1
dofile("sys/lua/dropknife.lua")
in your server.lua to enable this

Credits (Who made the script and helpers):
vesa-omar - Script

This can be usefull in jail servers
edited 5×, last 03.09.10 04:04:11 pm
Approved by Infinite Rain

Download Download

897 b, 1,018 Downloads

Comments

32 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

palomino
User Off Offline

Really good work
I like it!

old

HaRe
User Off Offline

Tell me wich bug, I think ive already fixed all bugs -.-"

old

DragonAwper
User Off Offline

Have Bug!
Have Error!

old

Admir
User Off Offline

use parse hook, on 'drop' command

old

Refresh
User Off Offline

hmm it can be good for RP servers
I like it!

old

HaRe
User Off Offline

You can do this

go to console and write

bind "key" "say !dk
thats the dropknife
bind "key" "say !bk
thats the buy knife

And yes i think its possible

1
2
3
4
addhook("join","joinknifeg")
function joinknifeg(id)
	parse("bind "G" "say !dk)
end

old

The Camo
User Off Offline

Is it possible to put all drops on one word like: /drop (it can't be seen in-game chat) then bind it with G, when people press G to drop 1 weapon, then until released it won't drop... well, this I got from other programs but can it be done in lua?

old

HaRe
User Off Offline

@The Camo
i dont think its possible couse knife is setted to return 1 wich means you cant drop it

/edit
Knife bug fixed, When you drop an weapon you get a knife but if you attack with it, it says "You dont have an knife.. Knife removed"
edited 1×, last 26.07.10 10:57:24 am

old

Cure Pikachu
User Off Offline

The main & nice idea = ∗ ∗ ∗ ∗ °
I like it!

old

Mirash
User Off Offline

We do not need it. But it's good for fun
I like it!

old

0DarkShadow0
User Off Offline

I dont really like this that much.
I like it!

old

The Camo
User Off Offline

@Vesa-omar I was wondering is it possible to make when you hold the knife to drop when you press G? then it disappears in like 10 seconds? other then that, the claws idea is great!
To the start Previous 1 2 Next To the start