Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2122 123 124338 339 Next To the start

old Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Quote
DaveRodec has written
Why not use the tile(x,y,"walkable") function?


The tile function doesn't exclude areas that are not accessible from the spawn point (IE, inside walls, outside the maps, etc)

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
There is no ammo set command yet.

But always there is some tricks.
I will show some of them in my next script.

old Re: Lua Scripts/Questions/Help

bunnyhop
User Off Offline

Quote
How to make a class script with the following conditions:

•Another soldier class for the Ts and CTs ( The CT soldier has Famas and the T soldier has a Galil; and the CTs/Ts can't choose the other soldier)
•Some Classes, like the Pyro mustn't have more players than 2

For example lets take the one of DC:
Spoiler >
edited 1×, last 24.12.09 12:52:22 pm

old Re: Lua Scripts/Questions/Help

Starkkz
Moderator Off Offline

Quote
put to it
1
2
3
4
5
6
7
8
9
if (player(id,"team")==1 then -- Terrorist Forces
	menu(id,"menu title,selection1,selection2,selection3")
end

-- or

if (player(id,"team")==2 then -- Counter Terrorist Forces
	menu(id,"menu title,selection1,selection2,selection3")
end

old Re: Lua Scripts/Questions/Help

bunnyhop
User Off Offline

Quote
where should i put that?

and if you have time, could you make a little example with just a ct soldier and t soldier

and how can i make that just 3 CTs can be a soldier (maximum 3 people can be in this class)

thanks

old Re: Lua Scripts/Questions/Help

Heartless Soldier
User Off Offline

Quote
Starkkz has written
put to it
1
2
3
4
5
6
7
8
9
if (player(id,"team")==1 then -- Terrorist Forces
	menu(id,"menu title,selection1,selection2,selection3")
end

-- or

if (player(id,"team")==2 then -- Counter Terrorist Forces
	menu(id,"menu title,selection1,selection2,selection3")
end



Put the close pharentesis

if (player(id,"team")==1)

old Re: Lua Scripts/Questions/Help

bunnyhop
User Off Offline

Quote
N-B-K has written
Starkkz has written
put to it
1
2
3
4
5
6
7
8
9
if (player(id,"team")==1 then -- Terrorist Forces
	menu(id,"menu title,selection1,selection2,selection3")
end

-- or

if (player(id,"team")==2 then -- Counter Terrorist Forces
	menu(id,"menu title,selection1,selection2,selection3")
end



Put the close pharentesis

if (player(id,"team")==1)


but how now? it doesnt works

old Re: Lua Scripts/Questions/Help

perfectgamer2
User Off Offline

Quote
Hi i made my own equip lua but then it will msg but no equip?

--Night vision

addhook("say","spawn7")
function spawn7(id,txt)
if(txt=="!nv") then
msg(""..player(id,"name").." He can see in the dark ")
parse("equip "..id.." 59")
end
end
it works but can't equip "..id.." nightvision
To the start Previous 1 2122 123 124338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview