![](img/smiles/cry.gif)
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Money from kill NPC?
4 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
![](img/smiles/cry.gif)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("objectkill","moneynpc") function moneynpc(oid) 	if object(oid,"type") == 30 then 		local a = math.random(1,10) 		for i = 1, a do 			parse("spawnitem 67 "..object(oid,"tilex").." "..object(oid,"tiley")) 		end 	end end
![](img/smiles/frightened.gif)
edited 2×, last 30.12.12 02:50:23 pm
1
![IMG:https://uphinh.ssc.vn/images/680CounterStrike2D_2012_1.jpg](https://uphinh.ssc.vn/images/680CounterStrike2D_2012_1.jpg)
2
![IMG:https://uphinh.ssc.vn/images/726CounterStrike2D_2012_1.jpg](https://uphinh.ssc.vn/images/726CounterStrike2D_2012_1.jpg)
edited 1×, last 30.12.12 02:35:56 pm
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("objectkill","k") function k(id) if object(id,"type") == 30 then local z = math.random(-1,3) for i = 1, z do parse("spawnitem 66 "..object(id,"tilex").." "..object(id,"tiley")) end end end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("objectkill","k") function k(id) if object(id,"type") == 30 then local z = math.random(-1,3) for i = 1, z do parse("spawnitem 66 "..object(id,"tilex").." "..object(id,"tiley")) end end end
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)