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 267 68 69338 339 Next To the start

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
Yeah, I notice that many ppl here have problems with Tabs.
Its simple, you cant use "tab" as text in browsers.
Anyway, just copy & put code here.

Edit:
If I make tabs, why it shows spaces?
1
2
3
4
5
function func()
	while
		cls
	wend
endfunction

old Re: Lua Scripts/Questions/Help

DC
Admin Off Offline

Quote
I don't know. tabbing is realized with a javascript hack because it's normally not even possible in browser textareas.

however that's pretty much off-topic.

old Err..

craza424
User Off Offline

Quote
My problem never actually got fixed, non of the idear's worked LOL!

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
playa slaya has written
how to hide text like if you say a certin thing it wont show it in game

Sayhook: Return 1,0
1 - dont show message

old Re: Lua Scripts/Questions/Help

Redefinder
User Off Offline

Quote
@Blazzingx can you tell me how to make a simple weapon menu? One for cts and one for zombies and the ct and zombie menus should be different.

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
redefinder has written
@Blazzingx can you tell me how to make a simple weapon menu? One for cts and one for zombies and the ct and zombie menus should be different.

I made just an example how it should work.
Press any serveraction to open team weapon menu.
Code in spoiler.
Spoiler >

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
@redefinder
Quote
Press any serveraction to open team weapon menu.

Did you read note?
F2, F3, F4 is default serveractions.

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
whats wrong with this i get error msg
attempt to call local 'killer' (a number value)
Spoiler >

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
-WiLSoN- has written
thanks for that but it isn't working =S
sorry this should work
[code]
msg(©255000000'..player(i,"name").." is idle for "..player(i,"idle").." secs!")

old Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Quote
@playa slaya
1
msg('©255000000'..player(i,"name").." is idle for "..player(i,"idle").." secs!")
you forgot to put one ' before the color number .. It worked THX

old Re: Lua Scripts/Questions/Help

Redefinder
User Off Offline

Quote
@Blazzingx,No it doesn`t open weapon menu because i already have class menu so when i press F2 it opens class menu.I used this code for classes:
function sample.zombie.classmenu(id)
     menu(id,"Select your Class,Random,Hidden,Fast,Fat,Iced,Explosive,Predator,Titan,Poison")     
end

function sample.zombie.startround()
     for i = 2,8 do
          if (player(i,"team")==2) then
               parse ("maket "..i)
          end
     end
end




Can you weapon menu to open when you type -menu?
To the start Previous 1 267 68 69338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview