Jump to content

شو المشكلة


Recommended Posts

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
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
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 by Killer Project
  • Like 1
Link to comment
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
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
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
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
)

 

  • Like 1
Link to comment
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 ??????? !!

  • Like 2
Link to comment
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,

 

  • Like 1
Link to comment

شكرا على التنبيه ^

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 

 

  • Like 1
Link to comment
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

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...