MR.Mosa Posted June 5, 2017 Share Posted June 5, 2017 addEvent("Cl_PlaceSelected1",true) addEventHandler("Cl_PlaceSelected1",root, function() MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) end ) addEventHandler("onClientMarkerHit", MarkerMo, function(plr) if getElementType ( plr ) == "player" then destroyElement(MarkerMo) end end ) Link to comment
AHMED MOSTAFA Posted June 5, 2017 Share Posted June 5, 2017 Just now, MR.Mosa said: addEvent("Cl_PlaceSelected1",true) addEventHandler("Cl_PlaceSelected1",root, function() MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) end ) addEventHandler("onClientMarkerHit", MarkerMo, function(plr) if getElementType ( plr ) == "player" then destroyElement(MarkerMo) end end ) وش تبي تسوي ؟ Link to comment
MR.Mosa Posted June 5, 2017 Author Share Posted June 5, 2017 مش مهمة شو بدي اسوي بس بدي اعرف شو المشكلة لو سمحت Link to comment
AHMED MOSTAFA Posted June 5, 2017 Share Posted June 5, 2017 (edited) function كمل () MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) setElementData ( client, "MarkerMo.data", MarkerMo ) end addEvent("Cl_PlaceSelected1",true) addEventHandler("Cl_PlaceSelected1",root, Trigger ) function onHit ( كمل ) if source == كمل then -- marker if getElementType كمل then if getElementData ( plr, "destroy" ) then if isElement ( getElementData ( plr, "destroy" ) ) then destroyElement ( getElementData ( plr, "destroy") ) end end كمل end كمل addEventHandler("onClientMarkerHit", root, كمل ) Edited June 5, 2017 by Killer Project 1 Link to comment
^iiEcoo'x_) Posted June 5, 2017 Share Posted June 5, 2017 addEvent ( 'Cl_PlaceSelected1' , true ) addEventHandler ( 'Cl_PlaceSelected1' , root , function ( ) aMarker = createMarker ( 2223.17041 , -1352.29309 , 22.98620 , 'cylinder' , 5 , 31 , 230 , 20 ) addEventHandler ( 'onClientMarkerHit' , aMarker , aMarkerFunction ) end ) function aMarkerFunction ( aPlr_ ) if ( aPlr_ == localPlayer ) then if ( getElementType ( aPlr_ ) == 'player' ) then destroyElement ( aMarker ) end end end تفضل Link to comment
AHMED MOSTAFA Posted June 5, 2017 Share Posted June 5, 2017 سطر 3 عندي setElementData ( client, "destroy", MarkerMo ) Link to comment
Adham Posted June 5, 2017 Share Posted June 5, 2017 41 minutes ago, Killer Project said: function كمل () MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) setElementData ( client, "MarkerMo.data", MarkerMo ) end addEvent("Cl_PlaceSelected1",true) addEventHandler("Cl_PlaceSelected1",root, Trigger ) function onHit ( كمل ) if source == كمل then -- marker if getElementType كمل then if getElementData ( plr, "destroy" ) then if isElement ( getElementData ( plr, "destroy" ) ) then destroyElement ( getElementData ( plr, "destroy") ) end end كمل end كمل addEventHandler("onClientMarkerHit", root, كمل ) وش لازمه كلام كمل هذا ؟ Link to comment
AHMED MOSTAFA Posted June 5, 2017 Share Posted June 5, 2017 Just now, Deativated said: وش لازمه كلام كمل هذا ؟ يمكن عشان مديهوش الكود كامل ؟ ---تصحيح الكلمة اللي فوق function كمل () MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) setElementData ( client, "destroy", MarkerMo ) end addEvent("Cl_PlaceSelected1",true) addEventHandler("Cl_PlaceSelected1",root, Trigger ) function onHit ( كمل ) if source == كمل then -- marker if getElementType كمل then if getElementData ( plr, "destroy" ) then if isElement ( getElementData ( plr, "destroy" ) ) then destroyElement ( getElementData ( plr, "destroy") ) end end كمل end كمل addEventHandler("onClientMarkerHit", root, كمل ) Link to comment
Adham Posted June 5, 2017 Share Posted June 5, 2017 addEvent( "Cl_PlaceSelected1",true ) addEventHandler( "Cl_PlaceSelected1" ,root, function ( ) MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) setElementData ( client, "destroy", MarkerMo ) end ) addEventHandler ( "onClientMarkerHit", MarkerNo, function ( aPlayer ) if aPlayer == localPlayer then if getElementData ( aPlayer, "destroy" ) then if isElement ( getElementData ( aPlayer, "destroy" ) ) then destroyElement ( getElementData ( aPlayer, "destroy") ) end end end end ) 1 Link to comment
MR.StoRm Posted June 5, 2017 Share Posted June 5, 2017 4 minutes ago, Deativated said: addEvent( "Cl_PlaceSelected1",true ) addEventHandler( "Cl_PlaceSelected1" ,root, function ( ) MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) setElementData ( client, "destroy", MarkerMo ) end ) addEventHandler ( "onClientMarkerHit", MarkerNo, function ( aPlayer ) if aPlayer == localPlayer then if getElementData ( aPlayer, "destroy" ) then if isElement ( getElementData ( aPlayer, "destroy" ) ) then destroyElement ( getElementData ( aPlayer, "destroy") ) end end end end ) MarkerMo , MarkerNo ??????? !! 2 Link to comment
AHMED MOSTAFA Posted June 5, 2017 Share Posted June 5, 2017 Just now, Deativated said: addEvent( "Cl_PlaceSelected1",true ) addEventHandler( "Cl_PlaceSelected1" ,root, function ( ) MarkerMo = createMarker(2223.17041,-1352.29309,22.98620, "cylinder", 5, 31, 230, 20) setElementData ( client, "destroy", MarkerMo ) end ) addEventHandler ( "onClientMarkerHit", MarkerNo, function ( aPlayer ) if aPlayer == localPlayer then if getElementData ( aPlayer, "destroy" ) then if isElement ( getElementData ( aPlayer, "destroy" ) ) then destroyElement ( getElementData ( aPlayer, "destroy") ) end end end end ) ماحد قالك انك تستهبل ؟ وفوق كدة عندك اخطاء كمان addEventHandler ( "onClientMarkerHit", MarkerNo, 1 Link to comment
^iiEcoo'x_) Posted June 5, 2017 Share Posted June 5, 2017 أظن أكوادكم كها خطأ , صاحب الموضوع @MR.Mosa - جرب كودي فوق 1 Link to comment
</Mr.Tn6eL> Posted June 5, 2017 Share Posted June 5, 2017 @#_iMr.[E]coo احذف التحقق بسطر 4 2 Link to comment
^iiEcoo'x_) Posted June 5, 2017 Share Posted June 5, 2017 شكرا على التنبيه ^ addEvent ( 'Cl_PlaceSelected1' , true ) addEventHandler ( 'Cl_PlaceSelected1' , root , function ( ) aMarker = createMarker ( 2223.17041 , -1352.29309 , 22.98620 , 'cylinder' , 5 , 31 , 230 , 20 ) addEventHandler ( 'onClientMarkerHit' , aMarker , aMarkerFunction ) end ) function aMarkerFunction ( aPlr_ ) if ( aPlr_ == localPlayer ) then destroyElement ( aMarker ) end end 1 Link to comment
MR.Mosa Posted June 5, 2017 Author Share Posted June 5, 2017 24 minutes ago, #_iMr.[E]coo said: شكرا على التنبيه ^ addEvent ( 'Cl_PlaceSelected1' , true ) addEventHandler ( 'Cl_PlaceSelected1' , root , function ( ) aMarker = createMarker ( 2223.17041 , -1352.29309 , 22.98620 , 'cylinder' , 5 , 31 , 230 , 20 ) addEventHandler ( 'onClientMarkerHit' , aMarker , aMarkerFunction ) end ) function aMarkerFunction ( aPlr_ ) if ( aPlr_ == localPlayer ) then destroyElement ( aMarker ) end end شكرا لك و لكم جميعا Link to comment
^iiEcoo'x_) Posted June 5, 2017 Share Posted June 5, 2017 Just now, MR.Mosa said: شكرا لك و لكم جميعا اهلا بك 1 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