Jump to content

طلب اكواد


yazan

Recommended Posts

سلام عليكم

ودي كود مارك يلي في دخله يقدر يطلق نار و يلي في خارج ما يقدر 1-=

++

2 ودي كود لو تغط كبسه يوديك تيم

++

3- لو تدخل مارك اطلاق نار يتوقف الفري روم

و هذى الكود حق طلب 2

و اسم تيم الاول الاردن و ثاني سعودية

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

Link to comment
سلام عليكم

ودي كود مارك يلي في دخله يقدر يطلق نار و يلي في خارج ما يقدر 1-=

++

2 ودي كود لو تغط كبسه يوديك تيم

++

3- لو تدخل مارك اطلاق نار يتوقف الفري روم

و هذى الكود حق طلب 2

و اسم تيم الاول الاردن و ثاني سعودية

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            triggerServerEvent ( source, "team", source )  
           outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            triggerServerEvent ( source, "team1", source )  
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

server

addEvent ( "team", true ) 
addEventHandler ( "team", root, 
function assignNewTeam ( source, commandName, theTeam ) 
  local theTeam = createTeam ( KSA )   
  if theTeam then    
  setPlayerTeam ( source, theTeam )     
end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam ) 
------------------------------------------ 
addEvent ( "team1", true ) 
addEventHandler ( "team1", root, 
function assignNewTeam ( source, commandName, theTeam ) 
  local theTeam = createTeam ( jordan )   
  if theTeam then    
  setPlayerTeam ( source, theTeam )     
end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam ) 
  
  

Edited by Guest
Link to comment
سلام عليكم

ودي كود مارك يلي في دخله يقدر يطلق نار و يلي في خارج ما يقدر 1-=

++

2 ودي كود لو تغط كبسه يوديك تيم

++

3- لو تدخل مارك اطلاق نار يتوقف الفري روم

و هذى الكود حق طلب 2

و اسم تيم الاول الاردن و ثاني سعودية

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            triggerServerEvent ( source, "team", source )  
           outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            triggerServerEvent ( source, "team1", source )  
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

server

addEvent ( "team", true ) 
addEventHandler ( "team", root, 
function assignNewTeam ( source, commandName, theTeam ) 
  local theTeam = createTeam ( KSA )   
  if theTeam then    
  setPlayerTeam ( source, theTeam )     
end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam ) 
------------------------------------------ 
addEvent ( "team1", true ) 
addEventHandler ( "team1", root, 
function assignNewTeam ( source, commandName, theTeam ) 
  local theTeam = createTeam ( KSA )   
  if theTeam then    
  setPlayerTeam ( source, theTeam )     
end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam ) 
  
  

هو قال يبيه اذا كبس زر مهب بأمر

Link to comment
سلام عليكم

ودي كود مارك يلي في دخله يقدر يطلق نار و يلي في خارج ما يقدر 1-=

++

2 ودي كود لو تغط كبسه يوديك تيم

++

3- لو تدخل مارك اطلاق نار يتوقف الفري روم

و هذى الكود حق طلب 2

و اسم تيم الاول الاردن و ثاني سعودية

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            triggerServerEvent ( source, "team", source )  
           outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            triggerServerEvent ( source, "team1", source )  
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

server

addEvent ( "team", true ) 
addEventHandler ( "team", root, 
function assignNewTeam ( source, commandName, theTeam ) 
  local theTeam = createTeam ( KSA )   
  if theTeam then    
  setPlayerTeam ( source, theTeam )     
end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam ) 
------------------------------------------ 
addEvent ( "team1", true ) 
addEventHandler ( "team1", root, 
function assignNewTeam ( source, commandName, theTeam ) 
  local theTeam = createTeam ( jordan )   
  if theTeam then    
  setPlayerTeam ( source, theTeam )     
end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam ) 
  
  

خطأ كلة -_-" وانشاء التيمات

Link to comment

الطلب 2

كلنت

yazan = createMarker( -2924.978515625, -736.68469238281, 170.0874938964, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
           outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
                onjo() 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
                onksa() 
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
  
function onjo() 
    triggerServerEvent("spawnHim1",localPlayer) 
end 
  
function onksa() 
    triggerServerEvent("spawnHim2",localPlayer) 
end 

سيرفر

local jordan = createTeam ( "الاردن", 255, 0, 0 ) 
local ksa = createTeam ( "السعودية", 255, 255, 0 ) 
  
  
  
addEvent("spawnHim1",true)  
  
addEventHandler("spawnHim1",root,  
  
function() 
  
setPlayerTeam ( source, jordan ) 
setCameraTarget(source, source) 
end  
)   
  
  
addEvent("spawnHim2",true)  
  
addEventHandler("spawnHim2",root,  
  
function() 
  
setPlayerTeam ( source, ksa ) 
setCameraTarget(source, source) 
end  
  
)   

Link to comment
وعليكم السلام

ياخي وش الي سعودي واردني ؟

بتسوي حرب بينهم.! ، تخرص من رآسك انت ؟

غير الاسامي الله يصلحك، وبطل حركآإت العنصريةة والتحسس

اول شي انت قرائت الودك ياه

انا كاتب ليس الهداف ان تكون اردني او سعودي مود للتسليه فقط

كلنا عرب

انت جيبت علىاسم الفريق

و عنصريه وش و مدري انت تهايط من حالك ردك لو ما له دخل بل موضع لا تقطه و خلك بنفسك :fadein:

Link to comment
-- Client Side 
yazan = createMarker( -2924.978515625, -736.68469238281, 170.0874938964, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
, false ) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
, false ) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            triggerServerEvent ( "spawnHim1", localPlayer ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            triggerServerEvent ( "spawnHim2", localPlayer ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

-- Server Side 
jordan = createTeam ( "Jordan", 255, 0, 0 ) 
ksa = createTeam ( "KSA", 255, 255, 0 ) 
  
addEvent ( "spawnHim1", true )   
addEventHandler ( "spawnHim1", root,  
    function ( ) 
        setPlayerTeam ( source, jordan ) 
        setCameraTarget ( source, source ) 
        setElementPosition ( source, -2924.978515625, -736.68469238281, 170.08749389648 ) 
        setElementModel ( source, 105 )      
        outputChatBox ( 'تم نقلك الى فريق الاردن', source, 255, 255, 255, true )      
    end  
)   
   
addEvent ( "spawnHim2", true )  
addEventHandler ( "spawnHim2", root,  
    function ( )  
        setPlayerTeam ( source, ksa ) 
        setCameraTarget ( source, source ) 
        setElementPosition ( source, -2990.9272460938, -437.00256347656, 164.16250610352 ) 
        setElementModel ( source, 128 ) 
        outputChatBox ( 'تم نقلك الى فريق السعودية', source, 255, 255, 255, true )      
    end   
) 

Link to comment

الطلب الأول + الثالث سويتها لك بكود وآحد

أولاً رح للفري روم حقكـ ,

fr_client.lua وافتح ملف

ورح إلى سطر 1600

تلقى الكود هذآ

function toggleFRWindow() 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

إستبدله بالكود ذآ

YazanM = createMarker ( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onClientPlayerWeaponFire", localPlayer, 
    function ( ) 
        if not isElementWithinMarker ( source, YazanM ) then 
            toggleControl ( "fire", false ) 
            toggleControl ( "aim_weapon", false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerHit", YazanM, 
    function ( hitElement ) 
        if getElementType ( hitElement ) == "player" then 
            toggleControl ( "fire", true ) 
            toggleControl ( "aim_weapon", true ) 
        end 
    end 
) 
  
function toggleFRWindow() 
    if not isElementWithinMarker ( g_Me, YazanM ) then 
        if isWindowOpen(wndMain) then 
            showCursor(false) 
            hideAllWindows() 
            colorPicker.closeSelect() 
        else 
            showCursor(true) 
            showAllWindows() 
        end 
    end 
end 

الإستبدآل ,

السطر الأول ,

x, y, z = إحداثيات الماركر

size = حجم المآركر

وإذا تبي الماركر يكون مخفي غير رقم 255 الي بنهاية السطر الأول إلى 0 #

حق الفري روم حقكـ ، وقلي احداثيات الماركر الي تبيها fr_client.lua وإذا في شي ما فهمته أو ما عرفت تسويه ، إطرحلي ملف

+

إذا تبي الماركر مخفي أو لا

+

حجم الماركر

===================================

الطلب الثاني حق لما تكبس الزر يوديكـ للتيم الي تختآرهـ ,

-- Client Side !

yazan = createMarker( -2924.978515625, -736.68469238281, 170.08749389648, "cylinder", 2, 255, 255, 255, 150 ) 
  
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(149,62,486,448,"اختيار الفريق",false) 
guiSetVisible ( GUIEditor_Window[1], false ) 
GUIEditor_Image[1] = guiCreateStaticImage(120,248,78,191,"images/yazan2.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(327,249,82,190,"images/yazan1.png",false,GUIEditor_Window[1]) 
CloseBtn = guiCreateButton(430,20,35,35,"X",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(329,211,76,35,"الاردن",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(121,219,77,29,"السعودية",false,GUIEditor_Window[1]) 
  
GUIEditor_Label[1] = guiCreateLabel(9,87,477,65,"ليس الهدف ان تكون اردني او سعودي او اي دوله  تم صنع مود من اجل تسليه فقط",false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel(209,223,121,24,"نحنا اخوان  كلنا عرب",false,GUIEditor_Window[1]) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
    function ( hitElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", yazan, 
    function ( leftElement ) 
        if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) and ( getElementType ( leftElement ) == "player" ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor_Button[1] ) then 
            setElementPosition( localPlayer, -2924.978515625, -736.68469238281, 170.08749389648) 
            setElementModel ( localPlayer, 105 ) 
            triggerServerEvent ( "Jordan", localPlayer ) 
            outputChatBox('تم نقلك الى فريق الاردن', 255, 255, 255, true ) 
        elseif ( source == GUIEditor_Button[2] ) then 
            setElementPosition( localPlayer, -2990.9272460938, -437.00256347656, 164.16250610352) 
            setElementModel ( localPlayer, 128 ) 
            triggerServerEvent ( "Saudi", localPlayer ) 
            outputChatBox('تم نقلك الى فريق السعودية', 255, 255, 255, true ) 
        elseif ( source == CloseBtn ) then 
            guiSetVisible ( GUIEditor_Window[1], false ) 
            showCursor ( false ) 
        end 
    end 
) 

-- Server Side !

Jordan = createTeam ( "الأردن", 255, 0, 0 ) 
Saudi = createTeam ( "السعودية", 0, 0, 255 ) 
  
addEvent ( "Jordan", true ) 
addEventHandler ( "Jordan", root, 
    function ( ) 
        setPlayerTeam ( source, Jordan ) 
    end 
) 
  
addEvent ( "Saudi", true ) 
addEventHandler ( "Saudi", root, 
    function ( ) 
        setPlayerTeam ( source, Saudi ) 
    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...