ΞĪŚŚÀ Posted February 23, 2014 Share Posted February 23, 2014 (edited) السلام عليكم شباب ابي كود اذا لاعب كان في ماركر مايقدر احد يقتله + كود منع اسلحة في المحلات من تاب ومن الماوس Edited February 23, 2014 by Guest Link to comment
#DRAGON!FIRE Posted February 23, 2014 Share Posted February 23, 2014 Event: "onClientPlayerDamage" isElementWithinMarker cancelEvent الطلب الثاني ي ريت توضحح . Link to comment
ΞĪŚŚÀ Posted February 23, 2014 Author Share Posted February 23, 2014 Event: "onClientPlayerDamage" isElementWithinMarker cancelEvent الطلب الثاني ي ريت توضحح . اللب الثاني : لو دخلت محل او شب ماقدر اقتل احد او تمنع الاسلحة ذذ Link to comment
al-Kobra Posted February 23, 2014 Share Posted February 23, 2014 toggleControl ( "fire", false ) حط هذا في ايفنت دخول الماركر Link to comment
ΞĪŚŚÀ Posted February 23, 2014 Author Share Posted February 23, 2014 = { {1732.6292724609,-1278.9702148438,12.574156761169}, {1975.0847167969,-1277.7426757813,22.8203125}, {1779.8360595703,-1932.7341308594,12.386347770691}, {1536.0302734375,-1683.4799804688,12.546875}, {1427.2347412109,-1057.7525634766,22.1640625}, {414.0266418457,-1365.2066650391,13.902856826782}, {426.60220336914,-1804.0715332031,4.546875}, {1545.041015625,-2250.6782226563,12.546875}, {2301.5368652344,-2346.7805175781,12.546875}, {2480.2934570313,-1749.7170410156,12.546875}, {2224.0158691406,-1164.6190185547,24.733079910278}, {-1414.8715820313,-300.61758422852,13.141115188599}, {1700.9906005859,1451.6712646484,9.7996244430542}, {1624.4620361328,1818.3846435547,9.8203125}, {-1635.18359375,1201.10546875,6.1796875}, {-2656.0537109375,592.06512451172,13.453125}, {1187.9677734375,-1317.7396240234,12.565367698669}, {902.19171142578,-1666.3264160156,12.546875}, --{ x, y, z }, } for i,v in ipairs (markers) do marker = createMarker(v[1], v[2], v[3], "cylinder", get("markerSize"), get("markerColorR"), get("markerColorG"), get("markerColorB"), get("markerAlpha")) blip = createBlip ( v[1] , v[2] , v[3] , get("blipIconID") ) end -- سحب الاسلحة function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then getWeapon(thePlayer, allWeapons) else end end addCommandHandler("duty", duty) element attacker, int weapon, int bodypart [, float loss ] Link to comment
abu5lf Posted February 23, 2014 Share Posted February 23, 2014 = { {1732.6292724609,-1278.9702148438,12.574156761169}, {1975.0847167969,-1277.7426757813,22.8203125}, {1779.8360595703,-1932.7341308594,12.386347770691}, {1536.0302734375,-1683.4799804688,12.546875}, {1427.2347412109,-1057.7525634766,22.1640625}, {414.0266418457,-1365.2066650391,13.902856826782}, {426.60220336914,-1804.0715332031,4.546875}, {1545.041015625,-2250.6782226563,12.546875}, {2301.5368652344,-2346.7805175781,12.546875}, {2480.2934570313,-1749.7170410156,12.546875}, {2224.0158691406,-1164.6190185547,24.733079910278}, {-1414.8715820313,-300.61758422852,13.141115188599}, {1700.9906005859,1451.6712646484,9.7996244430542}, {1624.4620361328,1818.3846435547,9.8203125}, {-1635.18359375,1201.10546875,6.1796875}, {-2656.0537109375,592.06512451172,13.453125}, {1187.9677734375,-1317.7396240234,12.565367698669}, {902.19171142578,-1666.3264160156,12.546875}, --{ x, y, z }, } for i,v in ipairs (markers) do marker = createMarker(v[1], v[2], v[3], "cylinder", get("markerSize"), get("markerColorR"), get("markerColorG"), get("markerColorB"), get("markerAlpha")) blip = createBlip ( v[1] , v[2] , v[3] , get("blipIconID") ) end -- سحب الاسلحة function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then getWeapon(thePlayer, allWeapons) else end end addCommandHandler("duty", duty) element attacker, int weapon, int bodypart [, float loss ] ??! Link to comment
#DRAGON!FIRE Posted February 23, 2014 Share Posted February 23, 2014 addEventHandler ( "onClientPlayerDamage", localPlayer, function( attacker ) if ( attacker and attacker ~= source ) then if ( isElementWithinMarker( source, marker ) ) then cancelEvent( ) end end end ) Link to comment
Plair07 Posted February 26, 2014 Share Posted February 26, 2014 = { {1732.6292724609,-1278.9702148438,12.574156761169}, {1975.0847167969,-1277.7426757813,22.8203125}, {1779.8360595703,-1932.7341308594,12.386347770691}, {1536.0302734375,-1683.4799804688,12.546875}, {1427.2347412109,-1057.7525634766,22.1640625}, {414.0266418457,-1365.2066650391,13.902856826782}, {426.60220336914,-1804.0715332031,4.546875}, {1545.041015625,-2250.6782226563,12.546875}, {2301.5368652344,-2346.7805175781,12.546875}, {2480.2934570313,-1749.7170410156,12.546875}, {2224.0158691406,-1164.6190185547,24.733079910278}, {-1414.8715820313,-300.61758422852,13.141115188599}, {1700.9906005859,1451.6712646484,9.7996244430542}, {1624.4620361328,1818.3846435547,9.8203125}, {-1635.18359375,1201.10546875,6.1796875}, {-2656.0537109375,592.06512451172,13.453125}, {1187.9677734375,-1317.7396240234,12.565367698669}, {902.19171142578,-1666.3264160156,12.546875}, --{ x, y, z }, } for i,v in ipairs (markers) do marker = createMarker(v[1], v[2], v[3], "cylinder", get("markerSize"), get("markerColorR"), get("markerColorG"), get("markerColorB"), get("markerAlpha")) blip = createBlip ( v[1] , v[2] , v[3] , get("blipIconID") ) end -- سحب الاسلحة function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then getWeapon(thePlayer, allWeapons) else end end addCommandHandler("duty", duty) element attacker, int weapon, int bodypart [, float loss ] ياخي روح شروحات البرمجه وشوف الدروس اللي هناك وتعلم ترا في دروس مفيده وإذا ممَ تبغى اتفق مع مبرمج وريح بالك Link to comment
ΞĪŚŚÀ Posted February 26, 2014 Author Share Posted February 26, 2014 = { {1732.6292724609,-1278.9702148438,12.574156761169}, {1975.0847167969,-1277.7426757813,22.8203125}, {1779.8360595703,-1932.7341308594,12.386347770691}, {1536.0302734375,-1683.4799804688,12.546875}, {1427.2347412109,-1057.7525634766,22.1640625}, {414.0266418457,-1365.2066650391,13.902856826782}, {426.60220336914,-1804.0715332031,4.546875}, {1545.041015625,-2250.6782226563,12.546875}, {2301.5368652344,-2346.7805175781,12.546875}, {2480.2934570313,-1749.7170410156,12.546875}, {2224.0158691406,-1164.6190185547,24.733079910278}, {-1414.8715820313,-300.61758422852,13.141115188599}, {1700.9906005859,1451.6712646484,9.7996244430542}, {1624.4620361328,1818.3846435547,9.8203125}, {-1635.18359375,1201.10546875,6.1796875}, {-2656.0537109375,592.06512451172,13.453125}, {1187.9677734375,-1317.7396240234,12.565367698669}, {902.19171142578,-1666.3264160156,12.546875}, --{ x, y, z }, } for i,v in ipairs (markers) do marker = createMarker(v[1], v[2], v[3], "cylinder", get("markerSize"), get("markerColorR"), get("markerColorG"), get("markerColorB"), get("markerAlpha")) blip = createBlip ( v[1] , v[2] , v[3] , get("blipIconID") ) end -- سحب الاسلحة function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then getWeapon(thePlayer, allWeapons) else end end addCommandHandler("duty", duty) element attacker, int weapon, int bodypart [, float loss ] ياخي روح شروحات البرمجه وشوف الدروس اللي هناك وتعلم ترا في دروس مفيده وإذا ممَ تبغى اتفق مع مبرمج وريح بالك = Big Noop GaMeR!# 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