Forum

> > CS2D > Scripts > Need some Lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Need some Lua

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Need some Lua

MAfia Pro
User Off Offline

Zitieren
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
5× editiert, zuletzt 17.12.12 18:03:46

Admin/Mod Kommentar

Removed the server advertisement. /Starkkz

alt Re: Need some Lua

Yates
Reviewer Off Offline

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

alt Re: Need some Lua

Chingy
User Off Offline

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

alt Re: Need some Lua

MAfia Pro
User Off Offline

Zitieren
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.
1× editiert, zuletzt 17.12.12 19:24:28

alt Re: Need some Lua

EndDead
User Off Offline

Zitieren
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

alt Re: Need some Lua

EndDead
User Off Offline

Zitieren
-> Roleplay
-> Zombies gamemode
-------
<removed>

EDIT:
Zombies gamemode? its here by default..

alt Re: Need some Lua

Gajos
BANNED Off Offline

Zitieren
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
1× editiert, zuletzt 17.12.12 20:06:50

alt Re: Need some Lua

MAfia Pro
User Off Offline

Zitieren
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"
1× editiert, zuletzt 17.12.12 19:59:51

alt Re: Need some Lua

Gajos
BANNED Off Offline

Zitieren
user MAfia Pro hat geschrieben
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 >
1× editiert, zuletzt 17.12.12 20:09:13

alt Re: Need some Lua

MAfia Pro
User Off Offline

Zitieren
Thanks

EDIT:
Still nothing
that same but "dieitem" changes into "dieitem[i]
1× editiert, zuletzt 17.12.12 20:16:07

alt Re: Need some Lua

Gajos
BANNED Off Offline

Zitieren
× 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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht