Karoffe Posted August 14, 2014 Share Posted August 14, 2014 (edited) solved Edited August 14, 2014 by Guest Link to comment
Markeloff Posted August 14, 2014 Share Posted August 14, 2014 http://www.lua.org/pil/2.5.html Link to comment
Karoffe Posted August 14, 2014 Author Share 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 ? Link to comment
cheez3d Posted August 14, 2014 Share 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); Link to comment
Karoffe Posted August 14, 2014 Author Share Posted August 14, 2014 Yea that's what i was looking for. thanks, Link to comment
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