Jump to content

مسااااعدهه


Recommended Posts

اوكي

metaالـ

"|Mr|-Talal07-|"  name="Police Panel" version="1.1.0" type="script" /> 
    

PP_Client.lua ملف

-- Police Panel By |Mr|-Talal07-| 
key = "m" 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false) 
end 
  
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
wnd = guiCreateWindow(0.32,0.175,0.5138,0.7583,"Police Panel | By |Mr|-Talal07-|",true) 
guiWindowSetMovable(wnd,false) 
guiWindowSetSizable(wnd,false) 
centerWindow(wnd) 
grid = guiCreateGridList(9,25,183,375,false,wnd) 
guiGridListSetSelectionMode(grid,1) 
guiGridListAddColumn(grid,"الاعبين",0.-- s8) -->
edit = guiCreateEdit(9,406,182,40,"",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(196,33,205,34,"قتل الاعب",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(196,79,205,34,"مراقبه الاعب",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(196,125,205,34,"سحب سيارة الاعب",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(196,174,205,34,"تفجير سيارة الاعب",false,wnd) 
GUIEditor_Label[1] = guiCreateLabel(199,221,201,27,"Name:",false,wnd) 
GUIEditor_Label[2] = guiCreateLabel(199,244,201,27,"Money:",false,wnd) 
GUIEditor_Label[3] = guiCreateLabel(199,267,201,27,"Ping:",false,wnd) 
GUIEditor_Label[4] = guiCreateLabel(199,289,201,27,"Health:",false,wnd) 
GUIEditor_Label[5] = guiCreateLabel(199,311,201,27,"Armor:",false,wnd) 
GUIEditor_Button[5] = guiCreateButton(315,397,87,49,"خروج",false,wnd) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
guiSetProperty(GUIEditor_Button[5],"NormalTextColour","ffff0000") 
GUIEditor_Label[6] = guiCreateLabel(199,333,201,27,"Skin:",false,wnd) 
guiSetVisible(wnd,false) 
  
for i,btn in ipairs(GUIEditor_Button) do 
    guiSetFont(btn,"default-bold-small") 
    guiSetProperty(btn,"NormalTextColour","ffff0000") 
end 
  
for i,lal in ipairs(GUIEditor_Label) do 
    guiSetFont(lal,"default-bold-small") 
    guiLabelSetColor(lal,255,255,0) 
end 
  
function open() 
    triggerServerEvent("isPolice",localPlayer) 
end 
bindKey(key,"down",open) 
  
  
addEvent("Yes",true) 
addEventHandler("Yes",root, 
    function () 
        if guiGetVisible(wnd) then 
            guiSetVisible(wnd,false) 
            showCursor(false) 
            guiSetInputEnabled(false) 
        else 
            guiSetVisible(wnd,true) 
            showCursor(true) 
            guiSetInputEnabled(true) 
            putAllPlayersInList() 
        end 
    end 
) 
  
function putAllPlayersInList() 
    guiGridListClear(grid) 
    for i,v in ipairs(getElementsByType("player")) do 
        local row = guiGridListAddRow(grid) 
        guiGridListSetItemText(grid,row,1,getPlayerName(v),false,false) 
        guiGridListSetItemColor(grid,row,1,0,255,0) 
    end 
end 
  
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor_Button[5] ) then 
            guiSetVisible(wnd,false) 
            showCursor(false) 
            guiSetInputEnabled(false) 
        end 
    end 
) 
  
function setPlayerSep(player) 
    setCameraTarget(player) 
    x,y = guiGetScreenSize() 
    endkey = guiCreateButton(0.1,0.4,0.1,0.15,"End",true) 
    addEventHandler("onClientGUIClick",endkey,onEndSep,false) 
end 
  
function onEndSep() 
    destroyElement(endkey) 
    setCameraTarget(localPlayer) 
end 
  
function show(msg) 
    exports.msgbox:guiShowMessageBox(msg,"error","Error",false,"OK") 
end 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        local sel = guiGridListGetSelectedItem(grid) 
        local text = guiGridListGetItemText(grid,sel,1) 
        if ( source == GUIEditor_Button[2] ) then 
            if ( sel ~= -1 ) then 
                setPlayerSep(getPlayerFromName(text)) 
            else 
                show("Please Choose Player To Spectator it") 
            end 
        elseif ( source == GUIEditor_Button[1] ) then 
            if ( sel ~= -1 ) then 
                triggerServerEvent("killPlayer",localPlayer,text) 
            else 
                show("Please Choose Player To Kill it") 
            end 
        elseif ( source == GUIEditor_Button[3] ) then 
            if ( sel ~= -1 ) then 
                local player = getPlayerFromName(text) 
                if isPedInVehicle(player) then 
                    triggerServerEvent("onDes",localPlayer,text) 
                else 
                    show("This Player Don't Have Vehicle") 
                end 
            else 
                show("Please Choose Player To Destroy His Vehicle") 
            end 
        elseif ( source == GUIEditor_Button[4] ) then 
            if ( sel ~= -1 ) then 
                local player = getPlayerFromName(text) 
                if isPedInVehicle(player) then 
                    triggerServerEvent("onBlow",localPlayer,text) 
                else 
                    show("This Player Don't Have Vehicle") 
                end 
            else 
                show("Please Choose Player To Blow His Vehicle") 
            end 
        end 
    end 
) 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == grid ) then 
            local sel = guiGridListGetSelectedItem(grid) 
            local text = guiGridListGetItemText(grid,sel,1) 
            local player = getPlayerFromName(text) 
            if ( player ) then 
                guiSetText(GUIEditor_Label[1],"Name: " .. getPlayerName(player)) 
                guiSetText(GUIEditor_Label[2],"Money: " .. getPlayerMoney(player) .. "$") 
                guiSetText(GUIEditor_Label[3],"Ping: " .. getPlayerPing(player)) 
                guiSetText(GUIEditor_Label[4],"Health: " .. math.ceil(getElementHealth(player)) .. "%") 
                guiSetText(GUIEditor_Label[5],"Armor: " .. math.ceil(getPedArmor(player)) .. "%") 
                guiSetText(GUIEditor_Label[6],"Skin: " .. getElementModel(player)) 
            else 
                guiSetText(GUIEditor_Label[1],"Name: N/A") 
                guiSetText(GUIEditor_Label[2],"Money: N/A") 
                guiSetText(GUIEditor_Label[3],"Ping: N/A") 
                guiSetText(GUIEditor_Label[4],"Health: N/A") 
                guiSetText(GUIEditor_Label[5],"Armor: N/A") 
                guiSetText(GUIEditor_Label[6],"Skin: N/A") 
            end 
        end 
    end 
) 
  
  
addEventHandler("onClientGUIChanged",root, 
    function () 
        if ( source == edit ) then 
            local text = guiGetText(edit) 
            if ( text == "" ) then 
                putAllPlayersInList() 
            else 
                guiGridListClear(grid) 
                for i,v in ipairs(getElementsByType("player")) do 
                    local name = getPlayerName(v) 
                    if string.find(name,text) then 
                        local row = guiGridListAddRow(grid) 
                        guiGridListSetItemText(grid,row,1,name,false,false) 
                        guiGridListSetItemColor(grid,row,1,255,255,0) 
                    end 
                end 
            end 
        end 
    end 
) 
  

PP_Server.lua ملف

addEvent("isPolice",true) 
addEventHandler("isPolice",root, 
    function () 
        if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Police")) then 
            triggerClientEvent(source,"Yes",source) 
        end 
    end 
) 
  
addEvent("killPlayer",true) 
addEventHandler("killPlayer",root, 
    function (player) 
        local player = getPlayerFromName(player) 
        if ( player ) then 
            killPed(player) 
            outputChatBox("* [ Police ] : The Player Killed Successfuly",source,0,255,0) 
            outputChatBox("* [ Police ] : You Are Killed By " .. getPlayerName(source),player,255,0,0) 
        end 
    end 
) 
  
  
addEvent("onDes",true) 
addEventHandler("onDes",root, 
    function (player) 
        local player = getPlayerFromName(player) 
        local veh = getPedOccupiedVehicle(player) 
        destroyElement(veh) 
        outputChatBox("* [ Police ] : The Player Vehicle Successfuly Destoryed",source,0,255,0) 
        outputChatBox("* [ Police ] : Your Vehicle Destroy By " .. getPlayerName(source),player,255,0,0) 
    end 
) 
  
  
addEvent("onBlow",true) 
addEventHandler("onBlow",root, 
    function (player) 
        local player = getPlayerFromName(player) 
        local veh = getPedOccupiedVehicle(player) 
        blowVehicle(veh) 
        outputChatBox("* [ Police ] : The Player Vehicle Successfuly Blowed",source,0,255,0) 
        outputChatBox("* [ Police ] : Your Vehicle Blow By " .. getPlayerName(source),player,255,0,0) 
    end 
) 
  
addEventHandler("onPlayerLogin",root, 
    function (_,acc) 
        if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Police")) then 
            outputChatBox("* Welcome Police Man Press m To Open Police Panel",source,255,255,255,true) 
        end 
    end 
) 
  
addEventHandler("onResourceStart",resourceRoot, 
    function () 
        if not aclGetGroup("Police") then 
            outputChatBox("* Admin Please Add Group Name Police To Add Player in it To Be Police",root,255,0,0) 
        end 
    end 
) 
  

acl

    "Everyone"> 
        "Default">
        "user.*"> 
        "resource.*"> 
    
    "Moderator"> 
        "Moderator">
        "resource.mapmanager"> 
        "resource.resourcemanager"> 
        "resource.votemanager"> 
        "user.Mood"> 
        "user.FAISAL_64"> 
        "user.FAISAL64"> 
    
    "SuperModerator"> 
        "Moderator">
        "SuperModerator">
    
    "Admin"> 
        "Moderator">
        "SuperModerator">
        "Admin">
        "RPC">
        "resource.admin"> 
        "resource.webadmin"> 
        "user.FAISAL64"> 
    
    "Console"> 
        "Moderator">
        "SuperModerator">
        "Admin">
        "RPC">
        "user.FAISAL64"> 
    
    "RPC"> 
        "RPC">
    
    "MapEditor"> 
        "Default">
        "MapEditor">
        "resource.editor_main"> 
        "resource.edf"> 
    
    "raceACLGroup"> 
        "Default">
        "raceACL">
        "resource.race"> 
    
    "Big.Admin"> 
        "raceACL">
        "MapEditor">
        "RPC">
        "Admin">
        "SuperModerator">
        "Moderator">
    
    "Default"> 
        "general.ModifyOtherObjects" access="false">
        "general.http" access="false">
        "command.start" access="false">
        "command.stop" access="false">
        "command.stopall" access="false">
        "command.gamemode" access="false">
        "command.changemode" access="false">
        "command.changemap" access="false">
        "command.stopmode" access="false">
        "command.stopmap" access="false">
        "command.skipmap" access="false">
        "command.restart" access="false">
        "command.refresh" access="false">
        "command.refreshall" access="false">
        "command.addaccount" access="false">
        "command.delaccount" access="false">
        "command.debugscript" access="false">
        "command.chgpass" access="false">
        "command.loadmodule" access="false">
        "command.upgrade" access="false">
        "command.mute" access="false">
        "command.crun" access="false">
        "command.srun" access="false">
        "command.run" access="false">
        "command.unmute" access="false">
        "command.kick" access="false">
        "command.ban" access="false">
        "command.banip" access="false">
        "command.unbanip" access="false">
        "command.shutdown" access="false">
        "command.install" access="false">
        "command.aexec" access="false">
        "command.whois" access="false">
        "command.whowas" access="false">
        "function.executeCommandHandler" access="false">
        "function.setPlayerMuted" access="false">
        "function.addAccount" access="false">
        "function.addBan" access="false">
        "function.removeBan" access="false">
        "function.removeAccount" access="false">
        "function.setAccountPassword" access="false">
        "function.kickPlayer" access="false">
        "function.banIP" access="false">
        "function.banPlayer" access="false">
        "function.banSerial" access="false">
        "function.getBansXML" access="false">
        "function.unbanIP" access="false">
        "function.unbanSerial" access="false">
        "function.getClientIP" access="false">
        "function.setServerPassword" access="false">
        "function.getServerPassword" access="false">
        "function.callRemote" access="false">
        "function.startResource" access="false">
        "function.stopResource" access="false">
        "function.restartResource" access="false">
        "function.createResource" access="false">
        "function.copyResource" access="false">
        "function.addResourceMap" access="false">
        "function.addResourceConfig" access="false">
        "function.removeResourceFile" access="false">
        "function.setResourceDefaultSetting" access="false">
        "function.removeResourceDefaultSetting" access="false">
        "function.redirectPlayer" access="false">
        "function.aclReload" access="false">
        "function.aclSave" access="false">
        "function.aclCreate" access="false">
        "function.aclDestroy" access="false">
        "function.aclSetRight" access="false">
        "function.aclRemoveRight" access="false">
        "function.aclCreateGroup" access="false">
        "function.aclDestroyGroup" access="false">
        "function.aclGroupAddACL" access="false">
        "function.aclGroupRemoveACL" access="false">
        "function.aclGroupAddObject" access="false">
        "function.aclGroupRemoveObject" access="false">
        "function.refreshResources" access="false">
        "function.setServerConfigSetting" access="false">
        "general.adminpanel" access="false">
        "general.tab_players" access="false">
        "general.tab_resources" access="false">
        "general.tab_maps" access="false">
        "general.tab_server" access="false">
        "general.tab_bans" access="false">
        "general.tab_adminchat" access="false">
        "command.freeze" access="false">
        "command.shout" access="false">
        "command.spectate" access="false">
        "command.slap" access="false">
        "command.setgroup" access="false">
        "command.sethealth" access="false">
        "command.setarmour" access="false">
        "command.setmoney" access="false">
        "command.setskin" access="false">
        "command.setteam" access="false">
        "command.giveweapon" access="false">
        "command.setstat" access="false">
        "command.jetpack" access="false">
        "command.warp" access="false">
        "command.setdimension" access="false">
        "command.setinterior" access="false">
        "command.givevehicle" access="false">
        "command.repair" access="false">
        "command.blow" access="false">
        "command.destroy" access="false">
        "command.customize" access="false">
        "command.setcolor" access="false">
        "command.setpaintjob" access="false">
        "command.listmessages" access="false">
        "command.readmessage" access="false">
        "command.listresources" access="false">
        "command.execute" access="false">
        "command.setpassword" access="false">
        "command.setwelcome" access="false">
        "command.setgame" access="false">
        "command.setmap" access="false">
        "command.setweather" access="false">
        "command.blendweather" access="false">
        "command.setblurlevel" access="false">
        "command.setwaveheight" access="false">
        "command.setskygradient" access="false">
        "command.setgamespeed" access="false">
        "command.setgravity" access="false">
        "command.settime" access="false">
        "command.unban" access="false">
        "command.banserial" access="false">
        "command.unbanserial" access="false">
        "command.listbans" access="false">
        "command.setnick" access="false">
    
    "Moderator"> 
        "general.ModifyOtherObjects" access="false">
        "command.gamemode" access="true">
        "command.changemode" access="true">
        "command.changemap" access="true">
        "command.stopmode" access="true">
        "command.stopmap" access="true">
        "command.skipmap" access="true">
        "command.mute" access="true">
        "command.unmute" access="true">
        "command.whois" access="true">
        "command.whowas" access="true">
        "function.setPlayerMuted" access="true">
        "function.kickPlayer" access="true">
        "function.banIP" access="true">
        "function.banPlayer" access="true">
        "function.banSerial" access="true">
        "function.getBansXML" access="true">
        "function.unbanIP" access="true">
        "function.unbanSerial" access="true">
        "function.getClientIP" access="true">
        "function.startResource" access="true">
        "function.stopResource" access="true">
        "function.restartResource" access="true">
        "function.redirectPlayer" access="true">
        "general.adminpanel" access="true">
        "general.tab_players" access="true">
        "general.tab_resources" access="false">
        "general.tab_maps" access="false">
        "general.tab_server" access="true">
        "general.tab_bans" access="false">
        "general.tab_adminchat" access="true">
        "command.kick" access="true">
        "command.freeze" access="true">
        "command.shout" access="true">
        "command.spectate" access="true">
        "command.slap" access="true">
        "command.setgroup" access="false">
        "command.sethealth" access="true">
        "command.setarmour" access="true">
        "command.setmoney" access="false">
        "command.setskin" access="true">
        "command.setteam" access="true">
        "command.giveweapon" access="false">
        "command.setstat" access="true">
        "command.jetpack" access="true">
        "command.warp" access="true">
        "command.setdimension" access="true">
        "command.setinterior" access="true">
        "command.createteam" access="false">
        "command.destroyteam" access="false">
        "command.givevehicle" access="false">
        "command.repair" access="true">
        "command.blowvehicle" access="true">
        "command.destroyvehicle" access="true">
        "command.customize" access="true">
        "command.setcolor" access="true">
        "command.setpaintjob" access="true">
        "command.listmessages" access="true">
        "command.readmessage" access="true">
        "command.listresources" access="false">
        "command.start" access="false">
        "command.stop" access="false">
        "command.stopall" access="false">
        "command.restart" access="false">
        "command.execute" access="false">
        "command.setpassword" access="false">
        "command.setwelcome" access="false">
        "command.setgame" access="false">
        "command.setmap" access="false">
        "command.setweather" access="true">
        "command.blendweather" access="true">
        "command.setblurlevel" access="true">
        "command.setwaveheight" access="true">
        "command.setskygradient" access="true">
        "command.setgamespeed" access="false">
        "command.setgravity" access="true">
        "command.settime" access="true">
        "command.ban" access="true">
        "command.unban" access="false">
        "command.banip" access="true">
        "command.unbanip" access="false">
        "command.banserial" access="true">
        "command.unbanserial" access="false">
        "command.listbans" access="false">
        "command.setnick" access="true">
    
    "SuperModerator"> 
        "general.ModifyOtherObjects" access="false">
        "command.start" access="true">
        "command.stop" access="true">
        "command.restart" access="true">
        "command.kick" access="true">
        "command.ban" access="true">
        "command.banip" access="true">
        "command.unbanip" access="true">
        "command.refresh" access="true">
        "command.refreshall" access="true">
        "command.loadmodule" access="true">
        "command.addaccount" access="true">
        "command.delaccount" access="true">
        "command.chgpass" access="true">
        "function.addAccount" access="true">
        "function.removeAccount" access="true">
        "function.setAccountPassword" access="true">
        "general.adminpanel" access="true">
        "general.tab_players" access="true">
        "general.tab_resources" access="true">
        "general.tab_maps" access="true">
        "general.tab_server" access="true">
        "general.tab_bans" access="true">
        "general.tab_adminchat" access="true">
        "command.freeze" access="true">
        "command.mute" access="true">
        "command.shout" access="true">
        "command.spectate" access="true">
        "command.slap" access="true">
        "command.setgroup" access="false">
        "command.sethealth" access="true">
        "command.setarmour" access="true">
        "command.setmoney" access="true">
        "command.setskin" access="true">
        "command.setteam" access="true">
        "command.giveweapon" access="true">
        "command.setstat" access="true">
        "command.jetpack" access="true">
        "command.warp" access="true">
        "command.setdimension" access="true">
        "command.setinterior" access="true">
        "command.createteam" access="true">
        "command.destroyteam" access="true">
        "command.givevehicle" access="false">
        "command.repair" access="true">
        "command.blowvehicle" access="false">
        "command.destroyvehicle" access="true">
        "command.customize" access="true">
        "command.setcolor" access="true">
        "command.setpaintjob" access="true">
        "command.listmessages" access="true">
        "command.readmessage" access="true">
        "command.listresources" access="false">
        "command.stopall" access="false">
        "command.execute" access="false">
        "command.setpassword" access="true">
        "command.setwelcome" access="true">
        "command.setgame" access="true">
        "command.setmap" access="true">
        "command.setweather" access="true">
        "command.blendweather" access="true">
        "command.setblurlevel" access="true">
        "command.setwaveheight" access="true">
        "command.setskygradient" access="true">
        "command.setgamespeed" access="true">
        "command.setgravity" access="true">
        "command.settime" access="true">
        "command.unban" access="true">
        "command.banserial" access="true">
        "command.unbanserial" access="true">
        "command.listbans" access="false">
        "function.aclReload" access="false">
        "function.aclSave" access="false">
        "function.aclCreate" access="false">
        "function.aclDestroy" access="false">
        "function.aclSetRight" access="false">
        "function.aclRemoveRight" access="false">
        "function.aclCreateGroup" access="false">
        "function.aclDestroyGroup" access="false">
        "function.aclGroupAddACL" access="false">
        "function.aclGroupRemoveACL" access="false">
        "function.aclGroupAddObject" access="false">
        "function.aclGroupRemoveObject" access="false">
        "command.setnick" access="true">
    
    "Admin"> 
        "general.ModifyOtherObjects" access="true">
        "general.http" access="true">
        "command.shutdown" access="true">
        "command.install" access="true">
        "command.aexec" access="true">
        "command.debugscript" access="true">
        "command.upgrade" access="true">
        "command.crun" access="true">
        "command.srun" access="true">
        "command.run" access="true">
        "function.addBan" access="true">
        "function.removeBan" access="true">
        "function.executeCommandHandler" access="true">
        "function.setServerPassword" access="true">
        "function.getServerPassword" access="true">
        "function.createResource" access="true">
        "function.copyResource" access="true">
        "function.addResourceMap" access="true">
        "function.addResourceConfig" access="true">
        "function.removeResourceFile" access="true">
        "function.setResourceDefaultSetting" access="true">
        "function.removeResourceDefaultSetting" access="true">
        "function.aclReload" access="true">
        "function.aclSave" access="true">
        "function.aclCreate" access="true">
        "function.aclDestroy" access="true">
        "function.aclSetRight" access="true">
        "function.aclRemoveRight" access="true">
        "function.aclCreateGroup" access="true">
        "function.aclDestroyGroup" access="true">
        "function.aclGroupAddACL" access="true">
        "function.aclGroupRemoveACL" access="true">
        "function.aclGroupAddObject" access="true">
        "function.aclGroupRemoveObject" access="true">
        "function.refreshResources" access="true">
        "function.setServerConfigSetting" access="true">
        "general.adminpanel" access="true">
        "general.tab_players" access="true">
        "general.tab_resources" access="true">
        "general.tab_server" access="true">
        "general.tab_maps" access="true">
        "general.tab_bans" access="true">
        "general.tab_adminchat" access="true">
        "command.kick" access="true">
        "command.freeze" access="true">
        "command.mute" access="true">
        "command.shout" access="true">
        "command.spectate" access="true">
        "command.slap" access="true">
        "command.setgroup" access="true">
        "command.sethealth" access="true">
        "command.setarmour" access="true">
        "command.setmoney" access="true">
        "command.setskin" access="true">
        "command.setteam" access="true">
        "command.giveweapon" access="true">
        "command.setstat" access="true">
        "command.jetpack" access="true">
        "command.warp" access="true">
        "command.setdimension" access="true">
        "command.setinterior" access="true">
        "command.createteam" access="true">
        "command.destroyteam" access="true">
        "command.givevehicle" access="true">
        "command.repair" access="true">
        "command.blowvehicle" access="true">
        "command.destroyvehicle" access="true">
        "command.customize" access="true">
        "command.setcolor" access="true">
        "command.setpaintjob" access="true">
        "command.listmessages" access="true">
        "command.readmessage" access="true">
        "command.listresources" access="true">
        "command.start" access="true">
        "command.stop" access="true">
        "command.stopall" access="false">
        "command.restart" access="true">
        "command.execute" access="true">
        "command.setpassword" access="true">
        "command.setwelcome" access="true">
        "command.setgame" access="true">
        "command.setmap" access="true">
        "command.setweather" access="true">
        "command.blendweather" access="true">
        "command.setblurlevel" access="true">
        "command.setwaveheight" access="true">
        "command.setskygradient" access="true">
        "command.setgamespeed" access="true">
        "command.setgravity" access="true">
        "command.settime" access="true">
        "command.ban" access="true">
        "command.unban" access="true">
        "command.banip" access="true">
        "command.unbanip" access="true">
        "command.banserial" access="true">
        "command.unbanserial" access="true">
        "command.listbans" access="true">
        "command.setnick" access="true">
    
    "RPC"> 
        "function.callRemote" access="true">
        "general.adminpanel" access="false">
        "general.tab_players" access="false">
        "general.tab_resources" access="false">
        "general.tab_maps" access="false">
        "general.tab_server" access="false">
        "general.tab_bans" access="false">
        "general.tab_adminchat" access="false">
        "command.kick" access="false">
        "command.freeze" access="false">
        "command.mute" access="false">
        "command.shout" access="false">
        "command.spectate" access="false">
        "command.slap" access="false">
        "command.setgroup" access="false">
        "command.sethealth" access="false">
        "command.setarmour" access="false">
        "command.setmoney" access="false">
        "command.setskin" access="false">
        "command.setteam" access="false">
        "command.giveweapon" access="false">
        "command.setstat" access="false">
        "command.jetpack" access="false">
        "command.warp" access="false">
        "command.setdimension" access="false">
        "command.setinterior" access="false">
        "command.givevehicle" access="false">
        "command.repair" access="false">
        "command.blow" access="false">
        "command.destroy" access="false">
        "command.customize" access="false">
        "command.setcolor" access="false">
        "command.setpaintjob" access="false">
        "command.listmessages" access="false">
        "command.readmessage" access="false">
        "command.listresources" access="false">
        "command.start" access="false">
        "command.stop" access="false">
        "command.stopall" access="false">
        "command.restart" access="false">
        "command.execute" access="false">
        "command.setpassword" access="false">
        "command.setwelcome" access="false">
        "command.setgame" access="false">
        "command.setmap" access="false">
        "command.setweather" access="false">
        "command.blendweather" access="false">
        "command.setblurlevel" access="false">
        "command.setwaveheight" access="false">
        "command.setskygradient" access="false">
        "command.setgamespeed" access="false">
        "command.setgravity" access="false">
        "command.settime" access="false">
        "command.ban" access="false">
        "command.unban" access="false">
        "command.banip" access="false">
        "command.unbanip" access="false">
        "command.banserial" access="false">
        "command.unbanserial" access="false">
        "command.listbans" access="false">
        "command.setnick" access="false">
    
    "MapEditor"> 
        "general.ModifyOtherObjects" access="true">
        "function.startResource" access="true">
        "function.stopResource" access="true">
        "function.restartResource" access="true">
        "function.createResource" access="true">
        "function.copyResource" access="true">
        "function.addResourceMap" access="true">
        "function.addResourceConfig" access="true">
        "function.removeResourceFile" access="true">
        "function.setResourceDefaultSetting" access="true">
        "function.removeResourceDefaultSetting" access="true">
        "function.xmlLoadFile" access="true">
        "general.adminpanel" access="false">
        "general.tab_players" access="false">
        "general.tab_resources" access="false">
        "general.tab_maps" access="false">
        "general.tab_server" access="false">
        "general.tab_bans" access="false">
        "general.tab_adminchat" access="false">
        "command.kick" access="false">
        "command.freeze" access="false">
        "command.mute" access="false">
        "command.shout" access="false">
        "command.spectate" access="false">
        "command.slap" access="false">
        "command.setgroup" access="false">
        "command.sethealth" access="false">
        "command.setarmour" access="false">
        "command.setmoney" access="false">
        "command.setskin" access="false">
        "command.setteam" access="false">
        "command.giveweapon" access="false">
        "command.setstat" access="false">
        "command.jetpack" access="false">
        "command.warp" access="false">
        "command.setdimension" access="false">
        "command.setinterior" access="false">
        "command.givevehicle" access="false">
        "command.repair" access="false">
        "command.blow" access="false">
        "command.destroy" access="false">
        "command.customize" access="false">
        "command.setcolor" access="false">
        "command.setpaintjob" access="false">
        "command.listmessages" access="false">
        "command.readmessage" access="false">
        "command.listresources" access="false">
        "command.start" access="false">
        "command.stop" access="false">
        "command.stopall" access="false">
        "command.restart" access="false">
        "command.execute" access="false">
        "command.setpassword" access="false">
        "command.setwelcome" access="false">
        "command.setgame" access="false">
        "command.setmap" access="false">
        "command.setweather" access="false">
        "command.blendweather" access="false">
        "command.setblurlevel" access="false">
        "command.setwaveheight" access="false">
        "command.setskygradient" access="false">
        "command.setgamespeed" access="false">
        "command.setgravity" access="false">
        "command.settime" access="false">
        "command.ban" access="false">
        "command.unban" access="false">
        "command.banip" access="false">
        "command.unbanip" access="false">
        "command.banserial" access="false">
        "command.unbanserial" access="false">
        "command.listbans" access="false">
        "command.setnick" access="false">
    
    "raceACL"> 
        "general.ModifyOtherObjects" access="true">
        "function.xmlLoadFile" access="true">
        "function.startResource" access="true">
        "function.stopResource" access="true">
        "function.restartResource" access="true">
        "general.adminpanel" access="false">
        "general.tab_players" access="false">
        "general.tab_resources" access="false">
        "general.tab_maps" access="false">
        "general.tab_server" access="false">
        "general.tab_bans" access="false">
        "general.tab_adminchat" access="false">
        "command.kick" access="false">
        "command.freeze" access="false">
        "command.mute" access="false">
        "command.shout" access="false">
        "command.spectate" access="false">
        "command.slap" access="false">
        "command.setgroup" access="false">
        "command.sethealth" access="false">
        "command.setarmour" access="false">
        "command.setmoney" access="false">
        "command.setskin" access="false">
        "command.setteam" access="false">
        "command.giveweapon" access="false">
        "command.setstat" access="false">
        "command.jetpack" access="false">
        "command.warp" access="false">
        "command.setdimension" access="false">
        "command.setinterior" access="false">
        "command.givevehicle" access="false">
        "command.repair" access="false">
        "command.blow" access="false">
        "command.destroy" access="false">
        "command.customize" access="false">
        "command.setcolor" access="false">
        "command.setpaintjob" access="false">
        "command.listmessages" access="false">
        "command.readmessage" access="false">
        "command.listresources" access="false">
        "command.start" access="false">
        "command.stop" access="false">
        "command.stopall" access="false">
        "command.restart" access="false">
        "command.execute" access="false">
        "command.setpassword" access="false">
        "command.setwelcome" access="false">
        "command.setgame" access="false">
        "command.setmap" access="false">
        "command.setweather" access="false">
        "command.blendweather" access="false">
        "command.setblurlevel" access="false">
        "command.setwaveheight" access="false">
        "command.setskygradient" access="false">
        "command.setgamespeed" access="false">
        "command.setgravity" access="false">
        "command.settime" access="false">
        "command.ban" access="false">
        "command.unban" access="false">
        "command.banip" access="false">
        "command.unbanip" access="false">
        "command.banserial" access="false">
        "command.unbanserial" access="false">
        "command.listbans" access="false">
        "command.setnick" access="false">
    

  

Link to comment

فقط Police كل شي عندكـ صحيح، بس عدلت لكـ الأسل .. ضفت قروب بإسم

كـَ مثال xxx انا حاط لكـ حساب بإسم .. Police الآن الي عليكـ أنت إنكـ تحط حساب الشرطي بقروب ..

<acl> 
    <group name="Everyone">
        <acl name="Default"></acl>
        <object name="user.*"></object>
        <object name="resource.*"></object>
    </group>
    <group name="Moderator">
        <acl name="Moderator"></acl>
        <object name="resource.mapmanager"></object>
        <object name="resource.resourcemanager"></object>
        <object name="resource.votemanager"></object>
        <object name="user.Mood"></object>
        <object name="user.FAISAL_64"></object>
        <object name="user.FAISAL64"></object>
    </group>
    <group name="SuperModerator">
        <acl name="Moderator"></acl>
        <acl name="SuperModerator"></acl>
    </group>
    <group name="Admin">
        <acl name="Moderator"></acl>
        <acl name="SuperModerator"></acl>
        <acl name="Admin"></acl>
        <acl name="RPC"></acl>
        <object name="resource.admin"></object>
        <object name="resource.webadmin"></object>
        <object name="user.FAISAL64"></object>
    </group>
    <group name="Console">
        <acl name="Moderator"></acl>
        <acl name="SuperModerator"></acl>
        <acl name="Admin"></acl>
        <acl name="RPC"></acl>
        <object name="user.FAISAL64"></object>
    </group>
    <group name="Police">
        <object name="user.xxx"></object>
    </group>
    <group name="RPC">
        <acl name="RPC"></acl>
    </group>
    <group name="MapEditor">
        <acl name="Default"></acl>
        <acl name="MapEditor"></acl>
        <object name="resource.editor_main"></object>
        <object name="resource.edf"></object>
    </group>
    <group name="raceACLGroup">
        <acl name="Default"></acl>
        <acl name="raceACL"></acl>
        <object name="resource.race"></object>
    </group>
    <group name="Big.Admin">
        <acl name="raceACL"></acl>
        <acl name="MapEditor"></acl>
        <acl name="RPC"></acl>
        <acl name="Admin"></acl>
        <acl name="SuperModerator"></acl>
        <acl name="Moderator"></acl>
    </group>
    <acl name="Default">
        <right name="general.ModifyOtherObjects" access="false"></right>
        <right name="general.http" access="false"></right>
        <right name="command.start" access="false"></right>
        <right name="command.stop" access="false"></right>
        <right name="command.stopall" access="false"></right>
        <right name="command.gamemode" access="false"></right>
        <right name="command.changemode" access="false"></right>
        <right name="command.changemap" access="false"></right>
        <right name="command.stopmode" access="false"></right>
        <right name="command.stopmap" access="false"></right>
        <right name="command.skipmap" access="false"></right>
        <right name="command.restart" access="false"></right>
        <right name="command.refresh" access="false"></right>
        <right name="command.refreshall" access="false"></right>
        <right name="command.addaccount" access="false"></right>
        <right name="command.delaccount" access="false"></right>
        <right name="command.debugscript" access="false"></right>
        <right name="command.chgpass" access="false"></right>
        <right name="command.loadmodule" access="false"></right>
        <right name="command.upgrade" access="false"></right>
        <right name="command.mute" access="false"></right>
        <right name="command.crun" access="false"></right>
        <right name="command.srun" access="false"></right>
        <right name="command.run" access="false"></right>
        <right name="command.unmute" access="false"></right>
        <right name="command.kick" access="false"></right>
        <right name="command.ban" access="false"></right>
        <right name="command.banip" access="false"></right>
        <right name="command.unbanip" access="false"></right>
        <right name="command.shutdown" access="false"></right>
        <right name="command.install" access="false"></right>
        <right name="command.aexec" access="false"></right>
        <right name="command.whois" access="false"></right>
        <right name="command.whowas" access="false"></right>
        <right name="function.executeCommandHandler" access="false"></right>
        <right name="function.setPlayerMuted" access="false"></right>
        <right name="function.addAccount" access="false"></right>
        <right name="function.addBan" access="false"></right>
        <right name="function.removeBan" access="false"></right>
        <right name="function.removeAccount" access="false"></right>
        <right name="function.setAccountPassword" access="false"></right>
        <right name="function.kickPlayer" access="false"></right>
        <right name="function.banIP" access="false"></right>
        <right name="function.banPlayer" access="false"></right>
        <right name="function.banSerial" access="false"></right>
        <right name="function.getBansXML" access="false"></right>
        <right name="function.unbanIP" access="false"></right>
        <right name="function.unbanSerial" access="false"></right>
        <right name="function.getClientIP" access="false"></right>
        <right name="function.setServerPassword" access="false"></right>
        <right name="function.getServerPassword" access="false"></right>
        <right name="function.callRemote" access="false"></right>
        <right name="function.startResource" access="false"></right>
        <right name="function.stopResource" access="false"></right>
        <right name="function.restartResource" access="false"></right>
        <right name="function.createResource" access="false"></right>
        <right name="function.copyResource" access="false"></right>
        <right name="function.addResourceMap" access="false"></right>
        <right name="function.addResourceConfig" access="false"></right>
        <right name="function.removeResourceFile" access="false"></right>
        <right name="function.setResourceDefaultSetting" access="false"></right>
        <right name="function.removeResourceDefaultSetting" access="false"></right>
        <right name="function.redirectPlayer" access="false"></right>
        <right name="function.aclReload" access="false"></right>
        <right name="function.aclSave" access="false"></right>
        <right name="function.aclCreate" access="false"></right>
        <right name="function.aclDestroy" access="false"></right>
        <right name="function.aclSetRight" access="false"></right>
        <right name="function.aclRemoveRight" access="false"></right>
        <right name="function.aclCreateGroup" access="false"></right>
        <right name="function.aclDestroyGroup" access="false"></right>
        <right name="function.aclGroupAddACL" access="false"></right>
        <right name="function.aclGroupRemoveACL" access="false"></right>
        <right name="function.aclGroupAddObject" access="false"></right>
        <right name="function.aclGroupRemoveObject" access="false"></right>
        <right name="function.refreshResources" access="false"></right>
        <right name="function.setServerConfigSetting" access="false"></right>
        <right name="general.adminpanel" access="false"></right>
        <right name="general.tab_players" access="false"></right>
        <right name="general.tab_resources" access="false"></right>
        <right name="general.tab_maps" access="false"></right>
        <right name="general.tab_server" access="false"></right>
        <right name="general.tab_bans" access="false"></right>
        <right name="general.tab_adminchat" access="false"></right>
        <right name="command.freeze" access="false"></right>
        <right name="command.shout" access="false"></right>
        <right name="command.spectate" access="false"></right>
        <right name="command.slap" access="false"></right>
        <right name="command.setgroup" access="false"></right>
        <right name="command.sethealth" access="false"></right>
        <right name="command.setarmour" access="false"></right>
        <right name="command.setmoney" access="false"></right>
        <right name="command.setskin" access="false"></right>
        <right name="command.setteam" access="false"></right>
        <right name="command.giveweapon" access="false"></right>
        <right name="command.setstat" access="false"></right>
        <right name="command.jetpack" access="false"></right>
        <right name="command.warp" access="false"></right>
        <right name="command.setdimension" access="false"></right>
        <right name="command.setinterior" access="false"></right>
        <right name="command.givevehicle" access="false"></right>
        <right name="command.repair" access="false"></right>
        <right name="command.blow" access="false"></right>
        <right name="command.destroy" access="false"></right>
        <right name="command.customize" access="false"></right>
        <right name="command.setcolor" access="false"></right>
        <right name="command.setpaintjob" access="false"></right>
        <right name="command.listmessages" access="false"></right>
        <right name="command.readmessage" access="false"></right>
        <right name="command.listresources" access="false"></right>
        <right name="command.execute" access="false"></right>
        <right name="command.setpassword" access="false"></right>
        <right name="command.setwelcome" access="false"></right>
        <right name="command.setgame" access="false"></right>
        <right name="command.setmap" access="false"></right>
        <right name="command.setweather" access="false"></right>
        <right name="command.blendweather" access="false"></right>
        <right name="command.setblurlevel" access="false"></right>
        <right name="command.setwaveheight" access="false"></right>
        <right name="command.setskygradient" access="false"></right>
        <right name="command.setgamespeed" access="false"></right>
        <right name="command.setgravity" access="false"></right>
        <right name="command.settime" access="false"></right>
        <right name="command.unban" access="false"></right>
        <right name="command.banserial" access="false"></right>
        <right name="command.unbanserial" access="false"></right>
        <right name="command.listbans" access="false"></right>
        <right name="command.setnick" access="false"></right>
    </acl>
    <acl name="Moderator">
        <right name="general.ModifyOtherObjects" access="false"></right>
        <right name="command.gamemode" access="true"></right>
        <right name="command.changemode" access="true"></right>
        <right name="command.changemap" access="true"></right>
        <right name="command.stopmode" access="true"></right>
        <right name="command.stopmap" access="true"></right>
        <right name="command.skipmap" access="true"></right>
        <right name="command.mute" access="true"></right>
        <right name="command.unmute" access="true"></right>
        <right name="command.whois" access="true"></right>
        <right name="command.whowas" access="true"></right>
        <right name="function.setPlayerMuted" access="true"></right>
        <right name="function.kickPlayer" access="true"></right>
        <right name="function.banIP" access="true"></right>
        <right name="function.banPlayer" access="true"></right>
        <right name="function.banSerial" access="true"></right>
        <right name="function.getBansXML" access="true"></right>
        <right name="function.unbanIP" access="true"></right>
        <right name="function.unbanSerial" access="true"></right>
        <right name="function.getClientIP" access="true"></right>
        <right name="function.startResource" access="true"></right>
        <right name="function.stopResource" access="true"></right>
        <right name="function.restartResource" access="true"></right>
        <right name="function.redirectPlayer" access="true"></right>
        <right name="general.adminpanel" access="true"></right>
        <right name="general.tab_players" access="true"></right>
        <right name="general.tab_resources" access="false"></right>
        <right name="general.tab_maps" access="false"></right>
        <right name="general.tab_server" access="true"></right>
        <right name="general.tab_bans" access="false"></right>
        <right name="general.tab_adminchat" access="true"></right>
        <right name="command.kick" access="true"></right>
        <right name="command.freeze" access="true"></right>
        <right name="command.shout" access="true"></right>
        <right name="command.spectate" access="true"></right>
        <right name="command.slap" access="true"></right>
        <right name="command.setgroup" access="false"></right>
        <right name="command.sethealth" access="true"></right>
        <right name="command.setarmour" access="true"></right>
        <right name="command.setmoney" access="false"></right>
        <right name="command.setskin" access="true"></right>
        <right name="command.setteam" access="true"></right>
        <right name="command.giveweapon" access="false"></right>
        <right name="command.setstat" access="true"></right>
        <right name="command.jetpack" access="true"></right>
        <right name="command.warp" access="true"></right>
        <right name="command.setdimension" access="true"></right>
        <right name="command.setinterior" access="true"></right>
        <right name="command.createteam" access="false"></right>
        <right name="command.destroyteam" access="false"></right>
        <right name="command.givevehicle" access="false"></right>
        <right name="command.repair" access="true"></right>
        <right name="command.blowvehicle" access="true"></right>
        <right name="command.destroyvehicle" access="true"></right>
        <right name="command.customize" access="true"></right>
        <right name="command.setcolor" access="true"></right>
        <right name="command.setpaintjob" access="true"></right>
        <right name="command.listmessages" access="true"></right>
        <right name="command.readmessage" access="true"></right>
        <right name="command.listresources" access="false"></right>
        <right name="command.start" access="false"></right>
Link to comment
أبي الشرطي فقط يفتح اللوحة

isObjectInACLGroup 
getAccountName 
aclGetGroup 

???????????????????????????????????

ولا كأنه طرح لنا الأكواد ولا شي صح ؟ : (

PP_Server.lua ملف
addEvent("isPolice",true) 
addEventHandler("isPolice",root, 
    function () 
        if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Police")) then 
            triggerClientEvent(source,"Yes",source) 
        end 
    end 
) 
  
addEvent("killPlayer",true) 
addEventHandler("killPlayer",root, 
    function (player) 
        local player = getPlayerFromName(player) 
        if ( player ) then 
            killPed(player) 
            outputChatBox("* [ Police ] : The Player Killed Successfuly",source,0,255,0) 
            outputChatBox("* [ Police ] : You Are Killed By " .. getPlayerName(source),player,255,0,0) 
        end 
    end 
) 
  
  
addEvent("onDes",true) 
addEventHandler("onDes",root, 
    function (player) 
        local player = getPlayerFromName(player) 
        local veh = getPedOccupiedVehicle(player) 
        destroyElement(veh) 
        outputChatBox("* [ Police ] : The Player Vehicle Successfuly Destoryed",source,0,255,0) 
        outputChatBox("* [ Police ] : Your Vehicle Destroy By " .. getPlayerName(source),player,255,0,0) 
    end 
) 
  
  
addEvent("onBlow",true) 
addEventHandler("onBlow",root, 
    function (player) 
        local player = getPlayerFromName(player) 
        local veh = getPedOccupiedVehicle(player) 
        blowVehicle(veh) 
        outputChatBox("* [ Police ] : The Player Vehicle Successfuly Blowed",source,0,255,0) 
        outputChatBox("* [ Police ] : Your Vehicle Blow By " .. getPlayerName(source),player,255,0,0) 
    end 
) 
  
addEventHandler("onPlayerLogin",root, 
    function (_,acc) 
        if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Police")) then 
            outputChatBox("* Welcome Police Man Press m To Open Police Panel",source,255,255,255,true) 
        end 
    end 
) 
  
addEventHandler("onResourceStart",resourceRoot, 
    function () 
        if not aclGetGroup("Police") then 
            outputChatBox("* Admin Please Add Group Name Police To Add Player in it To Be Police",root,255,0,0) 
        end 
    end 
) 
  

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...