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 242 43 44338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

EngiN33R
Moderator Off Offline

Zitieren
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!

alt geschlossen Re: Lua Scripts/Questions/Help

Yrael
User Off Offline

Zitieren
leegao hat geschrieben
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 Kommentar

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

alt Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

Zitieren
Yrael hat geschrieben
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?

alt Re: Lua Scripts/Questions/Help

ohaz
User Off Offline

Zitieren
Vibhor hat geschrieben
and also allows the player to make dispensers next to each other?
that doesn't work
The other one... don't know

alt Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

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

alt Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Zitieren
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.

alt Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

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

alt Re: Lua Scripts/Questions/Help

Mexican
User Off Offline

Zitieren
KimKat hat geschrieben
@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

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
@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...

alt Re: Lua Scripts/Questions/Help

wups
User Off Offline

Zitieren
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.

alt Re: Lua Scripts/Questions/Help

Zune5
COMMUNITY BANNED Off Offline

Zitieren
mortyr22 hat geschrieben
how to create admin colour.
if you name gordon you talk colour is red.
\

That is AMX2D or the Admin Color script.

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
saladface27 hat geschrieben
@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.

alt Re: Lua Scripts/Questions/Help

EngiN33R
Moderator Off Offline

Zitieren
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!

alt Re: Lua Scripts/Questions/Help

saladface27
User Off Offline

Zitieren
@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)
Zum Anfang Vorherige 1 242 43 44338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht