Jump to content

تعديل


Recommended Posts

سلام عليكم اليوم سويت مود لوحه شرطي

وعامل قريد لست اسمو

Player Name

عاوز يظهر فيه اسامي اللاعبين

عشان يقدر يحدد مين يعطيه سلاب

local alzr = "m" 
--    
       GUIEditor = { 
            checkbox = {}, 
            button = {}, 
            gridlist = {}, 
            edit = {}, 
            label = {} 
        } 
    ------ 
      
local screenW, screenH = guiGetScreenSize() 
wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd ,false) 
showCursor(false) 
GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
guiGridListAddColumn(grid, "Name Player", 0.9)      
  
  
wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
guiWindowSetSizable(wnd2, false) 
guiSetVisible(wnd2 ,false) 
GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
          
        
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
          
          
          
        addEventHandler("onClientGUIClick",resourceRoot, 
            function ( ) 
                if ( source == GUIEditor.button[2] ) then 
                    guiSetVisible(wnd2,false) 
                    showCursor(false) 
                     elseif ( source == GUIEditor.button[3] ) then 
                        guiSetVisible(wnd,false) 
                        guiSetVisible(wnd2,true) 
                end 
            end 
         ) 
      
      
         addEventHandler("onClientGUIClick",resourceRoot, 
            function ( ) 
              if ( source == GUIEditor.button[5] ) then 
                    guiSetVisible(wnd,false) 
                    showCursor(false) 
    end 
    end) 
      
--- 
-- 
 addEventHandler("onClientGUIClick",root,function(    ) 
   if source == GUIEditor.button[4] then 
    if not isPedInVehicle(localPlayer) then return end 
    destroyElement ( getPedOccupiedVehicle(localPlayer) ) 
        end 
   end 
 ) 
------- 
addEventHandler("onClientGUIClick",resourceRoot,   
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent("SlapPlayer", localPlayer) 
local edit1 = guiGetText(GUIEditor.edit[1]) 
guiSetVisible(wnd2,false) 
showCursor(false) 
end 
end) 
----- 
addEventHandler("onClientGUIClick", GUIEditor.button[1],   
function ( ) 
local sel = guiGridListGetSelectedItem(grid) 
local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) 
setElementPosition ( 2122.21818, 53121, 10.5141 ) 
setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) 
if  sel ~= -1 and getElementType(player) == "player"  then 
setTimer ( Jail , Mk ) 
end 
end) 
  
  

Link to comment

function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
Link to comment
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

المفروض تسوي للأحداث تايمر ، لأن كذا بيسبب لاق للسيرفر كل م احد خرج ولا دخل يتحدث

Link to comment
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

المفروض تسوي للأحداث تايمر ، لأن كذا بيسبب لاق للسيرفر كل م احد خرج ولا دخل يتحدث

كدة هايكون في لاج اكتر

لأن دايماً بعد فترة قليلة الجريد ليست تتمسح

و لوب للاعبين

و يحط اسمائهم في الجريد ليست

انا اقصد

فيه لوحه الشرطي

كل الناس الفاتحا ب السرفر

تيجي في القريد لست

عشان يقر يحدد ويصكه سلاب كذا

اديتك اللي انت عايزه فوق

Link to comment
local alzr = "m" 
--    
       GUIEditor = { 
            checkbox = {}, 
            button = {}, 
            gridlist = {}, 
            edit = {}, 
            label = {} 
        } 
    ------ 
      
local screenW, screenH = guiGetScreenSize() 
wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd ,false) 
showCursor(false) 
GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
guiGridListAddColumn(grid, "Name Player", 0.9)      
  
  
wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
guiWindowSetSizable(wnd2, false) 
guiSetVisible(wnd2 ,false) 
GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
          
        
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
          
          
          
        addEventHandler("onClientGUIClick",resourceRoot, 
            function ( ) 
                if ( source == GUIEditor.button[2] ) then 
                    guiSetVisible(wnd2,false) 
                    showCursor(false) 
                     elseif ( source == GUIEditor.button[3] ) then 
                        guiSetVisible(wnd,false) 
                        guiSetVisible(wnd2,true) 
                end 
            end 
         ) 
      
      
         addEventHandler("onClientGUIClick",resourceRoot, 
            function ( ) 
              if ( source == GUIEditor.button[5] ) then 
                    guiSetVisible(wnd,false) 
                    showCursor(false) 
    end 
    end) 
      
--- 
-- 
 addEventHandler("onClientGUIClick",root,function(    ) 
   if source == GUIEditor.button[4] then 
    if not isPedInVehicle(localPlayer) then return end 
    destroyElement ( getPedOccupiedVehicle(localPlayer) ) 
        end 
   end 
 ) 
------- 
addEventHandler("onClientGUIClick",resourceRoot,   
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent("SlapPlayer", localPlayer) 
local edit1 = guiGetText(GUIEditor.edit[1]) 
guiSetVisible(wnd2,false) 
showCursor(false) 
end 
end) 
----- 
addEventHandler("onClientGUIClick", GUIEditor.button[1],   
function ( ) 
local sel = guiGridListGetSelectedItem(grid) 
local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) 
setElementPosition ( 2122.21818, 53121, 10.5141 ) 
setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) 
if  sel ~= -1 and getElementType(player) == "player"  then 
setTimer ( Jail , Mk ) 
end 
end) 
function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
) 
  

ما شتغلت

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...