Forum

> > CS2D > General > 3 words
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch 3 words

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt 3 words

Spook MQ Hacker
BANNED Off Offline

Zitieren
Note: This Question is Important

Question 1:
Guys how did the others Change the names of the guns?

Question 2:
Guys how to make a NPC that name is SWAT?

Question 3:
How to make a LUA with Menu?

-------------------------
this is all guys 3 questions
-------------------------
...

Admin/Mod Kommentar

please choose a better title next time. this title says NOTHING about the thread content!

alt Re: 3 words

Kel9290
User Off Offline

Zitieren
q1: you cant
q2: ?
q3: maybe menu with lua?
1
2
3
4
5
6
addhook("serveraction","sv")
function sv(i,a)
	if a==1 then
		menu(i,"title,1,2,3,4,5,6,7,8,9")
	end
end
ps: you stolen mah userbar :E

alt Re: 3 words

Twisted
User Off Offline

Zitieren
The NPC's names aren't shown anywhere outside the editor, so changing it is pointless even if you can change it.

alt Re: 3 words

Cure Pikachu
User Off Offline

Zitieren
You can't. It's hard-coded. Even if you mean making another type of NPC, it's still impossible (since it's again, hard-coded).

alt Re: 3 words

Homam
User Off Offline

Zitieren
Changing any names in Cs2D is NOT allowed. But, well, q3 is easy. Here's a fast menu.
1
2
3
4
5
6
addhook("serveraction","menus")
function menus(id, act)
	If act == 1 then
		menu(id,"Title, Button 1, button 2, Etc button")
	end
end

Now to the functions;
1
2
3
4
5
6
7
addhook("menu","menuz")
function menuz(id, m, b)
	if m == "Title" then
		if b == 1 then
		-- Etc.... Complete it by your self.
	end
end

alt Re: 3 words

DC
Admin Off Offline

Zitieren
no you can't change the weapon name. unless you hack the EXE file (which is stupid and forbidden an therefore no option).
you could only change the kill message using a Lua script and cs2d cmd customkill

(@thread author: creating a thread AND sending a PM to me at the same time is [super annoying] spam and forbidden. only a thread next time please!)
1× editiert, zuletzt 06.08.11 12:04:25

alt Re: 3 words

Infinite Rain
Reviewer Off Offline

Zitieren
I can make script to rename wapons its easy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
wpn_name[1] = {32, "M4A1 MAGNUM"} -- this table for renaming
--use wpn_name[2] = {weapontype, "name in ""!"}
--min example renames m4a1 to m4a1 magnum

addhook('hit', '_hit')
function _hit(id, source, weapon, hpdmg, apdmg)
	for n, w in ipairs(wpn_name) do
		if player(source, 'weapontype') == w[1] then
			if player(id, 'health') <= 0 then
				parse('customkill '.. source ..' '.. w[2] ..' '.. id)
			end
		end
	end
end

About npc dont know yet =(

alt Re: 3 words

PeterToman
COMMUNITY BANNED Off Offline

Zitieren
The title should be corrected to "3 sentences" or "3 questions" or anything different.
1 forbidden
2 lolwut?
3 read above

alt Re: 3 words

MAX-russia
User Off Offline

Zitieren
user DC hat geschrieben
unless you hack the EXE file (which is stupid


stupid?

One guy hack the exe and the changes:
- Aimbot
- Autoaim
- ESP
- Line ESP
- No Flash
- No Scope
- No Smoke
- Speedhack

Now he sells it.

alt Re: 3 words

Apache uwu
User Off Offline

Zitieren
user Infinite Rain hat geschrieben
I can make script to rename wapons its easy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
wpn_name[1] = {32, "M4A1 MAGNUM"} -- this table for renaming
--use wpn_name[2] = {weapontype, "name in ""!"}
--min example renames m4a1 to m4a1 magnum

addhook('hit', '_hit')
function _hit(id, source, weapon, hpdmg, apdmg)
	for n, w in ipairs(wpn_name) do
		if player(source, 'weapontype') == w[1] then
			if player(id, 'health') <= 0 then
				parse('customkill '.. source ..' '.. w[2] ..' '.. id)
			end
		end
	end
end

About npc dont know yet =(


Idk why you made it so complex...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
wpn_name={}
wpn_name[1]="AWESOME PISTOL"
wpn_name[32]="M4A1 MAGNUM"
--wpn_name[#]="name"

addhook("hit","_hit")

function _hit(id, source, weapon, hpdmg, apdmg)
	if source~=0 then
		if player(id,"health")-hpdmg<=0 then
			if wpn_name[weapon]~=nil then
				parse("customkill "..id.." "..wpn_name[weapon])
			end
		end
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht