Jump to content

تصحيح كود


yazan

Recommended Posts

  
marker = createMarker( -1533.5, 766.2998046875, 7.1999998092651, "cylinder", 50, 255, 255, 255, 255 ) 
      addEventHandler("onClientMarkerHit", marker, showgui) 
function hudChanger () 
  showPlayerHudComponent ( source, "ammo", false ) 
    showPlayerHudComponent ( source, "weapon", false ) 
 end 
    showPlayerHudComponent ( source, "ammo", true ) 
        showPlayerHudComponent ( source, "weapon",true ) 
    addEventHandler("onClientMarkerLeave", marker, showguil) 
    (end 
  

اول كود ليا :arrowup::arrowup:

Link to comment
  
marker = createMarker( -1533.5, 766.2998046875, 7.1999998092651, "cylinder", 50, 255, 255, 255, 255 ) 
      addEventHandler("onClientMarkerHit", marker, showgui) 
function hudChanger () 
  showPlayerHudComponent ( source, "ammo", false ) 
    showPlayerHudComponent ( source, "weapon", false ) 
 end 
    showPlayerHudComponent ( source, "ammo", true ) 
        showPlayerHudComponent ( source, "weapon",true ) 
    addEventHandler("onClientMarkerLeave", marker, showguil) 
    (end 
  

اول كود ليا

او يسير كذا ؟

(marker = createMarker( -1533.5, 766.2998046875, 7.1999998092651, "cylinder", 50, 255, 255, 255, 255 ) 
function hudChanger () 
 onClientMarkerLeave ( source, "ammo", false ) 
  onClientMarkerHit ( source, "weapon", false ) 
 end 
 onClientMarkerLeave ( source, "ammo", true ) 
    onClientMarkerLeave ( source, "weapon",true ) 
    end) 
  

Edited by Guest
Link to comment

-- Client Side --

marker = createMarker(-1533.5, 766.3, 7.2, "cylinder", 50, 255, 255, 255, 255) 
  
addEventHandler("onClientMarkerHit", marker, 
function(player) 
    if player == localPlayer then 
        showPlayerHudComponent("ammo", true) 
        showPlayerHudComponent("weapon", true) 
    end 
end) 
  
addEventHandler("onClientMarkerLeave", marker, 
function(player) 
    if player == localPlayer then 
        showPlayerHudComponent("ammo", false) 
        showPlayerHudComponent("weapon", false) 
    end 
end) 

Link to comment
-- Client Side --
marker = createMarker(-1533.5, 766.3, 7.2, "cylinder", 50, 255, 255, 255, 255) 
  
addEventHandler("onClientMarkerHit", marker, 
function(player) 
    if player == localPlayer then 
        showPlayerHudComponent("ammo", true) 
        showPlayerHudComponent("weapon", true) 
    end 
end) 
  
addEventHandler("onClientMarkerLeave", marker, 
function(player) 
    if player == localPlayer then 
        showPlayerHudComponent("ammo", false) 
        showPlayerHudComponent("weapon", false) 
    end 
end) 

انت سويت العكس للي يبي هو

مارك كبير لو تدخله سلاحك يروح لو تخرج سلا ح عادي لكن حبيا اشوف اذا اقدر اعمله او لا

جرب

-- client side

marker = createMarker(-1533.5, 766.3, 7.2, "cylinder", 50, 255, 255, 255, 255) 
  
  
addEventHandler("onClientMarkerHit", marker, 
function(player) 
    if player == localPlayer then 
        showPlayerHudComponent("ammo", false) 
        showPlayerHudComponent("weapon", false) 
    end 
end) 
  
addEventHandler("onClientMarkerLeave", marker, 
function(player) 
    if player == localPlayer then 
        showPlayerHudComponent("ammo", true) 
        showPlayerHudComponent("weapon", true) 
    end 
end) 

Link to comment

اعتقد اللي يبية :mrgreen:

مايقدر يطلق مثل الاخ طلال ما قال / = فـ يكون السكربت كذا :

-- Client Side Not Tested 
marker = createMarker(-1533.5, 766.3, 7.2, "cylinder", 50, 255, 255, 255, 255) 
  
  
addEventHandler("onClientMarkerHit", marker, 
function (player) 
    if ( player == localPlayer ) then 
        showPlayerHudComponent("ammo", false) 
        showPlayerHudComponent("weapon", false) 
       toggleControl("fire",false) 
    end 
end 
) 
  
addEventHandler("onClientMarkerLeave", marker, 
function (player) 
    if ( player == localPlayer ) then 
        showPlayerHudComponent("ammo", true) 
        showPlayerHudComponent("weapon", true) 
       toggleControl("fire",true) 
    end 
end 
) 
Link to comment

جرب هذا كلنت /

-- Client Side Not Tested 
marker = createMarker(-1533.5, 766.3, 7.2, "cylinder", 50, 255, 255, 255, 255) 
  
  
addEventHandler("onClientMarkerHit", marker, 
function (player) 
    if ( player == localPlayer ) then 
        showPlayerHudComponent("ammo", false) 
        showPlayerHudComponent("weapon", false) 
       toggleControl("fire",false) 
    end 
end 
) 
  
addEventHandler("onClientMarkerLeave", marker, 
function (player) 
    if ( player == localPlayer ) then 
        showPlayerHudComponent("ammo", true) 
        showPlayerHudComponent("weapon", true) 
       toggleControl("fire",true) 
    end 
end 
) 
Link to comment

**Note :

لو كنت تبيه سيرفر

-- Server side [ Not Tisted !! ] 
  
marker = createMarker(-1533.5, 766.3, 7.2, "cylinder", 50, 255, 255, 255, 255) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player ) 
        if ( getElementType( player) == "player" ) then 
            showPlayerHudComponent( player, "ammo", false ) 
            showPlayerHudComponent( player, "weapon", false ) 
            toggleControl( player, "fire", false )   
        end 
    end 
) 
  
addEventHandler( "onMarkerLeave", marker, 
    function ( player ) 
        if ( getElementType( player ) == "player" ) then 
            showPlayerHudComponent( player, "ammo", true ) 
            showPlayerHudComponent( player, "weapon", true ) 
            toggleControl( player, "fire", true ) 
        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...