Forum

> > CS2D > Scripts > Terrorists only.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Terrorists only.

16 replies
To the start Previous 1 Next To the start

old Terrorists only.

iCe4147
User Off Offline

Quote
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

old Re: Terrorists only.

Seekay
Reviewer Off Offline

Quote
you dont havet o script that.

console > mp_autoteambalance 0

thats an easier way.

old Re: Terrorists only.

Yates
Reviewer Off Offline

Quote
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)

old Re: Terrorists only.

Geez
GAME BANNED Off Offline

Quote
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

old Re: Terrorists only.

Yates
Reviewer Off Offline

Quote
Qrchack has written
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

old Re: Terrorists only.

iCe4147
User Off Offline

Quote
@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?
edited 1×, last 23.03.11 05:30:00 am

old Re: Terrorists only.

Geez
GAME BANNED Off Offline

Quote
Yamato4147 has written
@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

old Re: Terrorists only.

EngiN33R
Moderator Off Offline

Quote
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.

old Re: Terrorists only.

Geez
GAME BANNED Off Offline

Quote
@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

old Re: Terrorists only.

DannyDeth
User Off Offline

Quote
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!

old Re: Terrorists only.

Geez
GAME BANNED Off Offline

Quote
oh i didn't know it

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

old Re: Terrorists only.

Geez
GAME BANNED Off Offline

Quote
DannyDeth has written
Ooh! Okay. Sorry about that then


no problem

[EDIT] I've got it

More >
edited 1×, last 23.03.11 03:36:58 pm

old Re: Terrorists only.

iCe4147
User Off Offline

Quote
@Qrchack

No actually I was looking for a script that just disables the /kill command to prevent people from killing themselves.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview