English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 202 203 204 ... 338 339 Next To the start
20.05.10 08:16:48 pm
Up
archmage
User
Offline Off
Use this add the directories of the image in DeathImage seperated by a comma

Spoiler >
We must secure the existence of our people and a future for white children. 14/88
20.05.10 08:55:43 pm
Up
Szkieletor
User
Offline Off
Works good, but sprite does not dissapear after a minute.
20.05.10 10:46:10 pm
Up
archmage
User
Offline Off
Szkieletor has written:
Works good, but sprite does not dissapear after a minute.

Okay try this.
Spoiler >
We must secure the existence of our people and a future for white children. 14/88
22.05.10 12:44:09 am
Up
gabpro
User
Offline Off
Hey,I again

How to make an image appears only for the "X" player?
22.05.10 01:11:35 am
Up
Heartless Soldier
User
Offline Off
gabpro has written:
Hey,I again

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


Imposible
22.05.10 07:17:23 am
Up
archmage
User
Offline Off
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
We must secure the existence of our people and a future for white children. 14/88
22.05.10 08:27:19 am
Up
Sudden Death
User
Offline Off
Flacko i read the "Types and Values " and i don't see some of "all"
Sniffin'Man "If it cannot be done with lua, it must be you mama, coz she's too fat"
22.05.10 10:12:15 am
Up
Szkieletor
User
Offline Off
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!
22.05.10 01:53:53 pm
Up
Flacko
User
Offline Off
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
22.05.10 02:31:05 pm
Up
saladface27
User
Offline Off
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
22.05.10 02:34:23 pm
Up
Flacko
User
Offline Off
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.
22.05.10 10:02:39 pm
Up
Heartless Soldier
User
Offline Off
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
22.05.10 10:58:41 pm
Up
Flacko
User
Offline Off
image("path",0,0,1,player)
23.05.10 12:53:15 am
Up
Heartless Soldier
User
Offline Off
Flacko has written:
image("path",0,0,1,player)


WOW Flacko thank you !!
23.05.10 01:12:03 am
Up
siuL
User
Offline Off
nvm help me in this
Spoiler >
edited 1×, last 24.05.10 12:00:03 am
24.05.10 12:08:05 am
Up
Flacko
User
Offline Off
Where line has that error?
BTW: ip and usgn are nil
You have to declare them as locals in your functions like this:
Code:
1
2
local ip = player(id,"ip")
local usgn = player(id,"usgn")

Also, usgns are numbers, not strings
24.05.10 12:47:09 am
Up
siuL
User
Offline Off
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
24.05.10 01:05:13 am
Up
Flacko
User
Offline Off
Replace
function admj()
With this
function admj(p)
24.05.10 01:17:45 am
Up
siuL
User
Offline Off
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 2 ... 202 203 204 ... 338 339 Next To the start