You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MilkGames edited this page Feb 27, 2021
·
2 revisions
Give additional warn per day banned (upto 4 total):
hook.Add("xWarnWarnOnBan", "xWarnHandleWarnOnBan", function(target, targetname, time, banid)
-- They've already been warned once (by the xWarn feature), this hook will add a max of 3 depending on time.localtimestowarn= (time/86400)-1iftimestowarn>3thentimestowarn=3endiftimestowarn>0thenfori=1,timestowarndoxWarn.Database.CreateWarn(target, targetname, 0, "xWarn", "Banned - Additional warn to scale", banid)
endendend)