local vCommandLoader = {
{ 'Command','Path','msg' },
{ 'Command','Path','msg' },
{ 'Command','Path','msg' },
{ 'Command','Path','msg' },
{ 'Command','Path','msg' },
{ 'Command','Path','msg' },
{ 'Command','Path','msg' },
{ 'Command','Path','msg' }
}
addEventHandler('onPlayerCommand',root,
function ( vCmd )
if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( 'Admin' ) ) then
for index,value in ipairs ( vCommandLoader ) do
if ( vCmd == value [ 1 ] ) then
triggerClientEvent ( 'vSoundStartHandler',root,value [ 2 ] );
outputChatBox ( value [ 3 ],source,255,255,255,true )
elseif ( vCmd == 'stopS' ) then
triggerClientEvent ( 'vSoundStopHandler',root );
end;
end;
end;
end
);
الحين يصير يقبل