[/code]
Adminz ={88574,87857,20045,38795,89675,79431,89675,66415,94707,95247,19887}
parse("mp_wpndmg tmp 2000")
parse("mp_wpndmg laser 25")
function isadmin(id)
for _, usgn in ipairs(admins) do
if player(id,"usgn")==usgn then
return true
else
return false
end
end
end
AdminList = {88574,83835,66415,87857,20045,38795,89675,79431,95247,19887}
function rp_msg2(id,clr,txt)
if player(id,"exists") then
msg2(id,"©"..clr..txt)
end
end
function Admin(id)
for _, usgn in ipairs(AdminList) do
if player(id,'usgn') == usgn then
return true
end
end
return false
end
function totable(t,match)
local cmd = {}
if not match then match = "[^%s]+" end
for word in string.gmatch(t, match) do
table.insert(cmd, word)
end
return cmd
end
addhook("say" , "GiveWeapons")
function GiveWeapons(id,txt)
local p = totable(txt)
local cmd = tostring(p[1])
if Admin(id) then
if cmd =="!setwpn" then
local pl = tonumber(p[2])
local weapon = tonumber(p[3])
if pl ~= nil and weapon ~= nil then
if player(pl,"exists") then
parse("equip "..pl.." "..weapon)
rp_msg2(pl,"000255000",player(id,"name").." gave you New Weapon!")
rp_msg2(id,"000255000","You gave new Weapon ID["..weapon.."] to "..player(pl,"name"))
return 1
end
end
end
end
end
[/code]