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 2298 299 300338 339 Next To the start

old Re: Lua Scripts/Questions/Help

TDShuft
User Off Offline

Quote
kNedLiik has written
Someone try fix this pls??
1
2
3
4
5
6
7
position = {
"250 50 0"
}
addhook("spawn","admin")
function admin(id)
	parse("hudtxt "..id.." ©255000000 Admin:Urnamehere "..position)
end

1
2
3
4
5
6
position = "250 50 0"

addhook("spawn","admin")
function admin(id)
	parse("hudtxt "..id.." '©255000000 Admin: "..player(id,"name").."' "..position)
end
try it i think it will work gl

old Re: Lua Scripts/Questions/Help

Banaan
User Off Offline

Quote
kNedLiik has written
I want keep it urnamehere it's for all . Everyone can get it and use for theyr server but thx

So if I put
1
2
3
4
5
6
position = "250 50 0"

addhook("spawn","admin")
function admin(id)
	parse("hudtxt "..id.." ©255000000 Admin: Urnamehere "..position)
end

It display Admin: Urnamehere 250 50 0
But 250 50 0 must be position not displayed text


1
2
3
4
5
6
position = "250 50 0"

addhook("spawn","admin")
function admin(id)
	parse("hudtxt "..id.." \"©255000000Admin: Urnamehere\" "..position)
end

old Re: Lua Scripts/Questions/Help

kNedLiik
User Off Offline

Quote
Banaan has written
kNedLiik has written
I want keep it urnamehere it's for all . Everyone can get it and use for theyr server but thx

So if I put
1
2
3
4
5
6
position = "250 50 0"

addhook("spawn","admin")
function admin(id)
	parse("hudtxt "..id.." ©255000000 Admin: Urnamehere "..position)
end

It display Admin: Urnamehere 250 50 0
But 250 50 0 must be position not displayed text


1
2
3
4
5
6
position = "250 50 0"

addhook("spawn","admin")
function admin(id)
	parse("hudtxt "..id.." \"©255000000Admin: Urnamehere\" "..position)
end


Sorry man i fixed by myself but thx for try .

old Re: Lua Scripts/Questions/Help

3RROR
User Off Offline

Quote
Why it's wrong?
1
2
3
4
5
6
7
8
9
10
11
12
elseif sel == 9 then
            rp_license[id]==true then
                msg2 (id,"©000255000You already have a license!@C")
            else
                if addmoney(id, -250000) then      
                PLAYERS[id].license=1
                msg2 (id,"©000255000License successful!@C")
                else
                msg2 (id,"©255000000Not enough money!@C")
end				
end
end

old i have question

Infinite Rain
Reviewer Off Offline

Quote
i need script for zombie server
all bots every round must join to zombies
plzz need script for new my mod.

old Re: Lua Scripts/Questions/Help

beckerchen
User Off Offline

Quote
RedFrix has written
Why it's wrong?
1
2
3
4
5
6
7
8
9
10
11
12
elseif sel == 9 then
            rp_license[id]==true then
                msg2 (id,"©000255000You already have a license!@C")
            else
                if addmoney(id, -250000) then      
                PLAYERS[id].license=1
                msg2 (id,"©000255000License successful!@C")
                else
                msg2 (id,"©255000000Not enough money!@C")
end				
end
end


1
2
3
4
5
6
7
8
9
10
11
12
elseif sel == 9 then
           if rp_license[id]==true then
                msg2 (id,"©000255000You already have a license!@C")
            else
                if addmoney(id, -250000) then      
                PLAYERS[id].license=1
                msg2 (id,"©000255000License successful!@C")
                else
                msg2 (id,"©255000000Not enough money!@C")
end				
end
end

try this I add an "if" in line 2

old Re: Lua Scripts/Questions/Help

Hikaru
User Off Offline

Quote
How i can download the !broadcast command script? i can't acess amx2d webpage

When i type !broadcast and put a message everyone can see it

i'm looking for that script

old OMMG

Infinite Rain
Reviewer Off Offline

Quote
OMMG!
If i made that!
bots all join in terrorist. yes!
but when round restarted he was randomily join in ct or t!
To the start Previous 1 2298 299 300338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview