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 242 43 44338 339 Next To the start

old Re: Lua Scripts/Questions/Help

EngiN33R
Moderator Off Offline

Quote
i fixed the error!
no one payed attention at this:

1
2
addhook("menu","sample.classes.menu")
function engi.classes.menu(id,menu,sel)

it's working!

old closed Re: Lua Scripts/Questions/Help

Yrael
User Off Offline

Quote
leegao has written
But either way, you definitely need to brush up on your English a little bit more because apparently we're having a major communication problem here.


WTH, y would i need to brush up my english!! im AMERICAN! from the USA!! im also french, so stfu!

and forget about the script.

Admin/mod comment

Do not fucking quote long quotes when you only need to quote one or two paragraphs. And trust me, claiming that you're an American doesn't mean that you have 'good' english because apparently you have a lot of problems with basic comprehension of your native language. /Lee

old Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

Quote
Yrael has written
WTH, y would i need to brush up my english!! im AMERICAN! from the USA!! im also french, so stfu!


umm...
you are just showing an example that how careless Americans are
well you need some improvement
and use short forms a little less


Now on topic
is there a script that allows the player to make triple turrets?
and also allows the player to make dispensers next to each other?

old Re: Lua Scripts/Questions/Help

ohaz
User Off Offline

Quote
Vibhor has written
and also allows the player to make dispensers next to each other?
that doesn't work
The other one... don't know

old Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

Quote
I found that kind of script somewhere
i dont remember
It really exists........ Yes really
i want that good script so badly

old Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Quote
I need help with this:
1
2
3
4
5
addhook("move","portal")
function portal(id,x,y,walk)
	hudtxt2(id,6,COLOR_NORMAL,"T Leader is in Chamber "..thenumber.."",4,400, LEFT)
	hudtxt2(id,6,COLOR_NORMAL,"CT Leader is in Chamber "..thenumberct.."",4,300, LEFT)
end
It returns only the "CT Leader", the "T Leader" doesn't appear.
This appears.
EDIT: Nevermind. I got it. It was the id that failed this script.

old Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

Quote
@ wups
thats not it
with that script i was able to make triple turrets single turrets and double turrets whenever i wanted

old Re: Lua Scripts/Questions/Help

Mexican
User Off Offline

Quote
KimKat has written
@Mexican: I think you're using the map editor.
I'm talking about lua scripting here, putting symbols and codes like that into value fields won't do anything except making it look really wrong.

You should try learning some LUA. I can't help you, and I said I've stopped helping people with LUA, so please go learn some.


Wut? Im Not using the Map Editor, Im Editing Sys/Lua/Server

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
@Saladface27:
It is...

@Vibhor:
It would also be possible using the hook "buildattempt", but expect to see some weird bugs like building from a far distance, and things like that...

old Re: Lua Scripts/Questions/Help

wups
User Off Offline

Quote
The best mehtod is say, then use the player(p,"rot") and calculate where the player have rotated and then place the building + 1 tile away.

old Re: Lua Scripts/Questions/Help

Zune5
COMMUNITY BANNED Off Offline

Quote
mortyr22 has written
how to create admin colour.
if you name gordon you talk colour is red.
\

That is AMX2D or the Admin Color script.

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
saladface27 has written
@flacko: how to test if the player is close to the "hill"?


Use a bounding box and the second hook to check which players are in the hill and increase their score.

old Re: Lua Scripts/Questions/Help

EngiN33R
Moderator Off Offline

Quote
Hello again... Here is my function and it doesn't work. Error is "attempting to call a nil value"

1
2
3
4
5
6
addhook("use","test2")
function test2(x,y)
if (x==80) and (y==32) then
print("abcdefg")
end
end
Help. Please!

old Re: Lua Scripts/Questions/Help

saladface27
User Off Offline

Quote
@flacko: ok - before I tried to use an entity as the "hill", but it didn't work.

Also, is it possible to incorporate some lua code in a map? (eg. the location of the hill)
To the start Previous 1 242 43 44338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview