Forum




Object Destroy
20 replies

function destroy()
if object(id,'exists') then
?? Destroy ???

And also you might make use of



edited 2×, last 29.05.19 12:33:28 pm

1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("serveraction","serveraction_") addhook("clientdata","clientdata_") function serveraction_(id,act) 	if act==3 then --this is where you made a mistake 		reqcld(id,2) 	end end function clientdata_(id,mode,x,y) 	if mode==2 then 		parse("explosion "..x.." "..y.." 20 999999") 	end end
1
parse("explosion "..x.." "..y.." 20 999999")

Admin/mod comment


edited 1×, last 29.05.19 12:33:14 pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
addhook("always", "_always") addhook("clientdata", "_clientdata") addhook("serveraction", "_serveraction") local mouses = {} function _always() reqcld(0, 2) end function _clientdata(id, mode, data1, data2) if mode == 2 then mouses[id] = {data1, data2} end end function _serveraction(id, action) if (action == 2) then local objectID = objectat(math.floor(mouses[id][1] / 32 + 0.5), math.floor(mouses[id][2] / 32 + 0.5)) if (objectID > 0) then parse("killobject " .. objectID) end end end

edited 1×, last 29.05.19 12:32:44 pm

edited 1×, last 29.05.19 12:33:07 pm

edited 1×, last 29.05.19 12:33:47 pm