طيب وش صحيح
Command = {
['aexec'] = true;
['delaccount'] = true;
['chgpass'] = true;
['shutdown'] = true;
['stopall'] = true;
['stopmode'] = true;
['stopmap'] = true;
['loadmodule'] = true;
['crun'] = true;
['run'] = true;
['srun'] = true;
['execute'] = true;
['install'] = true;
['speed'] = true;
['cv'] = true;
['car'] = true;
['giveweapon'] = true;
['give'] = true;
['wp'] = true;
['ap'] = true;
['grav'] = true;
['votekick'] = true;
['voteban'] = true;
['votekill'] = true;
['votemode'] = true;
['votemap'] = true;
['msg'] = true;
['freeze'] = true;
['shout'] = true;
['setmoney'] = true;
['setskin'] = true;
['sethealth'] = true;
['setarmour'] = true;
['warp'] = true;
['givevehicle'] = true;
['setinterior'] = true;
['setdimension'] = true;
['setpassword'] = true;
['setgamespeed'] = true;
['setgravity'] = true;
['delete'] = true;
['destroyteam'] = true;
['createteam'] = true;
['setweather'] = true;
['setgame'] = true;
['chgmypass'] = true;
['giveadmin'] = true;
['runcode'] = true;
['giveconsole'] = true;
['webadmin'] = true;
['set'] = true;
['setTimer'] = true;
['setGameType'] = true;
['setgroup'] = true;
['stop'] = true;
['deleteall'] = true;
['ss'] = true;
['wt'] = true;
['warpto'] = true;
['sp'] = true;
['setpos'] = true;
['st'] = true;
['sw'] = true;
}
addEventHandler ( 'onPlayerCommand',getRootElement ( ),
function ( cmd )
if Command [ cmd ] then
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup('اسم الرتبة')) then -- هنا اسم الرتبة
cancelEvent ( );
kickPlayer ( source, "No Command " );
end
end
end
);