1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
elseif cmd == "!vip" then if rp_Adminlevel[id] >= 3 then local pl = tonumber(p[2]) if pl ~= nil then if player(pl,"exists") then rp_license[pl]=2 rp_vip[pl]=1 updatehud(pl) fname = "sys/lua/IF/vip.txt" file = io.open(fname, "a") file:write(player(pl, "usgn").."\n") file:close() gmsg2(id,"255255000","[Server]: \169000255000He is now a VIP User.") gmsg2(pl,"255255000","[Server]: \169000255000You are now a VIP User.") end end else gmsg2(id,"255255000","[Server]: \169255000000You don't have permission.") end
This code will write down to the vip.txt file usgn ids like that:
991539915399153
when i need it to do it like that:
99153
99153
99153
and so on...
any fix?