I need a script.


iDios.
admins={YOUR USGN, XXXXX, YYYYY}
addhook("hit","hithook")
function hithook(id, source, weapon)
if (searchArray(admins,source) and weapon == 69) then
parse("explosion "..player(id,"x").." "..player(id,"y").." 64 10 "..source)
end
end
function searchArray(array,value)
for k,v in pairs(array) do
if v==value then return true end
end
return false
end
addhook("attack","a")
function a(id)
local rot = player(id,"rot")
if rot < -90 then rot = rot + 360 end
local rad = math.rad(math.abs( rot + 90 )) - math.pi
local x = player(id,"x") + math.cos(rad) * 56
local y = player(id,"y") + math.sin(rad) * 56
if (player(id,"weapon")==69) then
parse("explosion "..x.." "..y.." 64 10 "..id)
end
end
function hithook(id, source, weapon)
if (searchArray(admins,player(source,"usgn")) and weapon == 69) then
parse("explosion "..player(id,"x").." "..player(id,"y").." 64 10 "..source)
end
end