thx
![√](img/ok.gif)
function rp_join(id) 	rp_license[id]=0 	rp_ct[id]=false 	rp_Adminlevel[id]=0 	rp_arrest[id]=false 	rp_vip[id] = 0 	player_have_pos[id]=false 	tele_x[id]=800 	tele_y[id]=200 	tsb[id]=0 	rp_money[id]= 100 	UsgnIds[id]= 0 	rp_vipaddons[id]=0 	rp_NextAddons[id]=0 	jtag[id]=0 	stag[id]=0 	bmode[id]=2 	rp_Buildhelp[id] = 0 	InternalFreeImage(id) 	InternalFreeAddons(id) 	local UsgnID = player(id,"usgn") 	UsgnIds[id] = 0 	if UsgnID > 0 then 		local sameusgn = false 		for ids = 1,32 do 			if ids~=id then 				if UsgnIds[ids]==UsgnID then 					sameusgn=true 					break 				end 			end 		end 		if sameusgn==false then 			gmsg2(id,"000255000","Login with "..UsgnID) 			rp_Adminlevel[id]= isAdmin(UsgnID) 			rp_vip[id] = isvip(UsgnID) 			local filename = "sys/lua/IF/User data/"..UsgnID..".txt" 			local file = io.open(filename) 				if file then 				LoadUserStat(id,file) 				cu(id,UsgnID) 				gmsg2(id,"000255000","Load Successfully!") 					if rp_Adminlevel[id]>=1 then 						rp_ct[id]=true 						rp_license[id]=4 						SetAddons(id,1) 						rp_arrest[id]= false 						gmode[id] = 1 						rp_Buildhelp[id] = 1 					end	 				if file ~= nil then 					file:close() 				end 			end 			UsgnIds[id] = UsgnID 		else 			gmsg2(id,"255000000","Load fail!") 		end 	else 		gmsg2(id,"255000000","Please register a U.S.G.N. account ") 		gmsg2(id,"255000000","Your money and license not save on Database") 	end function SaveUserStat(id,UsgnID) 	file = io.open("sys/lua/IF/User data/"..UsgnID..'.txt', "w+") or io.tmpfile() 	local text = "" 	text = tostring(rp_money[id]) 	text = text .." "..rp_license[id] 	if rp_arrest[id]==true then 		text = text .." 1" 	else 		text = text .." 0" 	end 	text = text.." "..jtag[id] 	text = text.." "..stag[id]	 	for k, v in ipairs(Addons) do 		text = text .." "..v.FLic[id] 	end 	file:write(text) 	file:close() end function LoadUserStat(id,file) 	for line in file:lines() do 		local parses = totable(line) 		local userMoney=tonumber(parses[1]) 		if userMoney ~= nil then 			rp_money[id]= userMoney 		end 		if (tonumber(parses[2])~=nil) then 			rp_license[id]=tonumber(parses[2]) 		end 		if (tonumber(parses[3]) == 1) then 			rp_arrest[id]=true 		end 		if (tonumber(parses[4])~=nil) then 			jtag[id]=tonumber(parses[5]) 		end 		if (tonumber(parses[5])~=nil) then 			stag[id]=tonumber(parses[5]) 		end 		local counter=5 		for k, v in ipairs(Addons) do 			counter=counter+1 			local LicItem = tonumber(parses[counter]) 			if LicItem~=nil then 				v.FLic[id]=LicItem 			else 				v.FLic[id]=0 			end	 		end 	end end