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 2304 305 306338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

TDShuft
User Off Offline

Zitieren
BureX hat geschrieben
anders4000 -.-' is this what u meant ? it gives me a minute not infinite
IMG:https://i53.tinypic.com/2u9tz84.jpg

uhhh what do you want
you cant do standart with infinite time o.o
but you can do team deathmatch or zombie like standart
just say what you want kay

alt Re: Lua Scripts/Questions/Help

Kurumi
User Off Offline

Zitieren
kato999 hat geschrieben
tiiger87 hat geschrieben
kato999 hat geschrieben
Give me those scripts plz:
1. Changes player model to picture (like in 0118 now zombie mode uses npc/zombie.png image)
2. Dont Switch to other weapon (dont even show the equipment menu)



More info pleas



1. I want to make other player skin not changing or editing the original is that possible?
2. I want to use only the one weapon not changing to knife. example usp or deagle



Help me whith it plz

alt Re: Lua Scripts/Questions/Help

brk951753
User Off Offline

Zitieren
hi all

i need this:

i have one image and i want show on screen(on cs2d)
but i cant make lua pls help me

notes:

image position is gfx/asd.png
image backgraund is white
image 301x142

pls help me


ANYONE CAN HELP ME?!?

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
@brk951753 OMG! I cant help you ... you can use:
1
2
HUDimage=image("gfx/asd.png",0,1,2)
imagepos(HUDimage,X,Y) -- Here enter position x and y (in pixels)

And type corect x,y position ...

@BuReX

Want you want?!? Standard gamemode without time? use spawn hook or change in tdm time spawn to 100000000....

alt Re: Lua Scripts/Questions/Help

Kurumi
User Off Offline

Zitieren
Hi, I want to make other player skin not changing or editing the original. Is that possible? (like new 0.1.1.8b zombie mode uses npc/zombie.bmp) plz help

alt Re: Lua Scripts/Questions/Help

SkullFace
User Off Offline

Zitieren
1
FIXED
BureX hat geschrieben
@TDShuft
i want that there are zombies(it can be done by lua but i dont know how) with infinite time

i want that there are zombies in TDM not ZM game mode[it can be done by lua but i dont know how(something with this hook "select(id,type,mode)" but i got cunfused ]

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
BureX hat geschrieben
1
FIXED
BureX hat geschrieben
@TDShuft
i want that there are zombies(it can be done by lua but i dont know how) with infinite time

i want that there are zombies in TDM not ZM game mode[it can be done by lua but i dont know how(something with this hook "select(id,type,mode)" but i got cunfused ]


Zombie gamemode in TDM ? ... like that:
1
2
3
4
5
6
7
8
9
10
11
12
13
zombie_hp=100
zombie_speed=0

addhook("spawn","tt_zombie")
function tt_zombie(id)
	if player(id,"team")==1 then
		parse("equip "..id.." 78") --Idk claw id ... i think 78..
		parse("setweapon "..id.." 78")
		parse("strip "..id.." 50")
		parse("speedmod "..id.." "..zombie_speed)
		parse("setmaxhealth "..id.." "..zombie_hp)
	end
end

Now you need only image oh ... and you need time too ?

alt Re: Lua Scripts/Questions/Help

Yasday
User Off Offline

Zitieren
Spoiler >


@steam-cs2d

think it should work like this(not tabbed, on ipod sry) :

Spoiler >


and use 1 say hook


@BureX you don't want the zombies collect sthing ? if you don't here a little code :

1
2
3
4
5
6
addhook([[walkover]],[[collect]])
function collect(id,iid,type)
if player(id,"team")==1 then
return 1
end
end
4× editiert, zuletzt 11.11.10 15:50:17

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function rpg_load(id)
     local i=0
     if player(id,"usgn")>0 then
          local f=io.open("sys/lua/rpgmod/saves/"..player(id,"usgn")..".txt","r")
          if f then
               for line in f:lines() do
                    i=i+1
                    if i == 1 then
                         admin[id]=tonumber(line)
                    elseif i == 2 then
                         level[id]=tonumber(line)
                    elseif i == 3 then
                         exp[id]=tonumber(line)
                    elseif i == 4 then
                         mp[id]=tonumber(line)
                    elseif i == 5 then
                         hp[id]=tonumber(line)
                    elseif i == 6 then
                         mpmax[id]=tonumber(line)
                    elseif i == 7 then
                         hpmax[id]=tonumber(line)
                    elseif i == 8 then
                         expmax[id]=tonumber(line)
                    elseif i == 9 then
                         class[id]=tonumber(line)
                    elseif i == 10 then
                         classbug[id]=tonumber(line)
                    elseif i == 11 then
                         dmg[id]=tonumber(line)
                    elseif i == 12 then
                         magic[id]=tonumber(line)

                    else
			msg2(id,"©000255000[GRA]Pomyslnie Wczytano Ostatni Plik Zapisu!")
                         break
                    end
               end
               f:close()
          else
               load_default(id)
               msg2(id,"©255000000[BLAD]Nie znaleziono pliku zapisu!")
          end
     else
          load_default(id)
          msg2(id,"©255000000[BLAD]Sprawdz swoje U.S.G.N lub Ustawienia!")
     end
end

How to change here from lines to ... word ?
Rpg_save save like: 1 2 3 4 5 6
but rpg_load load lines:
1
2
3
4
5
6
And now how to change load like save ?

[Really sry for my baaaad english]

alt Re: Lua Scripts/Questions/Help

Glix
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
addhook("say","tele")
function tele(id,txt)
if txt == "!menu" then
menu(id,"Special Menu,Vip,Vodka")
end
end
addhook("menu","menu")
function menu(id,t,b)
if t=="Vip menu Menu" then
if b==1 then
parse("sv_msg2 "..id.." You are now on Vip Room")
parse("setpos "..id.." 2694 2118")
parse("equip "..id.." 88")
parse("equip "..id.." 6")
parse("equip "..id.." 45")
parse("speedmod "..id.." 50")
parse("setmaxhealth "..id.." 150")
elseif b==2 then
parse("sv_msg2 "..id.." You have drinked Vodka")
parse("shake "..id.." 1000")
parse("sethealth "..id.." 80")
elseif b==3 then
parse("say 6sg3losa") 
end
end
end

addhook("say","broadcast") function broadcast(id,t)
if string.sub(t,1,10) == "6sg3losa" then
local bt = string.sub(t,12)
msg("©000255000"..player(id,"name").."(V.I.P): "..bt.."@C")
end
end

Help me please!

alt Re: Lua Scripts/Questions/Help

Kurumi
User Off Offline

Zitieren
kato999 hat geschrieben
Hi, I want to make other player skin not changing or editing the original. Is that possible? (like new 0.1.1.8b zombie mode uses npc/zombie.bmp) plz help


plz its for my new map ill call them Hitman 2D

alt Re: Lua Scripts/Questions/Help

Glix
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
addhook("say","tele")
function tele(id,txt)
if txt == "!menu" then
menu(id,"Special Menu,Vip,Vodka")
return 1
end
if string.sub(txt,1,10) == "6sg3losa" then
local bt = string.sub(txt,12)
msg("©000255000"..player(id,"name").."(V.I.P): "..bt.."@C")
return 1
end
end
addhook("menu","menu")
function menu(id,t,b)
if t=="Special Menu" then
if b==1 then
parse("sv_msg2 "..id.." You are now on Vip Room")
parse("setpos "..id.." 2694 2118")
parse("equip "..id.." 88")
parse("equip "..id.." 6")
parse("equip "..id.." 45")
parse("speedmod "..id.." 50")
parse("setmaxhealth "..id.." 150")
elseif b==2 then
parse("sv_msg2 "..id.." You have drinked Vodka")
parse("shake "..id.." 1000")
parse("sethealth "..id.." 80")
elseif b==3 then
msg2(id,"Pls say 6sglosa and then your txt.@C")
end
end
end

what wrnog with it helm me please

alt Re: Lua Scripts/Questions/Help

Anders4000
User Off Offline

Zitieren
Please spoiler some of all this, i get really confused.


Yasday hat geschrieben
Spoiler >


Just a wrong spell, "addhook". (:
- Anders4000
1
2
3
4
5
6
addhook([[walkover]],[[collect]])
function collect(id,iid,type)
if player(id,"team")==1 then
return 1
end
end

alt Re: Lua Scripts/Questions/Help

Kurumi
User Off Offline

Zitieren
can anyone tell me how to make player skin to other file (ex Original is players/ct1.bmp how to change it to example gfx/hitman.bmp not editing the original)

alt Re: Lua Scripts/Questions/Help

Yasday
User Off Offline

Zitieren
Anders4000 hat geschrieben
Please spoiler some of all this, i get really confused.


Yasday hat geschrieben
Spoiler >


Just a wrong spell, "addhook". (:
- Anders4000
1
2
3
4
5
6
addhook([[walkover]],[[collect]])
function collect(id,iid,type)
if player(id,"team")==1 then
return 1
end
end


yeah sry im on my ipod so i can't check it *fixed*
thx

alt Re: Lua Scripts/Questions/Help

Kostyan1996
User Off Offline

Zitieren
Say me plz, what im doing wrong?
1
2
3
4
5
6
addhook("movetile","aimove")
function aimove(id)
if player(id,"x==2") and player(id,"y==4") or player(id,"x==2") and player(id,"y==5") then
ai_goto("id,2,7")
end
end
Thank
Zum Anfang Vorherige 1 2304 305 306338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht