Jump to content

[طلب اصلاح]x محتاج مساعده في اصلاح ذا


Recommended Posts

السلام عليكم يا اخوان

سويت كود

المهم ينزل سياره ازا كان منزل من قبل يحذف السياره الي قبل وينزل جديده 

الكود صار فيه مشكله من شوي 

بطل يرسبن سيارات وما يكتب وش الخطاء

المهم هذا الكود


	function mike(msg,type)
local PlayerMoney = getPlayerMoney(source)
		if  msg == 'ابي سياره' then
         if getElementData ( source, "destroy" ) then
            destroyElement ( getElementData ( source, "destroy"))

x = createVehicle (411,getElementPosition(source))
warpPedIntoVehicle(source,x)

            setElementData ( source, "destroy", x )
				
end
end
end

addEventHandler( "onPlayerChat", getRootElement(), mike )

 

Link to comment
	function mike(msg,type)
local PlayerMoney = getPlayerMoney(source)
		if  string.find(msg,'ابي سياره') then
      local data=getElementData ( source, "destroy")
      if data and isElement(data)then
            destroyElement (data )

x = createVehicle (411,getElementPosition(source))
warpPedIntoVehicle(source,x)

            setElementData ( source, "destroy", x )
				
end
end
end

addEventHandler( "onPlayerChat", getRootElement(), mike )

بالتوفيق

Link to comment
8 minutes ago, Master_MTA said:

	function mike(msg,type)
local PlayerMoney = getPlayerMoney(source)
		if  string.find(msg,'ابي سياره') then
      local data=getElementData ( source, "destroy")
      if data and isElement(data)then
            destroyElement (data )

x = createVehicle (411,getElementPosition(source))
warpPedIntoVehicle(source,x)

            setElementData ( source, "destroy", x )
				
end
end
end

addEventHandler( "onPlayerChat", getRootElement(), mike )

بالتوفيق

نفس المشكله يالاخو

ما ينزل

Link to comment
1 minute ago, K̷i̷n̷g̷ x̷D̷ツ said:

نفس المشكله يالاخو

ما ينزل

اسف نسيت

  1. function mike(msg,type)
  2. local PlayerMoney = getPlayerMoney(source)
  3. if string.find(msg,'ابي سياره') then
  4. local data=getElementData ( source, "destroy")
  5. if data and isElement(data)then
  6. destroyElement (data )
  7. end
  8. x = createVehicle (411,getElementPosition(source))
  9. warpPedIntoVehicle(source,x)
  10.  
  11. setElementData ( source, "destroy", x )
  12.  
  13. end
  14. end
  15.  
  16.  
  17. addEventHandler( "onPlayerChat", getRootElement(), mike )

اعذرني نسيت اغير مكان الاند @_@

Link to comment
3 minutes ago, Master_MTA said:

اسف نسيت

  1. function mike(msg,type)
  2. local PlayerMoney = getPlayerMoney(source)
  3. if string.find(msg,'ابي سياره') then
  4. local data=getElementData ( source, "destroy")
  5. if data and isElement(data)then
  6. destroyElement (data )
  7. end
  8. x = createVehicle (411,getElementPosition(source))
  9. warpPedIntoVehicle(source,x)
  10.  
  11. setElementData ( source, "destroy", x )
  12.  
  13. end
  14. end
  15.  
  16.  
  17. addEventHandler( "onPlayerChat", getRootElement(), mike )

اعذرني نسيت اغير مكان الاند @_@

شكراً يالطيب

  • Like 1
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...