Weapon Detector By SnipeR95[TR] v1.2 
25 comments Hi Everyone !
I made this lua for Jail,Role Play and other servers.
Please Read Last Version.
:
Thanks For Downloading

I made this lua for Jail,Role Play and other servers.



Thanks For Downloading

edited 4×, last 01.07.13 11:39:01 am

Comments
25 commentsLog in!
You need to log in to be able to write comments!Log in

Amazing script in jail
@
alexbarb:
[1] = {x = 7, Tiles X detector (tiles X in your map)
y = 4, Tiles Y detector (tiles Y in u map)
storeX = 9, drop guns detector (tiles X in u map)
storeY = 4, drop guns detecor (Tiles Y in u map)
If this can help you

@

[1] = {x = 7, Tiles X detector (tiles X in your map)
y = 4, Tiles Y detector (tiles Y in u map)
storeX = 9, drop guns detector (tiles X in u map)
storeY = 4, drop guns detecor (Tiles Y in u map)
If this can help you

So if I would like ONLY to detect if prisioner has got weapons or not, I could delete "DetectAndDrop(id,x,y,dropx,dropy)" part? And what should I add if I want scanner to play 2 sounds, if prisioner is armed- alarm, if not- anything else? I'm newbie in LUA


Good. 4/5
My version
My version is noob
My version
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
myx = 0
myy = 0
addhook("movetile","movetile_hook")
function movetile_hook(player_id,player_x,player_y)
if entity(player_x,player_y,"typename")=="Trigger_Move" and entity(player_x,player_y,"name")=="wp_detect" then
for _,iid in ipairs(playerweapons(player_id)) do
if iid == 50 then
-- nambi
else
parse("spawnitem "..iid.." "..myx.." "..myy)
parse("strip "..player_id.." "..iid)
msg2(player_id,"\169255255255"..player(player_id,"name").." have weapons.")
return 1
end
end
end
end
myy = 0
addhook("movetile","movetile_hook")
function movetile_hook(player_id,player_x,player_y)
if entity(player_x,player_y,"typename")=="Trigger_Move" and entity(player_x,player_y,"name")=="wp_detect" then
for _,iid in ipairs(playerweapons(player_id)) do
if iid == 50 then
-- nambi
else
parse("spawnitem "..iid.." "..myx.." "..myy)
parse("strip "..player_id.." "..iid)
msg2(player_id,"\169255255255"..player(player_id,"name").." have weapons.")
return 1
end
end
end
end
My version is noob
