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! is it possible to create a king of the hill mod using lua? 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 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? 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 I found that kind of script somewhere
i dont remember
It really exists........ Yes really
i want that good script so badly 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. @ wups
thats not it
with that script i was able to make triple turrets single turrets and double turrets whenever i wanted Just code your own instead, so you can get what you want? 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 @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... 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. @flacko: how to test if the player is close to the "hill"? If anybody finds GERA in CS2D then ask him how to create admin colour.
if you name gordon you talk colour is red. Zune5 COMMUNITY BANNED Offline
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. 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. 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! @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)