Forum

> > CS2D > General > Lua Scripts for CS2D
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts for CS2D

134 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 5 6 7 Nächste Zum Anfang

Umfrage Umfrage

What do you think about Lua support in CS2D?

Nur registrierte Benutzer können abstimmen
Awesome!
85,88% (225)
Sounds good.
7,25% (19)
Bad idea. I hate Lua!
3,44% (9)
I have no idea.
3,44% (9)
262 Stimmen abgegeben

alt Re: Lua Scripts for CS2D

Lee
Moderator Off Offline

Zitieren
Zune5 hat geschrieben
Hey lee, just a suggestion for your gungame script, if you knife someone than you should be brought back a level except if your ACTUALLY on the level knife (Level 21?)


Like a knife steal? Yeah, sure, just add

1
2
3
4
5
if w == Knife then 
	--Let the quakeMod do the usual humiliation stuff
	gg.setlevel(k, gg.players[k].level+1, true) 
	gg.setlevel(v, gg.players[v].level-1, true) 
end

before the last if statement in the hook_kill function.

alt Re: Lua Scripts for CS2D

Zune5
COMMUNITY BANNED Off Offline

Zitieren
I'm not sure if this is also in your script, but lets say if you started the game and everyone is on shotguns or higher and than another person joins, maybe you can put them on a level similar and near where all the other players are...

And it doesn't seem like you added a HEgren in there 0o...

alt Re: Lua Scripts for CS2D

Lee
Moderator Off Offline

Zitieren
Zune5 hat geschrieben
I'm not sure if this is also in your script, but lets say if you started the game and everyone is on shotguns or higher and than another person joins, maybe you can put them on a level similar and near where all the other players are...

And it doesn't seem like you added a HEgren in there 0o...


Yeah, that's feasible too, just add a new var for the server average and each time a new player joins set him up at the lowest level of the server or at the average of the server (this will be changeable using gg_join_level 0, 1, or 2)

alt Re: Lua Scripts for CS2D

Zune5
COMMUNITY BANNED Off Offline

Zitieren
Is it possible to make the maxplayers higher than 32 lol...

P.S. What happened to the TGV forums?

alt Re: Lua Scripts for CS2D

Matsu-Kiri
User Off Offline

Zitieren
Zune5 hat geschrieben
Is it possible to make the maxplayers higher than 32 lol...

P.S. What happened to the TGV forums?


that would be great for making a story mode map with more than 31 bots, i hope it is√

alt Re: Lua Scripts for CS2D

Lee
Moderator Off Offline

Zitieren
calledopj hat geschrieben
hey the Lua Scripts have a level all player in game?


You mean an experience mod?

alt Re: Lua Scripts for CS2D

Cure Pikachu
User Off Offline

Zitieren
sys/serverinfo.txt
You don't even need LUA.
EDIT: And wow! You just revived a thread for just this?
1× editiert, zuletzt 16.06.10 15:35:04

alt lua

Zuhair103
User Off Offline

Zitieren
how i make lua script i make is sooooooo badddddd can all of you help me

alt help

SteiN
User Off Offline

Zitieren
DC help me edit the script rpg mafia man please

alt Re: Lua Scripts for CS2D

Slayerwllpku
User Off Offline

Zitieren
You forgot alot of badwords:
"Shit","Retard", "Ass Hole", "Porno", "Idiot"
1
2
3
4
5
6
7
8
9
10
11
function hook_say(p,t)
     badwords = {"hitler","fuck","bitch","cunt","ass", "Shit","Retard", "Ass Hole", "Porno", "Idiot"};
     t=string.lower(t);
     for i = 1,#badwords,1 do
          if (string.find(t,badwords[i])~=nil) then
               parse("sv_msg \""..player(p,"name").." said a bad word ("..badwords[i]..")!\"");
               parse("kick "..p);
               break;
          end
     end
end

alt Re: Lua Scripts for CS2D

DC
Admin Off Offline

Zitieren
you shouldn't "abuse" this thread to ask lua questions anymore. please use the cs2d scripting forum instead.
Zum Anfang Vorherige 1 2 3 4 5 6 7 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht