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 240 41 42338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

craza424
User Off Offline

Zitieren
wth... that aint a hack i just wanna spawn with weps because im sick of making a mod room -.-, so plz dont say its a hack because it aint, also why is it lame?

Can anyone still actually make it?

alt Re: Lua Scripts/Questions/Help

sonnenschein
User Off Offline

Zitieren
its lame because if you play deathmach, or normal mode, you will pwn everyone with your "uber" equipment.
that makes you powerfull, and just killing everyone that doesnt have super armor or laser. pretty unfair

anyways, why dont you learn lua and make one for yourself?

Lua is simple and fast to learn
and if you learn it, you dont need to ask everytime "i would like a lua script".

alt Re: Lua Scripts/Questions/Help

craza424
User Off Offline

Zitieren
I have tryed to learn it and I can't, why you think I'm asking!!
Also I want it for construction and zombie, also me and my friend next door are the only ppl who use the server.
So I'll ask again, can anyone still make it?

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
Ok wups, try this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function secstotime(secs)
     if(secs>59) then
          local hour = math.floor(secs*0.000277777778)
          local minute = math.floor(secs*0.0166666667) - hour*60
          secs = secs - hour*3600 - minute*60
          
          if(secs<10)then secs = "0"..secs end
          if(hour<10)then hour = "0"..hour end
          if(minute<10)then minute = "0"..minute end
          
          return hour..":"..minute..":"..secs
     end
     if(secs<10)then secs = "0"..secs end
     return "00:00:"..secs
end 

A=os.time()
B=os.time() --(If you want to get the time difference later)
W=os.difftime(B,A) --Returns time difference in seconds...
print(secstotime(W))

Then, the time should be printed in HH:MM:SS format

EDIT: There was an error in the function, it's now fixed
1× editiert, zuletzt 20.08.09 00:37:34

alt Re: Lua Scripts/Questions/Help

craza424
User Off Offline

Zitieren
Ok, ok, ok, I relise no one is gonna make that script.
So now I am after a no build limit script, can someone make one and put it on here with a link to the DL plz?
Thnx. (I've been using my server a while and the build limit is annoying me so much!!)

alt Re: Lua Scripts/Questions/Help

Yrael
User Off Offline

Zitieren
i need someone who can make scripts to make me a bad word filter.

heres the thing, if a bad word is spelled in a message, the message doesn't get posted, so basically its like it has never been uttered.

the bad words are:
fuck, shit, bitch, bastard, ass, fag, gay... i might think up of new ones, lol!

thanks,
yrael (shai'tan)

alt Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Zitieren
Yrael hat geschrieben
i need someone who can make scripts to make me a bad word filter.


And so comes the spirit of do it yourself. This thread isn't called 'Make me a Script', it's called 'Lua Scripts/Questions/Help'. If you're coming here to request a complete script without even bothering to attempt it yourself, trust me, no one here will want to help you.

Here are the things to get you started, when you made this request the first time I've already written the word filter for you, the rest is up to you to finish.

http://6.dot.ch/2009/wordfilter-in-lua/

And google for Lua Boolean values, and then read the CS2D Lua Readme. This can't be all that difficult.

Also, for future reference, on behalf of those of us here who helps out every day on the lua topic (TKD, Linux, KK, Wups, Flacko, Blazing, etc), no more Script requests are allowed on here. You can hire us, and I'm sure we can determine a reasonable rate for freelancing for you (usually $12 per hour), but if you're not willing to at least attempt to write it yourself, we're definitely not going to waste our time on someone who doesn't want to learn.

On the other hand, if you come here with an attempted script (no matter how ugly it looks), we'll be happy to help you sort out the problem.

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
leegao hat geschrieben
Also, for future reference, on behalf of those of us here who helps out every day on the lua topic (TKD, Linux, KK, Wups, Flacko, Blazing, etc), no more Script requests are allowed on here. You can hire us, and I'm sure we can determine a reasonable rate for freelancing for you (usually $12 per hour), but if you're not willing to at least attempt to write it yourself, we're definitely not going to waste our time on someone who doesn't want to learn.

On the other hand, if you come here with an attempted script (no matter how ugly it looks), we'll be happy to help you sort out the problem.


Lol, I agree

@craza424:
In server.cfg write:
Zitat
mp_building_limit "Wall III" "999"
mp_building_limit "Supply" "999"
mp_building_limit "Dispenser" "999"

And etc...
This has been discussed many times...
1× editiert, zuletzt 20.08.09 20:47:50

alt Re: Lua Scripts/Questions/Help

wups
User Off Offline

Zitieren
craza424 hat geschrieben
WTF! I have tryed to make scripts and failed misrably, can anyone make a no build limit script?
I really need one.


Use the search button in the forum. And you will find the answer. It's have been writed many times.

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
Here open a LUA and paste this there and youl have unlimited build:

parse("mp_building_limit Turret 9999")
parse("mp_building_limit Supply 9999")
parse("mp_building_limit Dispenser 9999")


btw is it possible to do this with gatefeilds,teleporters,barbed wire and the rest of the stuff???

alt Re: Lua Scripts/Questions/Help

Zune5
COMMUNITY BANNED Off Offline

Zitieren
leegao hat geschrieben
yes

1
2
lim = 'mp_building_limit "%s" 1000'
parse (lim:format("Gate Field"))


Oh shit, you can do that?

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
leegao hat geschrieben
yes

1
2
lim = 'mp_building_limit "%s" 1000'
parse (lim:format("Gate Field"))



uhmm i tried this and nothing happend

alt Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Zitieren
playa slaya hat geschrieben
uhmm i tried this and nothing happend


And what exactly were you expecting to happen? Did you maybe hope that the entire screen will light up and the guy in the game will start to dance? You wanted a script to have unlimited Gate Fields, this lets you do that. It doesn't entice people with colorful firework or anything that would arouse expectation.

alt Re: Lua Scripts/Questions/Help

ohaz
User Off Offline

Zitieren
leegao hat geschrieben
playa slaya hat geschrieben
uhmm i tried this and nothing happend


And what exactly were you expecting to happen? Did you maybe hope that the entire screen will light up and the guy in the game will start to dance? You wanted a script to have unlimited Gate Fields, this lets you do that. It doesn't entice people with colorful firework or anything that would arouse expectation.
This one made my day, thanks
@playa slaya: leegaos script does the same than just writing:
1
parse('mp_building_limit "Gate Field" 1000')
You see, if you just want to make unlimited gate fields, it's shorter/easier to just write this line. But if you want to make this for more than one building, leegaos script is easier:
1
2
3
4
5
lim = 'mp_building_limit "%s" 1000'
parse (lim:format("Gate Field")) 
parse (lim:format("Turret"))
parse (lim:format("Wall I"))
parse (lim:format("Wall II"))

alt Re: Lua Scripts/Questions/Help

wups
User Off Offline

Zitieren
@Leegao

How do i code in amx2d too check if a user is admin and logged in?

like a for loop that check the whole player(0,"table") list.
And check if a user is admin and logged in. And then do something.

I have readed the auth code, but can't really get how to use that way.
Zum Anfang Vorherige 1 240 41 42338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht