-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.lua
More file actions
21 lines (20 loc) · 802 Bytes
/
server.lua
File metadata and controls
21 lines (20 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function cRP.characterChosen(user_id)
local source = source
vRP.prepare("fixExploitPersonagem","SELECT steam FROM summerz_characters WHERE id = @id")
local getSteam = vRP.query("fixExploitPersonagem",{ id = user_id})
local steam = vRP.getIdentities(source)
-- print(steam,getSteam,getSteam[1],getSteam[1]["steam"])
if getSteam[1] then
if steam == getSteam[1]["steam"] then
vRP.characterChosen(source,parseInt(user_id),nil)
-- print("Logou normalmente")
else
vRP.execute("banneds/insertBanned",{ steam = steam, days = 999 })
-- print("Usuário malicioso")
end
end
end
-- function cRP.characterChosen(user_id)
-- local source = source
-- vRP.characterChosen(source,parseInt(user_id),nil)
-- end