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 269 70 71338 339 Nächste Zum Anfang

alt New Question

dre187killz
User Off Offline

Zitieren
I have a question
how long before my usgn is recent
because i cant say !vote 5 ingame
because
Zitat
ACCESS DENIED USGN TOO RECENT

alt Re: Lua Scripts/Questions/Help

KimKat
GAME BANNED Off Offline

Zitieren
dre187killz hat geschrieben
I have a question
how long before my usgn is recent
because i cant say !vote 5 ingame
because
Zitat
ACCESS DENIED USGN TOO RECENT
That simply means you have to wait a few more seconds until you can vote again. To vote just write; /vote <id> in chat and vote <id> in console, or by lua script like !vote <id>.

alt Re: Lua Scripts/Questions/Help

Trotskygrad
User Off Offline

Zitieren
Blazzingxx hat geschrieben
Trotskygrad & Playa Slaya
Best example for saving/loading is GunGame 1.1
It saves 7 values.

Save function:
Spoiler >


Load Function:
Spoiler >


Thanks man. Saved me from having to look that read and write to file code up by myself.

alt Re: Lua Scripts/Questions/Help

dre187killz
User Off Offline

Zitieren
KimKat hat geschrieben
dre187killz hat geschrieben
I have a question
how long before my usgn is recent
because i cant say !vote 5 ingame
because
Zitat
ACCESS DENIED USGN TOO RECENT
That simply means you have to wait a few more seconds until you can vote again. To vote just write; /vote <id> in chat and vote <id> in console, or by lua script like !vote <id>.



nope /vote 4 doesnt work cus kick voting is disable and second in able for some1 to HELP Votelock some1 i guess you must have ur usgn acc along mothafukin time thats wut i ment
must i wait 1 year before i can votelock??

alt Re: Lua Scripts/Questions/Help

KimKat
GAME BANNED Off Offline

Zitieren
dre187killz hat geschrieben
nope /vote 4 doesnt work cus kick voting is disable and second in able for some1 to HELP Votelock some1 i guess you must have ur usgn acc along mothafukin time thats wut i ment
must i wait 1 year before i can votelock??
Just enable the voting in server options, or tell the server you're on to enable voting. You must check if there is a player with the id. You can use either the listplayers command or by pressing and holding in tab when you're in a server to view id of the players. If there's no player with a id of 10 in example, it doesn't work to vote it off.

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
@Dre187killz:
Please, note that unrealsoftware hasn't got anything to do about this script, so we may not be the best help. Try contacting the server's admin and ask him what script is he using.

alt very fraustrated

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
ok, i am ill with this i do not see problem and is annoying i get error
attempt to do arithmitic on 'y' (got nill)

and i have other buildings the same way but this wont work

Spoiler >

and
Spoiler >

alt Trying to make a Mob-type server

CmDark
User Off Offline

Zitieren
I need to know how to make this function( not that skilled in lua)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
parse("sv_gamemode 1")
--DEATHMATCH
command = "@allywith "id"  "
command = "@removeally "id" "
command = "@listallies"
first command would send a ally request to the id that you entered (..playername.. wants to ally with you. Accept? @confirmrequest "id" ) for "id" that gets sent should be the person's id that wanted to ally with him/her

and @denyrequest "id"

both of them send the status to the original player who wanted ally e.g. if player confirms the request then sends result to original player (player accepted your ally request/denied request)

while being allied you cannot hurt your ally.

@removeally "id" just removes your ally connection and sends result to player who you removed(you have been removed from ..playername.. 's ally list)

@listallies
 command basically explains it all.. it lists all your allies


Oh and i want it to save the allies until they leave
T_T hard to explain this so can anyone help me on this?
1× editiert, zuletzt 21.10.09 04:36:14

alt Level script

phihung940
User Off Offline

Zitieren
Somebody help me make the "Level" Script plz:

1) 100 Level
2) 100 exp need to level up (lv2) , each level up the "exp need" will +150 exp . sample:
Level 1 up to level 2 need 100 exp
Level 2 up to level 3 need 250 exp (100 + 150= exp need)
Level 3 up to level 4 need 400 exp (250 + 150= exp need)
Lvel 4 up to level 5: exp need 550 exp (400+150 = exp need)...
3) each level will have name , Go to this web and write the name for lv http://cf.vtc.vn/aboutus/262/index.htm <-- Because this a web of vietnamese , so plz look the picture and Write it , dont look the vietnamese words ^^!
4) each person kill player will have 60 exp , if Duble Kill , Multi kill .... each multikill player will have 40exp , if player use Melee weapon + Grenade kill they will have 70 exp not 60 like gun kill. Sample:
a) Kill a person: have 60 exp
b) Duble kill: have 120 exp (of 2 dead men) and + 40 exp for Duble kill so player will have 160 exp.
5) CTF: 30 exp if player pick the Flag back to team base . ZOMBIE: kill 1 zombies player have 100 exp , infect 1 Humas zombies have 70 exp. Standard: Plant C4 +30 exp , Defuse C4 + 40 exp.
6) Arial menu lv, info:
Name Level: Level: Exp have: Exp need:
7) Teamates and kill hosted player will be -150 exp

Plz guys ! i need help

P/s: Please if somebody want do this contact me in this forum or yahoo: - E-Mail Adresse (nur mit Login sichtbar) - , and please one again dont COPY or MAKE THIS FOR YOU !

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
it does not matter anymore i fixed i forgot a simple thing

but i need to know is it possible to do this?:
1
2
3
4
addhook('hit','hitme')
function hitme(id,[b]attacker[/b],[b]victim[/b])
	<Script>
end
2× editiert, zuletzt 22.10.09 00:05:30

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
N-B-K hat geschrieben
I have a question

can u delete files/folders with lua script? of corse in cs2d...

thnks and bye


Yes, it is, but I'm not going to tell how, of course...

alt Re: Lua Scripts/Questions/Help

dmessn28
User Off Offline

Zitieren
can someone help me with my lua?

1) i need a help and a menu with stages
2) when i walk over a tile i need a message
3) when i walk over a tile it must unlock a stage in the menu
4) save/load function of the menu
how to do that all?

alt Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Zitieren
Excuse me, I have a small thought about a problem.
Spoiler >

It seems to be ok, but when the player should spawn (spawnplayer) it doesn't do anything (it makes the person to ct/t but nothing more).

@dmessn: It needs a lot of scripting. Better try to do it by yourself.

alt Re: Lua Scripts/Questions/Help

Heartless Soldier
User Off Offline

Zitieren
Flacko hat geschrieben
N-B-K hat geschrieben
I have a question

can u delete files/folders with lua script? of corse in cs2d...

thnks and bye


Yes, it is, but I'm not going to tell how, of course...


Come on, pleeease xD.
Im not going to do anything bad!!

by pm at least

good luck

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
N-B-K hat geschrieben
Come on, pleeease xD.
Im not going to do anything bad!!

by pm at least

good luck

He's thinking that you are going to make miserable stuff with it...
Flaco is right.

Removing is minor function which shouldn't appear in your hands.

alt Re: Lua Scripts/Questions/Help

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
playa slaya hat geschrieben
it does not matter anymore i fixed i forgot a simple thing

but i need to know is it possible to do this?:
1
2
3
4
addhook('hit','hitme')
function hitme(id,[b]attacker[/b],[b]victim[/b])
	<Script>
end

so umm is this possible?

alt My Suicide Bombing Script

Toa Hero 92
User Off Offline

Zitieren
Hello I need This Script to not allow the dead players to blow up when they are dead. Because in spectator mode it still allows you to blow up on the map at whatever position or on whomever your looking at. So can you help me?
Thank you...

1
2
3
4
--suicide bombing
	if (txt=="For Virgins!") then
	parse("explosion "..player(p,"x").." "..player(p,"y").." 160 900000000 "..p)
	parse("killplayer "..p); end
Zum Anfang Vorherige 1 269 70 71338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht