-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckwhogotgift.txt
32 lines (32 loc) · 906 Bytes
/
checkwhogotgift.txt
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
@persist WL:gtable
if(first()){
runOnChat(1)
WL=gTable(owner():steamID()+"'s Global Tables",1)
function entity searchForPlayer(Name:string){
local P= findPlayerByName(Name)
if (!(P:isPlayer())){
P=findPlayerBySteamID(Name)
if (!(P:isPlayer())){
P=findPlayerBySteamID64(Name)
if (!(P:isPlayer())){
print("Invalid Player")
}
}
}
if(P:isPlayer()){
print(P:name()+"<br>"+P:steamID()+"<br>"+P:steamID64())
}
return P
}
}
if(chatClk(owner())){
LS=lastSaid():explode(" ")
switch(LS[1,string]:lower()){
case "check",
P=searchForPlayer(LS[2,string])
if(P:isPlayer()){
print(WL["AlreadyClaimedMoney",table]:exists(P:steamID()))
}
break
}
}