Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 2122 123 124338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Zitieren
DaveRodec hat geschrieben
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)

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
There is no ammo set command yet.

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

alt Re: Lua Scripts/Questions/Help

bunnyhop
User Off Offline

Zitieren
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 >
1× editiert, zuletzt 24.12.09 12:52:22

alt Re: Lua Scripts/Questions/Help

Starkkz
Moderator Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

bunnyhop
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

Heartless Soldier
User Off Offline

Zitieren
Starkkz hat geschrieben
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)

alt Re: Lua Scripts/Questions/Help

bunnyhop
User Off Offline

Zitieren
N-B-K hat geschrieben
Starkkz hat geschrieben
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

alt Re: Lua Scripts/Questions/Help

perfectgamer2
User Off Offline

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