could you someone help me?
i know for me should use say function..
of course the sms will be costly
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 sms_cost = 500 addhook("say","sms_function") function sms_function(id,txt) 	tbl = toTable(txt) 	if(tbl[1] == "!sms") 		msg2(tonumber(tbl[2]),table.concat(tbl," ",3)) 		parse("setmoney "..id.." "..(player(id,"money")-sms_cost)) 		return 1 	end 	return 0 end
if has_cell[id]==false then 	msg2(id,"You do not own a cellphone!") 	return 1 end
addhook('say', 'AA_say') function AA_say(id, txt) 	if txt:sub(1, 3) == '!pm' then 		msg2(txt:sub(5, 7), txt:sub(8, 255)) 		return 1; 	end 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 sms_cost = 500 addhook("say","sms_function") function sms_function(id,txt) 	tbl = toTable(txt) 	if(tbl[1] == "!sms") 		msg2(tonumber(tbl[2]),table.concat(tbl," ",3)) 		parse("setmoney "..id.." "..(player(id,"money")-sms_cost)) 		return 1 	end 	return 0 end
if(tbl[1] == "!sms")
if(tbl[1] == "!sms") then
msg2(id,"Example text@C")
-- New code function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=0 	end 	return array end mobile = initArray(32) mobile_price = 1000 addhook("serveraction","buyPhone") function buyPhone(id,b) 	if b==1 then 		if mobile[id]==0 then 			if player(id,"money")>=mobile_price then 				mobile[id]=1 				msg2(id,"You succesfully bought a mobile") 			end 		end 	end end -- Old code 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 sms_cost = 500 addhook("say","sms_function") function sms_function(id,txt) tbl = toTable(txt) if (tbl[1] == "!sms") then 	if mobile[id]==1 then --> Added "if player has a mobile" msg2(tonumber(tbl[2]),table.concat(tbl," ",3)) parse("setmoney "..id.." "..(player(id,"money")-sms_cost)) return 1 	end end return 0 end