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 247 48 49338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
the original ways is you kill 3 ppl within 5 secs you get msg/sfx saying multikill

i want it to be you kill 2 ppl you get double kill
5 kills multikill
13kills is ultrakill
20 is unstoppable
30 is godlike
then repeat

the way id like is is your score not kills in certan period of time

and thx fo helping

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
Now I got it.

Eh, I gtg to school...

Then I will back, I will show idea whitch Im using for " Gun game 1.1".
Its good unreal sound idea

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
i have shcool also im not doing the best but im passing i dont why im always tired and cant focus.but i doubt it has anything to do with staying up all night on USGN an cs2d

alt Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Zitieren
What's wrong with this script:
Spoiler >

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
Lol, thats script from my super hero 1.2 saving... "ld_data"
Can you type all script?
Becouse I cant test if it works...

Also use this:
file:write(ac1[id]..' '..ac2[id]..' '..ac3[id]..' '..ac4[id])
You cant seperate it with comma.

And if you are starting using my scripts, like I said "Dont forget credits."
3× editiert, zuletzt 01.09.09 09:36:57

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
phihung940 hat geschrieben
thank men ! ok , how to add more "Multikill Sound" i need 8 kill

Just look at utsfx.lua

There is "elseif"
Just make more of "elseif"

You dont need any skills for that

alt Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Zitieren
Blazzingxx hat geschrieben
Lol, thats script from my super hero 1.2 saving... "ld_data"
Can you type all script?
Also use this:
file:write(ac1[id]..' '..ac2[id]..' '..ac3[id]..' '..ac4[id])
You cant seperate it with comma.
And if you are starting using my scripts, like I said "Dont forget credits."

The whole script is too long even for spoiler. I added credits. I used this what you wrote and it worked! Thanks! But I don't think it's time to reveal my super secret project.

alt Re: Lua Scripts/Questions/Help

phihung940
User Off Offline

Zitieren
Hey guy help me ! how to make a Head Shot Script ? and a Multikill gone so fast , i need Multikill gone in 10s

and how to make a kill mark or other mark (plan bomb mark)
2× editiert, zuletzt 01.09.09 12:19:09

alt Re: Lua Scripts/Questions/Help

TimeQuesT
User Off Offline

Zitieren
ohh you can!
you must create a hit hook.
then you must genareate random numbers with lua
and then a if commend if random number... == 1 then parse .... killplayer....
msg2 ..... "headshot"
end

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
You so s**p*d or what?
Ofcorse that not , but I dont like jokes...

Its imposible to make headshot , there is not 3rd dimention...
You already know it and please dont spam with it

alt link external applications and lua. How?

Kyky-Pyky
User Off Offline

Zitieren
I want to launch an external application from lua
and get data from it

how can I do?

>ps1: io.popen ( "ls-la") wrote to the console is not supported
>ps2: os.execute ( "ls -la > /tmp/ls") - hangs

help, really need help

alt Re: Lua Scripts/Questions/Help

saladface27
User Off Offline

Zitieren
[ENTITY]
- entity(x,y,"value")          Return a value of an entity:
                    exists, typename, type, name,
                    trigger, state, int0, int1, int2,
                    int3, int4, int5, int6, int7,
                    int8, int9, str0, str1, str2,
                    str3, str4, str5, str6, str7,
                    str8, str9
                    [int0-9 and str0-9 are used
                    for entity settings and are
                    different for each entity type]

what would be the variable (eg. str0) of the message of the message entity?
also, how would I access the entity to use the message of it in my script?
2× editiert, zuletzt 03.09.09 13:24:08

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
hey i got another error with this script:
Spoiler >


i need it to spawn with 1100 money and every second it takes 5 off then if money is 0 it kills that player

edit:i also need when player money is 25 it makes players speed is -2

alt Re: Lua Scripts/Questions/Help

LilCoder
BANNED Off Offline

Zitieren
playa slaya hat geschrieben
hey i got another error with this script:

i need it to spawn with 1100 money and every second it takes 5 off then if money is 0 it kills that player

edit:i also need when player money is 25 it makes players speed is -2



Pff, when will you learn it?
player(id,"money") returns the money of a player, u can not "set it". U can set it with this command: setmoney id number.
Spoiler >

alt Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Zitieren
actually, it's allowable to embed functions in place of evaluable expressions/variables/literals in Lua so that's not quite the reason for the error.
Zum Anfang Vorherige 1 247 48 49338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht