yazan Posted February 11, 2013 Share 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 اول كود ليا Link to comment
yazan Posted February 11, 2013 Author Share 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 Link to comment
TAPL Posted February 11, 2013 Share Posted February 11, 2013 أنت وش الي تبي تسويه بالضبط؟ Link to comment
yazan Posted February 11, 2013 Author Share Posted February 11, 2013 مارك كبير لو تدخله سلاحك يروح لو تخرج سلا ح عادي لكن حبيا اشوف اذا اقدر اعمله او لا Link to comment
yazan Posted February 11, 2013 Author Share Posted February 11, 2013 اذا تقدر تصحح الكود حقي ؟ Link to comment
TAPL Posted February 11, 2013 Share 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) Link to comment
yazan Posted February 11, 2013 Author Share Posted February 11, 2013 مشكورررررررررررررررر Link to comment
TAPL Posted February 11, 2013 Share Posted February 11, 2013 تأكد أنك حاط الكود كلينت بالميتا Link to comment
==>ҭᾄlᾄl Posted February 11, 2013 Share Posted February 11, 2013 للاطلاق toggleControl("fire",true) لمنع الاطلاق toggleControl("fire",false) Link to comment
кιηg-αвα∂у Posted February 11, 2013 Share 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) Link to comment
iPrestege Posted February 11, 2013 Share 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 ) Link to comment
yazan Posted February 11, 2013 Author Share Posted February 11, 2013 اخوي القصه هيا مو المود انا ودي اعمل كود بسيط اشوف اخطائي و اصححها هذى اول كود انا عامل Link to comment
iPrestege Posted February 11, 2013 Share Posted February 11, 2013 المطلوب يعني مايقدر يطلق في الماركر صحيح ؟ Link to comment
yazan Posted February 11, 2013 Author Share Posted February 11, 2013 يب هوا كان فكرتي كذا Link to comment
iPrestege Posted February 11, 2013 Share 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 ) Link to comment
PaiN^ Posted February 11, 2013 Share 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 ) Link to comment
yazan Posted February 11, 2013 Author Share Posted February 11, 2013 مشكورين كلنت شغال و سيرفر لا مشكورين خلص صلح معي Link to comment
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