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 2298 299 300338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

TDShuft
User Off Offline

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

alt Re: Lua Scripts/Questions/Help

Banaan
User Off Offline

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

alt Re: Lua Scripts/Questions/Help

kNedLiik
User Off Offline

Zitieren
Banaan hat geschrieben
kNedLiik hat geschrieben
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 .

alt Re: Lua Scripts/Questions/Help

3RROR
User Off Offline

Zitieren
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

alt i have question

Infinite Rain
Reviewer Off Offline

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

alt Re: Lua Scripts/Questions/Help

beckerchen
User Off Offline

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

alt Re: Lua Scripts/Questions/Help

Hikaru
User Off Offline

Zitieren
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

alt OMMG

Infinite Rain
Reviewer Off Offline

Zitieren
OMMG!
If i made that!
bots all join in terrorist. yes!
but when round restarted he was randomily join in ct or t!
Zum Anfang Vorherige 1 2298 299 300338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht