1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
function Player.Exists(id)
	return (id~=nil and player(id,"exists"))
end
function Player.Name(id)
	return player(id,"name")
end
function Player.IP(id,returnasdecimal)
	if returnasdecimal then
		for a1,a2,a3,a4 in player(id,"ip"):gmatch("(%d+).(%d+).(%d+).(%d+)") do
			return a1*16777216+a2*65536+a3*256+a4
		end
	end
	return player(id,"ip")
end
function Player.Port(id)
	return player(id,"port")
end
function Player.USGN(id)
	return player(id,"usgn")
end
function Player.Idle(id)
	return player(id,"idle")
end
function Player.Bot(id)
	return player(id,"bot")
end
function Player.Team(id)
	return player(id,"team")
end
function Player.Skin(id)
	return player(id,"look")
end
function Player.X(id)
	return player(id,"x")
end
function Player.Y(id)
	return player(id,"y")
end
function Player.Rot(id,returnasrad)
	if returnasrad then
		return math.rad(player(id,"rot"))
	end
	return player(id,"rot")
end
function Player.TileX(id)
	return player(id,"tilex")
end
function Player.TileY(id)
	return player(id,"tiley")
end
function Player.Health(id)
	return player(id,"health")
			
function Player.MaxHealth(id)
	return player(id,"maxhealth")
end
function Player.Armor(id)
	return player(id,"armor")
end
function Player.Money(id)
	return player(id,"money")
end
function Player.Kills(id)
	return player(id,"score")
end
Player.Score=Player.Kills
function Player.Deaths(id)
	return player(id,"deaths")
end
function Player.Weapon(id)
	return player(id,"weapon")
end
function Player.WeaponList(id)
	return playerweapons(id)
end
function Player.Nightvision(id)
	return player(id,"nightvision")
end
function Player.Defusekit(id)
	return player(id,"defusekit")
end
function Player.Gasmask(id)
	return player(id,"gasmask")
end
function Player.Bomb(id)
	return player(id,"bomb")
end
function Player.Flag(id)
	return player(id,"flag")
end
function Player.Reloading(id)
	return player(id,"reloading")
end
function Player.Process(id)
	return player(id,"process")
end
function Player.Votekick(id)
	return player(id,"votekick")
end
function Player.Votemap(id)
	return player(id,"votemap")
end
function Player.Speedmod(id)
	return player(id,"speedmod")
end
function Player.RCon(id)
	return player(id,"rcon")
end
setmetatable(Player,{
__call=function(_,id)
	if id then
		local tmp={}
		for n,v in pairs(_) do
			tmp[n]=v(id)
		end
		return tmp
	else
		local tmp1={}
		for _,pl in pairs(player(0,"table")) do
			local tmp2={}
			for n,v in pairs(_) do
				tmp2[n]=v(id)
			end
			tmp1[pl]=tmp2
		end
		return tmp1
	end
end
})