addCommandHandler("givetime",
function (player,cmd,PlayerName,Time)
if PlayerName and Time then
local thePlayer = getPlayerFromName(PlayerName)
if isElement(thePlayer) then
if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( "Console" ) ) then
if tonumber(Time) then
t[thePlayer]["hour"] = tonumber(Time)
outputChatBox("* نـجـح",player,0,255,0)
else
outputChatBox("* خطء في الوقت",player,255,0,0)
end
else
outputChatBox("* لم يـتـم إيـجـاد الاعب",player,255,0,0)
end
else
outputChatBox("givetime ",player,255,0,0)
end
end
end
)