Karoffe Posted August 14, 2014 Posted August 14, 2014 (edited) solved Edited August 14, 2014 by Guest
Karoffe Posted August 14, 2014 Author Posted August 14, 2014 That ain't helping i have read this page before, but its not related with my problem, if you think conversely, then could you fix the example which i provided ?
cheez3d Posted August 14, 2014 Posted August 14, 2014 local Punishments = {}; -- Table to store punishments; local PunishPlayer = function(punisher,player,type,time) -- Player to punish, type of punishment, time; if Punishments[player] then return false; -- Player is already punished; end; Punishments[player] = { Punisher = punisher, Time = time, Type = type; }; return Punishments[player]; end; addCommandHandler("punish",function(punisher,_,player,type,time) PunishPlayer(punisher,getPlayerFromName(player),type,time); end);
Karoffe Posted August 14, 2014 Author Posted August 14, 2014 Yea that's what i was looking for. thanks,
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now