Forum

> > CS2D > General > 3 words
Forums overviewCS2D overviewGeneral overviewLog in to reply

English 3 words

16 replies
To the start Previous 1 Next To the start

old 3 words

Spook MQ Hacker
BANNED Off Offline

Quote
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 comment

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

old Re: 3 words

Kel9290
User Off Offline

Quote
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

old Re: 3 words

Twisted
User Off Offline

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

old Re: 3 words

Cure Pikachu
User Off Offline

Quote
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).

old Re: 3 words

Homam
User Off Offline

Quote
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

old Re: 3 words

DC
Admin Off Offline

Quote
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!)
edited 1×, last 06.08.11 12:04:25 pm

old Re: 3 words

Infinite Rain
Reviewer Off Offline

Quote
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 =(

old Re: 3 words

PeterToman
COMMUNITY BANNED Off Offline

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

old Re: 3 words

MAX-russia
User Off Offline

Quote
user DC has written
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.

old Re: 3 words

Apache uwu
User Off Offline

Quote
user Infinite Rain has written
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
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview