Jump to content

تعديل


ayman1998

Recommended Posts

السلام عليكم و رحمة الله و بركاتة

ابي تعدلو لي هاد الكود تاع الكوبرا

ابية لما يسرق يطلع صوت عند السارق و المسروق

و ابي ما يقدر يسرق الى كل 2 دقائق

يعني اذا سرق و اجا يسرق يقلة انتظر 2 دقائق عشين تسرق مرة تانية

و اذا مرو 2 دقائق يثدر يسرق

GUIEditor = { 
    memo = {}, 
    button = {}, 
    gridlist = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(285, 169, 312, 301, "Bog Job by al-Kobra", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible(GUIEditor.window[1],false) 
  
GUIEditor.memo[1] = guiCreateMemo(10, 15, 296, 129, " ", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.gridlist[1] = guiCreateGridList(9, 154, 123, 138, false, GUIEditor.window[1]) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Job", 0.9) 
guiGridListAddRow(GUIEditor.gridlist[1]) 
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) 
GUIEditor.button[1] = guiCreateButton(184, 182, 91, 35, "Take Job", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[2] = guiCreateButton(184, 244, 91, 35, "Quit", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") 
  
  
  
  
  
addEventHandler( "onClientGUIClick", root, 
 function () 
    if source == GUIEditor.button[1]  then 
    local selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) 
    local Name = guiGridListGetItemText( GUIEditor.gridlist[1], selectedRow, selectedCol ) 
    if Name == "1" then 
    setElementModel(source, 202) 
elseif (source == GUIEditor.button[1]) then 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
    setElementData ( localPlayer, Bog, true ) 
elseif (source == GUIEditor.button[2]) then 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
end 
end 
end 
 ) 
  
  
  
  
  
BlipJob = createBlip(1, 2, 3, 33) 
MarkerJob = createMarker(1, 2, 3,"cylinder", 2, 255, 255, 0) 
  
addEventHandler ( "onClientMarkerHit", root, 
 function  ( hitPlayer ) 
   if hitPlayer == localPlayer then 
     if source == MarkerJob then 
        guiSetVisible (GUIEditor.window[1],true) 
      showCursor (true) 
    end 
  end 
end 
)  

sarver

  
addEventHandler ( "onPlayerTarget", root, function ( targetElem ) 
bindKey (source,"m","down", 
function( ) 
    if targetElem and getElementType ( targetElem ) == "player" and getElementData ( source, Bog ) == true then 
        local money = getPlayerMoney(targetElem) 
            if (money > 1000) then 
                local MON = math.random ( 50,1000 ) 
                    takePlayerMoney ( targetElem, MON ) 
                        givePlayerMoney ( source, MON ) 
                    end 
                end 
            end 
        ) 
    end 
) 
  
  
  
  local nt = createTeam ( Boog ) 
  
addEvent("skin", true) 
addEventHandler("skin", root, function() 
  setElementModel(source, 202) 
    setPlayerTeam ( source, nt ) 
end 
) 
  

Link to comment

طلبك الاول

triggerClientEvent 
playSound 

الثاني

تخلي الداتا false

مثل كذا

Timer = {} 
addEventHandler ( "onPlayerTarget", root, function ( targetElem ) 
bindKey (source,"m","down", 
function( ) 
    if targetElem and getElementType ( targetElem ) == "player" and getElementData ( source, Bog ) == true then 
        local money = getPlayerMoney(targetElem) 
            if (money > 1000) then 
                local MON = math.random ( 50,1000 ) 
                    takePlayerMoney ( targetElem, MON ) 
                        givePlayerMoney ( source, MON ) 
                          setElementData(source,Bog,false) 
                            Timer[source] = setTimer(setElementData,2*60000,1,source,Bog,true) 
                    end 
                end 
            end 
        ) 
    end 
) 
  
  
  
  local nt = createTeam ( Boog ) 
  
addEvent("skin", true) 
addEventHandler("skin", root, function() 
  setElementModel(source, 202) 
    setPlayerTeam ( source, nt ) 
end 
) 
  

جرب >>؛>>

Link to comment

سويت هيك بس كيف اخلي يطلع الصوت يل السارق و المسروق

و الطلب الاني ما فهمت كيف اخلية يطلع هاد في الشات

outputChatBox ( انتضر 2 دقائق لكي تصتطيع السرقة مرة اخرا, MON , 255, 0, 0 ) 

GUIEditor = { 
    memo = {}, 
    button = {}, 
    gridlist = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(285, 169, 312, 301, "Bog Job by al-Kobra", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible(GUIEditor.window[1],false) 
  
GUIEditor.memo[1] = guiCreateMemo(10, 15, 296, 129, " ", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.gridlist[1] = guiCreateGridList(9, 154, 123, 138, false, GUIEditor.window[1]) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Job", 0.9) 
guiGridListAddRow(GUIEditor.gridlist[1]) 
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) 
GUIEditor.button[1] = guiCreateButton(184, 182, 91, 35, "Take Job", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[2] = guiCreateButton(184, 244, 91, 35, "Quit", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") 
  
  
  
  
  
addEventHandler( "onClientGUIClick", root, 
 function () 
    if source == GUIEditor.button[1]  then 
    local selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) 
    local Name = guiGridListGetItemText( GUIEditor.gridlist[1], selectedRow, selectedCol ) 
    if Name == "1" then 
    setElementModel(source, 202) 
elseif (source == GUIEditor.button[1]) then 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
    setElementData ( localPlayer, Bog, true ) 
elseif (source == GUIEditor.button[2]) then 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
end 
end 
end 
 ) 
  
  
  
  
  
BlipJob = createBlip(1, 2, 3, 33) 
MarkerJob = createMarker(1, 2, 3,"cylinder", 2, 255, 255, 0) 
  
addEventHandler ( "onClientMarkerHit", root, 
 function  ( hitPlayer ) 
   if hitPlayer == localPlayer then 
     if source == MarkerJob then 
        guiSetVisible (GUIEditor.window[1],true) 
      showCursor (true) 
    end 
  end 
end 
)   
  
  
  
addEvent ( 'SOND', true) 
addEventHandler( 'SOND', localPlayer, 
    function( sMsg ) 
     local sound = playSound("sound.mp3") 
    end 
 ) 
  
  
  
-------------------------------------------------------------------------------------------------------------------------- 
sarver 
  
  
addEventHandler ( "onPlayerTarget", root, function ( targetElem ) 
bindKey (source,"m","down", 
function( ) 
    if targetElem and getElementType ( targetElem ) == "player" and getElementData ( source, Bog ) == true then 
        local money = getPlayerMoney(targetElem) 
            if (money > 1000) then 
                local MON = math.random ( 50,1000 ) 
                    takePlayerMoney ( targetElem, MON ) 
                        givePlayerMoney ( source, MON ) 
                        triggerClientEvent ( "onGreeting", getRootElement()) 
                    end 
                end 
            end 
        ) 
    end 
) 
  
  
  
  local nt = createTeam ( Boog ) 
  
addEvent("skin", true) 
addEventHandler("skin", root, function() 
  setElementModel(source, 202) 
    setPlayerTeam ( source, nt ) 
end 
) 
  
  

Link to comment
سويت هيك بس كيف اخلي يطلع الصوت يل السارق و المسروق

و الطلب الاني ما فهمت كيف اخلية يطلع هاد في الشات

outputChatBox ( انتضر 2 دقائق لكي تصتطيع السرقة مرة اخرا, MON , 255, 0, 0 ) 

GUIEditor = { 
    memo = {}, 
    button = {}, 
    gridlist = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(285, 169, 312, 301, "Bog Job by al-Kobra", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible(GUIEditor.window[1],false) 
  
GUIEditor.memo[1] = guiCreateMemo(10, 15, 296, 129, " ", false, GUIEditor.window[1]) 
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
GUIEditor.gridlist[1] = guiCreateGridList(9, 154, 123, 138, false, GUIEditor.window[1]) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Job", 0.9) 
guiGridListAddRow(GUIEditor.gridlist[1]) 
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) 
GUIEditor.button[1] = guiCreateButton(184, 182, 91, 35, "Take Job", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[2] = guiCreateButton(184, 244, 91, 35, "Quit", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") 
  
  
  
  
  
addEventHandler( "onClientGUIClick", root, 
 function () 
    if source == GUIEditor.button[1]  then 
    local selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) 
    local Name = guiGridListGetItemText( GUIEditor.gridlist[1], selectedRow, selectedCol ) 
    if Name == "1" then 
    setElementModel(source, 202) 
elseif (source == GUIEditor.button[1]) then 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
    setElementData ( localPlayer, Bog, true ) 
elseif (source == GUIEditor.button[2]) then 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
end 
end 
end 
 ) 
  
  
  
  
  
BlipJob = createBlip(1, 2, 3, 33) 
MarkerJob = createMarker(1, 2, 3,"cylinder", 2, 255, 255, 0) 
  
addEventHandler ( "onClientMarkerHit", root, 
 function  ( hitPlayer ) 
   if hitPlayer == localPlayer then 
     if source == MarkerJob then 
        guiSetVisible (GUIEditor.window[1],true) 
      showCursor (true) 
    end 
  end 
end 
)   
  
  
  
addEvent ( 'SOND', true) 
addEventHandler( 'SOND', localPlayer, 
    function( sMsg ) 
     local sound = playSound("sound.mp3") 
    end 
 ) 
  
  
  
-------------------------------------------------------------------------------------------------------------------------- 
sarver 
  
  
addEventHandler ( "onPlayerTarget", root, function ( targetElem ) 
bindKey (source,"m","down", 
function( ) 
    if targetElem and getElementType ( targetElem ) == "player" and getElementData ( source, Bog ) == true then 
        local money = getPlayerMoney(targetElem) 
            if (money > 1000) then 
                local MON = math.random ( 50,1000 ) 
                    takePlayerMoney ( targetElem, MON ) 
                        givePlayerMoney ( source, MON ) 
                        triggerClientEvent ( "onGreeting", getRootElement()) 
                    end 
                end 
            end 
        ) 
    end 
) 
  
  
  
  local nt = createTeam ( Boog ) 
  
addEvent("skin", true) 
addEventHandler("skin", root, function() 
  setElementModel(source, 202) 
    setPlayerTeam ( source, nt ) 
end 
) 
  
  

try

outputChatBox( "انتضر 2 دقائق لكي تصتطيع السرقة مرة اخرا", source, 255, 0, 0,true ) 

Link to comment

بعدين هاد الكود مو الي هاد يا الكوبرا

و انا ابي ما يقدر يسرق الى قل دقيقتين و اذا سرق و اجا يعاود يسرق و مخلصو الدقيقتين يقلو انتظر دقيقتين لكي تستطيع السرقة مرة تانية

و ابي يطلع صوت عند السارق و المسروق

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