Well I am new hear and am started to make a few maps of my own but I have a question of how do I import my own sounds? like custom tracks of wind or guns and etc
Scripts
Lua Scripts/Questions/Help
function toTable(t,match)
local cmd = {}
if not match then
match = "[^%s]+"
else
match = "[^"..match.."]+"
end
for word in string.gmatch(t, match) do
table.insert(cmd, word)
end
return cmd
end
addhook("say","sayz")
function sayz(id, text)
local ptxt = toTable(text)
if ptxt[1] == "!give" and #ptxt == 3 then --Ok the format would be "!give PLAYER MONEY"
local rcvp = tonumber(ptxt[2]) --Recieving player
local rcvm = tonumber(ptxt[3]) --Money
if player(rcvp,"exists") then --If the player exists
if player(id,"money") >= rcvm then --and this dude has enough money
if player(rcvp,"money") + rcvm <= 16000 then --check if we won't give him too much money (so we don't waste cash)
parse("setmoney "..id.." "..player(id,"money")-rcvm)
parse("setmoney "..rcvp.." "..player(rcvp,"money")+rcvm)
elseif player(rcvp,"money") < 16000 then --Ok this guy would overpass $16000 with our donation so we deduct this
rcvm = 16000 - player(rcvp,"money") --Here
parse("setmoney "..id.." "..player(id,"money")-rcvm)
parse("setmoney "..rcvp.." "..player(rcvp,"money")+rcvm)
end
end
end
end
end
Through walls (Serveractions to control speed) :function encrypt(password)
	local seed = os.time()
	math.randomseed(seed)
	local buffer = ""
	for i=1, password:len() do
		local otherbuffer = tostring(
			string.byte( string.sub(password,i,i) ) + math.random(1,256) )
		if otherbuffer:len() < 3 then
			for i=1, math.abs(otherbuffer:len() - 3) do
				otherbuffer = "0"..otherbuffer
			end
		end
		buffer = buffer..otherbuffer
	end
	return {buffer, seed}
end
function decrypt(password,seed)
	math.randomseed(seed)
	local decrypted = ""
	for i = 1, password:len(), 3 do
		local cchar = tonumber( string.sub(password,i,i+2) ) - math.random(1,256)
		decrypted = decrypted..string.char(cchar)
	end
	return decrypted
end
Random Weapons Rounds By Blazzingxxaddhook("startround","fun_startround")
addhook("buy","fun_buy")
addhook("drop","fun_drop")
weapons_table = {{38,21},{11},{24,5},{30,51},{32,51},{34,35},{87,88},{10,47}} -- Multiple Table Of Weapons - [level][Weapons]
speed_table = {0,0,0,0,0,0,0,0,0} -- Table Of Speed For Each Level
function fun_startround()
	local i
	local m
	local msg_wpn = ""
	local items = math.random(1,#weapons_table)
	for i = 1,32,1 do		
		for m = 1,#weapons_table[items],1 do
			parse("equip "..i.." "..weapons_table[items][m])
		end
		if (speed_table[items] == true) then
			parse('speedmod '..i..' '..speed_table[items])
		end
	end
	for i = 1, #weapons_table[items] do
		if (i > 1) then
			msg_wpn = msg_wpn.." + "
		end
		msg_wpn = msg_wpn..""..itemtype(weapons_table[items][i],"name")
	end
	msg("©000255000"..msg_wpn.." Round!@C")
end
function fun_buy()
	return 1
end
function fun_drop()
	return 1
end
function initArray(size,value)
	local tbl={}
	local istable = false
	if type(value) == "table" then istable = true end
	for i = 1, size do
		if istable then
			tbl[i] = {}
			for d,v in pairs(value) do
				tbl[i][d]=v
			end
		else
			tbl[i] = value
		end
	end
	return tbl
end
mytable = initArray(
	32,
	{
		thisprint = function(s)
			print(s)
		end
	}
)
mytable[1]['thisprint']("Hi") --Prints "Hi" in console
timer(1000,"mytable[1]['thisprint']","Bye") --Prints "LUA ERROR: Attempt to call a nil value" in console >.>
function rwep()
	math.random()
	local result = math.random(1,90)
	return result
end
rwep()
--[[-- Use
parse("equip "..id.." "..rwep())
--]]--
function toTable(t,match)
local cmd = {}
if not match then
match = "[^%s]+"
else
match = "[^"..match.."]+"
end
for word in string.gmatch(t, match) do
table.insert(cmd, word)
end
return cmd
end
addhook("say","sayz")
function sayz(id, text)
local ptxt = toTable(text)
if ptxt[1] == "!give" and #ptxt == 3 then --Ok the format would be "!give PLAYER MONEY"
local rcvp = tonumber(ptxt[2]) --Recieving player
local rcvm = tonumber(ptxt[3]) --Money
if player(rcvp,"exists") then --If the player exists
if player(id,"money") >= rcvm then --and this dude has enough money
if player(rcvp,"money") + rcvm <= 16000 then --check if we won't give him too much money (so we don't waste cash)
parse("setmoney "..id.." "..player(id,"money")-rcvm)
parse("setmoney "..rcvp.." "..player(rcvp,"money")+rcvm)
elseif player(rcvp,"money") < 16000 then --Ok this guy would overpass $16000 with our donation so we deduct this
rcvm = 16000 - player(rcvp,"money") --Here
parse("setmoney "..id.." "..player(id,"money")-rcvm)
parse("setmoney "..rcvp.." "..player(rcvp,"money")+rcvm)
end
end
end
end
end