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 2202 203 204338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

archmage
User Off Offline

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

Spoiler >

alt Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Zitieren
Szkieletor hat geschrieben
Works good, but sprite does not dissapear after a minute.

Okay try this.
Spoiler >

alt Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Zitieren
gabpro hat geschrieben
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

alt Re: Lua Scripts/Questions/Help

Szkieletor
User Off Offline

Zitieren
Dark Byte hat geschrieben
gabpro hat geschrieben
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!

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

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


@Intrusion: You have to read it all.
1× editiert, zuletzt 22.05.10 14:07:24

alt Re: Lua Scripts/Questions/Help

saladface27
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
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.

alt Re: Lua Scripts/Questions/Help

Heartless Soldier
User Off Offline

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




And how you use that?
1× editiert, zuletzt 22.05.10 22:16:21

alt some 1 help

siuL
User Off Offline

Zitieren
nvm help me in this
Spoiler >
1× editiert, zuletzt 24.05.10 00:00:03

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

siuL
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 2202 203 204338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht