Forum

> > CS2D > Scripts > Need some Lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Need some Lua

16 replies
To the start Previous 1 Next To the start

old Need some Lua

MAfia Pro
User Off Offline

Quote
Okay, i'm going to make a server and i need some plugins. I was looking for some ready made scripts but they didn't worked. I need Plugin that drops money from killed enemy or teammate (that money what victim actually had while was dying :P). Also one that deletes team kill punishment (-3300 money and -1 score). Can i make u will start game with no gun (usp - glock) just knife? Can u help me?
My English is bad and i should feel bad

I understand why u did it Sorry
edited 5×, last 17.12.12 06:03:46 pm

Admin/mod comment

Removed the server advertisement. /Starkkz

old Re: Need some Lua

Yates
Reviewer Off Offline

Quote
Please stop pushing - It's very annoying. It will only get you a temporary ban, no script.

old Re: Need some Lua

Chingy
User Off Offline

Quote
Do you know what Apple Pie means?
CS2D has no "plugins", just Lua scripts.
If you want to use them you should learn english at first.

old Re: Need some Lua

MAfia Pro
User Off Offline

Quote
Some people used name plugins and i thought that's how i should name it.
Apple pie means pie with apples in it, right?

Ok, now i know "Apple Pie" don't means pie, sorry.
edited 1×, last 17.12.12 07:24:28 pm

old Re: Need some Lua

EndDead
User Off Offline

Quote
Are you asking for a Role-play script?

Scroll through the File Archive untill you find that nugga.

PS: You don't really have to interact with English Communities if you don't understand English. or w/e

old Re: Need some Lua

EndDead
User Off Offline

Quote
-> Roleplay
-> Zombies gamemode
-------
<removed>

EDIT:
Zombies gamemode? its here by default..

old Re: Need some Lua

MAfia Pro
User Off Offline

Quote
I know its default. I mean i don't want to have roleplay lua on zombie server.

old Re: Need some Lua

Gajos
BANNED Off Offline

Quote
FIXED
1
2
3
4
5
6
dieItem = 65;

addhook("die","onDie")
function onDie(id)
	parse("spawnitem ".. dieItem .." ".. player(id,"tilex") .." ".. player(id,"tiley"));
end

When player die, then drop bandage
edited 1×, last 17.12.12 08:06:50 pm

old Re: Need some Lua

MAfia Pro
User Off Offline

Quote
Gajos PL:
Thanks, its very usable. If i write next to bandage id some more id's it will drop all?

Dont read that spoiler. Other language, i don't want hate.
Spoiler >

Edit:
Script doesn't works.
LUA ERROR: ">" "expected near" "dieitem"
edited 1×, last 17.12.12 07:59:51 pm

old Re: Need some Lua

Gajos
BANNED Off Offline

Quote
user MAfia Pro has written
Gajos PL:
Thanks, its very usable. If i write next to bandage id some more id's it will drop all?

Dont read that spoiler. Other language, i don't want hate.
Spoiler >


FIXED
1
2
3
4
5
6
7
8
dieItem = {65,67};

addhook("die","onDie")
function onDie(id)
	for i in pairs(dieItem) do
		parse("spawnitem ".. dieItem[i] .." ".. player(id,"tilex") .." ".. player(id,"tiley"));
	end
end

Spoiler >
edited 1×, last 17.12.12 08:09:13 pm

old Re: Need some Lua

MAfia Pro
User Off Offline

Quote
Thanks

EDIT:
Still nothing
that same but "dieitem" changes into "dieitem[i]
edited 1×, last 17.12.12 08:16:07 pm

old Re: Need some Lua

Gajos
BANNED Off Offline

Quote
× UPDATE ×
ADDED
If you add money to the table dieItem, plugin subtracts money if the player dies.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dieItem = {65,67,66};

addhook("die","onDie")
function onDie(id)
	for i in pairs(dieItem) do
		if dieItem[i] == 66 then
			parse("setmoney ".. id .." ".. player(id,"money") - 100);
		elseif dieItem[i] == 67 then
			parse("setmoney ".. id .." ".. player(id,"money") - 500);
		elseif dieItem[i] == 68 then
			parse("setmoney ".. id .." ".. player(id,"money") - 1000);
		end
		parse("spawnitem ".. dieItem[i] .." ".. player(id,"tilex") .." ".. player(id,"tiley"));
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview