Forum
CS2D Scripts How to remove hostages?How to remove hostages?
6 replies 1
Crestfall has written
Is it possible to remove hostages through lua and create a lua object on a random hostage location?
http://www.cs2d.com/help.php?luacmd=hostage
http://www.cs2d.com/help.php?luacat=entity&luacmd=entity#cmd
These might help.
I don't know if this works but try killobject as well.
Also is it possible to make defuse kit buyable in hostage?
Crestfall has written
Also is it possible to make defuse kit buyable in hostage?
You can't do it in an ordinary way
even mp_buymenu won't help you
But simple trick might help, lazy to explain take a look
here's sample code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
parse("mp_buymenu |||||56"); addhook("buy","b") function b(id,w) 	 	if ( w == 56 and player(id,"money") >= 200 ) then 		 		if not( player(id,"defusekit") ) then 		parse("spawnitem 56 "..player(id,"tilex").." "..player(id,"tiley")); 		parse("setpos "..id.." "..player(id,"x").." "..(player(id,"y")+32)); 		parse("setpos "..id.." "..player(id,"x").." "..(player(id,"y")-32)); 		parse("setmoney "..id.." "..player(id,"money")-200); 		end 		 	else 	 	msg2(id,"\169255000000You have insufficient funds@C"); 	end 	 end
I also tried to make CS:GO Casual script including customized hostage, but couldn't find a way to remove hostage so just used entitylist to find hostage entities and explosion to eliminate them.
+ If you looking for sprite for hostages, check this
1