Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 247 48 49338 339 Next To the start

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Quote
What's wrong with this script:
Spoiler >

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
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."
edited 3×, last 01.09.09 09:36:57 am

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
phihung940 has written
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

old Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Quote
Blazzingxx has written
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.

old Re: Lua Scripts/Questions/Help

phihung940
User Off Offline

Quote
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)
edited 2×, last 01.09.09 12:19:09 pm

old Re: Lua Scripts/Questions/Help

TimeQuesT
User Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
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

old link external applications and lua. How?

Kyky-Pyky
User Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

saladface27
User Off Offline

Quote
[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?
edited 2×, last 03.09.09 01:24:08 pm

old Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

LilCoder
BANNED Off Offline

Quote
playa slaya has written
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 >

old Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Quote
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.
To the start Previous 1 247 48 49338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview