yazan Posted February 11, 2013 Posted February 11, 2013 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 اول كود ليا
yazan Posted February 11, 2013 Author Posted February 11, 2013 (edited) 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 February 11, 2013 by Guest
yazan Posted February 11, 2013 Author Posted February 11, 2013 مارك كبير لو تدخله سلاحك يروح لو تخرج سلا ح عادي لكن حبيا اشوف اذا اقدر اعمله او لا
TAPL Posted February 11, 2013 Posted February 11, 2013 -- 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)
==>ҭᾄlᾄl Posted February 11, 2013 Posted February 11, 2013 للاطلاق toggleControl("fire",true) لمنع الاطلاق toggleControl("fire",false)
кιηg-αвα∂у Posted February 11, 2013 Posted February 11, 2013 -- 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)
iPrestege Posted February 11, 2013 Posted February 11, 2013 اعتقد اللي يبية مايقدر يطلق مثل الاخ طلال ما قال / = فـ يكون السكربت كذا : -- 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 )
yazan Posted February 11, 2013 Author Posted February 11, 2013 اخوي القصه هيا مو المود انا ودي اعمل كود بسيط اشوف اخطائي و اصححها هذى اول كود انا عامل
iPrestege Posted February 11, 2013 Posted February 11, 2013 المطلوب يعني مايقدر يطلق في الماركر صحيح ؟
iPrestege Posted February 11, 2013 Posted February 11, 2013 جرب هذا كلنت / -- 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 )
PaiN^ Posted February 11, 2013 Posted February 11, 2013 **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 )
yazan Posted February 11, 2013 Author Posted February 11, 2013 مشكورين كلنت شغال و سيرفر لا مشكورين خلص صلح معي
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now