Took it from info.txt.
Forum
CS2D Scripts Lua Scripts/Questions/HelpTook it from info.txt.
Can anyone still actually make it?
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".
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?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
edited 1×, last 20.08.09 12:37:34 am
Quote
can someone help fix my script?
I'm trying to make a mod in which if a player is close to a certain point for a set period of time, that team wins the match.
dl link:
http://www.mediafire.com/?tyo0gwmzmid
I'm trying to make a mod in which if a player is close to a certain point for a set period of time, that team wins the match.
dl link:
http://www.mediafire.com/?tyo0gwmzmid
?
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!!)
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)
Yrael has written
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.
I really need one.
leegao has written
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.
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:
Quote
mp_building_limit "Wall III" "999"
mp_building_limit "Supply" "999"
mp_building_limit "Dispenser" "999"
mp_building_limit "Supply" "999"
mp_building_limit "Dispenser" "999"
And etc...
This has been discussed many times...
edited 1×, last 20.08.09 08:47:50 pm
craza424 has written
WTF! I have tryed to make scripts and failed misrably, can anyone make a no build limit script?
I really need one.
I really need one.
Use the search button in the forum. And you will find the answer. It's have been writed many times.
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???
1
2
2
lim = 'mp_building_limit "%s" 1000' parse (lim:format("Gate Field"))
leegao has written
yes
1
2
2
lim = 'mp_building_limit "%s" 1000' parse (lim:format("Gate Field"))
Oh shit, you can do that?
leegao has written
yes
1
2
2
lim = 'mp_building_limit "%s" 1000' parse (lim:format("Gate Field"))
uhmm i tried this and nothing happend
playa slaya has written
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.
leegao has written
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 has written
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.
@playa slaya: leegaos script does the same than just writing:
1
parse('mp_building_limit "Gate Field" 1000')
1
2
3
4
5
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"))
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.