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 2202 203 204338 339 Next To the start

old Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Quote
Use this add the directories of the image in DeathImage seperated by a comma

Spoiler >

old Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Quote
Szkieletor has written
Works good, but sprite does not dissapear after a minute.

Okay try this.
Spoiler >

old Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Quote
gabpro has written
Hey,I again

How to make an image appears only for the "X" player?

It is:
100+<Player ID> to draw image under that player
200+<Player ID> to draw image over that player

old Re: Lua Scripts/Questions/Help

Szkieletor
User Off Offline

Quote
Dark Byte has written
gabpro has written
Hey,I again

How to make an image appears only for the "X" player?

It is:
100+<Player ID> to draw image under that player
200+<Player ID> to draw image over that player


It IS impossible, I think he meant to show the image only for one player, while for rest it will be invisible.
PS. Thanks for script!

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
No, it's not impossible, stop talking bs.
Changelog.txt has written
ADDED
Optional player param. for Lua images (only one player can see img)


@Intrusion: You have to read it all.
edited 1×, last 22.05.10 02:07:24 pm

old Re: Lua Scripts/Questions/Help

saladface27
User Off Offline

Quote
how could i make a script that randomly choose a player from a specific team at the start of each round
- but wouldn't choose a player that had been chosen previously until the whole team has been 'chosen'?

i think this is possible, i'm not sure how to do it

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
You can make a table that remembers which players have been chosen then you use a math.rand(1,32), check if that player exists and is in the team you want, else repeat.

old Re: Lua Scripts/Questions/Help

Heartless Soldier
User Off Offline

Quote
Flacko has written
No, it's not impossible, stop talking bs.
Changelog.txt has written
ADDED
Optional player param. for Lua images (only one player can see img)




And how you use that?
edited 1×, last 22.05.10 10:16:21 pm

old some 1 help

siuL
User Off Offline

Quote
nvm help me in this
Spoiler >
edited 1×, last 24.05.10 12:00:03 am

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
Where line has that error?
BTW: ip and usgn are nil
You have to declare them as locals in your functions like this:
1
2
local ip = player(id,"ip")
local usgn = player(id,"usgn")
Also, usgns are numbers, not strings

old Re: Lua Scripts/Questions/Help

siuL
User Off Offline

Quote
LUA ERROR: sys/lua/adm.lua:32: bad argument #1 to 'player' <number expected, got nil>
its all right when i run dedicated
but like if i enter on it is says it

old Re: Lua Scripts/Questions/Help

siuL
User Off Offline

Quote
well it says nothing now but it isnt working like it dont say that i am a admin or equip me with stuff help me
To the start Previous 1 2202 203 204338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview