-
Notifications
You must be signed in to change notification settings - Fork 0
/
donors.lua
130 lines (112 loc) · 3.16 KB
/
donors.lua
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
// LL Things to do:
// Concerning Donations
// So there will be 2 Main groups: Founder and VIP (Donator)
// The groups will be then split apart for funzies look below, its just to give special people special things.
FoundersMain = { // Gets like /magicllama and stuff...
"STEAM_0:1:56868983" // Drex
}
_R = debug.getregistry()
Founders = { }
table.Add(Founders, FoundersMain)
Donor = {
}
Donor02 = {
}
Donor03 = {
STEAM_0:1:56868983 // Drex
}
VIP = { }
table.Add(VIP, Donor)
table.Add(VIP, Donor01)
table.Add(VIP, Donor02)
table.Add(VIP, Donor03)
/*
STAFF = { }
table.Add(STAFF, JrMod)
table.Add(STAFF, Mod)
table.Add(STAFF, SuperMod)
table.Add(STAFF, JrAdmin)
table.Add(STAFF, Admin)
table.Add(STAFF, SuperAdmin)
*/
function _R.Player:IsDonor(arg)
return self.DonorStatus == arg
end
function GetDonorStatus(ply)
if table.HasValue( Founders, ply:SteamID() ) then
ply:SetNWString("Status","Founder")
if table.HasValue( FoundersMain, ply:SteamID() ) then
ply:SetNWString("SubStatus","Owner")
end
// if table.HasValue( Davey_Gravey, ply:SteamID() ) then
// ply:SetNWString("SubStatus","Davey Gravey")
// end
// if table.HasValue( The_Big_Enchilada, ply:SteamID() ) then
// ply:SetNWString("SubStatus","PFat")
// end
return
end
/*
if table.HasValue( STAFF, ply:SteamID() ) then
ply:SetNWString("Status","Staff")
if table.HasValue( JrMod, ply:SteamID() ) then
ply:SetNWString("SubStatus","Jr Mod")
end
if table.HasValue( Mod, ply:SteamID() ) then
ply:SetNWString("SubStatus","Mod")
end
if table.HasValue( SuperMod, ply:SteamID() ) then
ply:SetNWString("SubStatus","Super Mod")
end
if table.HasValue( JrAdmin, ply:SteamID() ) then
ply:SetNWString("SubStatus","Jr Admin")
end
if table.HasValue( Admin, ply:SteamID() ) then
ply:SetNWString("SubStatus","Admin")
end
if table.HasValue( SuperAdmin, ply:SteamID() ) then
ply:SetNWString("SubStatus","Super Admin")
end
return
end
*/
if table.HasValue( VIP, ply:SteamID() ) then
ply:SetNWString("Status","VIP")
if table.HasValue( Donor, ply:SteamID() ) then
ply:SetNWString("SubStatus","VIP")
end
if table.HasValue( Donor02, ply:SteamID() ) then
ply:SetNWString("SubStatus","VIP+")
end
if table.HasValue( Donor03, ply:SteamID() ) then
ply:SetNWString("SubStatus","VIP++")
end
/*
if table.HasValue( Dev, ply:SteamID() ) then
ply:SetNWString("SubStatus","Dev")
end
if table.HasValue( Famous, ply:SteamID() ) then
ply:SetNWString("SubStatus","Famous")
end
if table.HasValue( VERY_VIP, ply:SteamID() ) then
ply:SetNWString("SubStatus","+VIP")
end
if table.HasValue( VIPMain, ply:SteamID() ) then
ply:SetNWString("SubStatus","VIP")
end
if table.HasValue( Dev, ply:SteamID() ) then
ply:SetNWString("SubStatus","Dev")
end
if table.HasValue( Famous, ply:SteamID() ) then
ply:SetNWString("SubStatus","Famous")
end
if table.HasValue( VERY_VIP, ply:SteamID() ) then
ply:SetNWString("SubStatus","+VIP")
end
*/
return
end
ply:SetNWString("Status","Guest")
ply:SetNWString("SubStatus","Guest")
end
hook.Add( "PlayerInitialSpawn", "GetDonorStatusHook", GetDonorStatus )