Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
How to remove hostages?
6 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
![user](img/i_friend.png)
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
![cs2d cmd](img/i_codehelp.png)
Also is it possible to make defuse kit buyable in hostage?
![user](img/i_friend.png)
Also is it possible to make defuse kit buyable in hostage?
You can't do it in an ordinary way
even
![cs2d cmd](img/i_codehelp.png)
![IMG:https://i.imgur.com/h839WAA.png](https://i.imgur.com/h839WAA.png)
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
![IMG:https://i.imgur.com/e9o60TO.gif](https://i.imgur.com/e9o60TO.gif)
I also tried to make CS:GO Casual script including customized hostage, but couldn't find a way to remove hostage so just used
![cs2d lua cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
+ If you looking for sprite for hostages, check this
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)