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 rp_msg2(id,"000255000","Login with "..UsgnID) rp_Adminlevel[id]= isAdmin(UsgnID) if rp_Adminlevel[id]>0 then rp_ct[id]=true rp_license[id]=3 SetAddons(id,1) rp_msg2(id,"000255000","Wellcome Admin!") else local filename = "sys/lua/role/"..UsgnID..".txt" local file = io.open(filename) if file then LoadUserStat(id,file) rp_msg2(id,"000255000","Load Successfully!") if file ~= nil then file:close() end end end UsgnIds[id] = UsgnID else rp_msg2(id,"255000000","Load fail!") end else rp_msg2(id,"255000000","Please register a U.S.G.N. account at http://www.unrealsoftware.de/ and make sure that you are logged in!") rp_msg2(id,"255000000","Your money and license not save on Database") endend

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 rp_license[id]=0 end

local counter=3 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 endend

I read how to do it but it is very difficult for me at this moment, to achieve it since my skills in script is basic.