Ranks = { -- الرتب
{"Console"},
}
addCommandHandler("givetime",
function (player,cmd,PlayerName,Time)
if PlayerName and Time then
local thePlayer = getPlayerFromName(PlayerName)
if isElement(thePlayer) then
for i = 1, #Ranks do
if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( Ranks[i][1] ) ) then
if tonumber(Time) then
t[thePlayer]["hour"] = tonumber(Time)
outputChatBox("* DONE",player,0,255,0)
else
outputChatBox("* خطء في الوقت",player,255,0,0)
end
else
outputChatBox("",player,255,0,0)
end
end
else
outputChatBox("",player,255,0,0)
end
end
end
)