Forum

> > CS2D > Scripts > Terrorists only.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Terrorists only.

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Terrorists only.

iCe4147
User Off Offline

Zitieren
How do I get this to work ONLY on Terrorists?

1
2
3
4
5
6
addhook("hit","jail")
function jail(id,source,weapon,hpdmg,apdmg)
if weapon == 6 then
parse("setpos "..id.." 864 704")
end
end

alt Re: Terrorists only.

Seekay
Reviewer Off Offline

Zitieren
you dont havet o script that.

console > mp_autoteambalance 0

thats an easier way.

alt Re: Terrorists only.

Yates
Reviewer Off Offline

Zitieren
Well, spawning a building you need to choose the team, and that was 1 i think (terrorist) maybe you have to do team = 1 or something. (I don't know lua, so don't ask xP)

alt Re: Terrorists only.

Geez
GAME BANNED Off Offline

Zitieren
use if on teamchange and save teams of players in variables

in hit add check of variable


[EDIT] Try this:
1
2
3
4
5
6
7
8
9
addhook("hit","jail")
function jail(id,source,weapon,hpdmg,apdmg)

if player(id,"team")==1 then
	if weapon == 6 then
		parse("setpos "..id.." 864 704")
	end
end
end

alt Re: Terrorists only.

Yates
Reviewer Off Offline

Zitieren
Qrchack hat geschrieben
use if on teamchange and save teams of players in variables

in hit add check of variable


[EDIT] Try this:
1
2
3
4
5
6
7
8
9
addhook("hit","jail")
function jail(id,source,weapon,hpdmg,apdmg)

if player(id,"team")==1 then
	if weapon == 6 then
		parse("setpos "..id.." 864 704")
	end
end
end

Yeah, I was right

alt Re: Terrorists only.

iCe4147
User Off Offline

Zitieren
@Qrchack

Thank you so much!

Now how do you disable the /kill command so that it would just respawn you to exactly where you are?
1× editiert, zuletzt 23.03.11 05:30:00

alt Re: Terrorists only.

Geez
GAME BANNED Off Offline

Zitieren
Yamato4147 hat geschrieben
@Qrchack

Thank you so much!

Now how do you disable the /kill command so that it would just respawn you to exactly where you are?


but in that you posted isn't /kill command.

give us full LUA script

alt Re: Terrorists only.

EngiN33R
Moderator Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
addhook("movetile","laststeppedon")
function laststeppedon(id,x,y)
lsox[id]=x
lsoy[id]=y
end

addhook("spawn","notgud")
function notgud(id)
if (injail[id]) then
parse("setpos "..id.." "..((lsox[id]*32)+16).." "..((lsoy[id]*32)+16))
end
end
You will have to create lsox and lsoy tables with initArray function and injail table that will contain boolean type values. Also, you should add this to qrchack's script right after if weapon==6:
1
injail[id]=true
And it should work.
P.S. excuse me if the script is not best quality, 8 hours in the morning do their job.

alt Re: Terrorists only.

Geez
GAME BANNED Off Offline

Zitieren
@Yamato4147

many scripts, like role-play, tibia & other shit (i don't like that mods) have kill commands included

and i think it should be @kill, because it should be admin command

alt Re: Terrorists only.

DannyDeth
User Off Offline

Zitieren
You guys aren't very smart, are you?

When you type "/kill" into the chat, it kills you. It's part of the game. Type "/rcon_pw dadalala" into the chat and you will see that it executes the command rcon_pw. And if you type kill into the console then you will die, etc etc.

It's the same as /vote and /votemap. Seriously, smarten up a little!

alt Re: Terrorists only.

Geez
GAME BANNED Off Offline

Zitieren
oh i didn't know it

but he want to make admin kill command (kill someone) as i see

alt Re: Terrorists only.

Geez
GAME BANNED Off Offline

Zitieren
DannyDeth hat geschrieben
Ooh! Okay. Sorry about that then


no problem

[EDIT] I've got it

Mehr >
1× editiert, zuletzt 23.03.11 15:36:58

alt Re: Terrorists only.

iCe4147
User Off Offline

Zitieren
@Qrchack

No actually I was looking for a script that just disables the /kill command to prevent people from killing themselves.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht