Jump to content

تصحيح كودد


Recommended Posts

Posted

السسلام عليكم ورحمةة الله وبركاتهه

اخواني انا حاولت اسوي كود فيه احداثيات ماركر ولمن يدخل اللاعب الماركر ذاا يصير الوقت عند اللاعب نفسهه 4:0 مثلا وتشتغل عندهـ نغممةة اسلحةة

هذا الكود

  
function marker () 
      local theMarker = createMarker ( -2324.98828 + 2, 1838.19922 + 2, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) 
      local sound = playSound3D("i.wav",true) 
        setTime ( 4, 0 ) 
  
end 
addEventHandler("onClientMarkerHit", getRootElement(), marker) 
  

بس مو شغال

:(

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted

شل كود انشاء الماركر من الفنكشن

+

انت ماحطيت احداثيات حقت الصوت

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted (edited)

جرب هذا

--Client

      
    function createMarker (thePlayer) 
          local x, y, z = getElementPosition ( thePlayer ) 
          local theMarker = createMarker ( x +2, y +2, z "cylinder", 1000, 255, 255, 0, 170 ) 
          local sound = playSound3D("i.wav",true) 
          setTime ( 4, 0 ) 
      
    end 
    addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) 

Edited by Guest

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
جرب هذا

--Client

      
    function createMarker () 
          local theMarker = createMarker ( -2324.98828 + 2, 1838.19922 + 2, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) 
          local sound = playSound3D("i.wav",true) 
          setTime ( 4, 0 ) 
      
    end 
    addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) 

خطأ.

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted

انا ابي لمن يدخل الماركر يصير الصوت عندهـ يعني الماركر كله من الصوت والوقت ذا

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted

!!!! يعني مستحيل اني احط احداثيات الاماكن كلها .... في الجزيرة

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted
جرب هذا

--Client

      
    function createMarker (thePlayer) 
          local x, y, z = getElementPosition ( thePlayer ) 
          local theMarker = createMarker ( x +2, y +2, z  "cylinder", 1000, 255, 255, 0, 170 ) 
          local sound = playSound3D("i.wav",true) 
          setTime ( 4, 0 ) 
      
    end 
    addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) 

سويتله edit

جربه

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
جرب هذا
  

--Client

      
    function createMarker (thePlayer) 
          local x, y, z = getElementPosition ( thePlayer ) 
          local theMarker = createMarker ([color=#FF0000] x +2, y +2, z[/color]  "cylinder", 1000, 255, 255, 0, 170 ) 
          local sound = playSound3D("i.wav",true) 
          setTime ( 4, 0 ) 
      
    end 
    addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) 

سويتله edit

جربه

كذا

  
    function createMarker (thePlayer) 
          local x, y, z = getElementPosition ( thePlayer ) 
          local theMarker = createMarker ( -2324.98828 +2, 1838.19922 +2, 11.14753  "cylinder", 1000, 255, 255, 0, 170 ) 
          local sound = playSound3D("i.wav",true) 
          setTime ( 4, 0 ) 
      
    end 
    addEventHandler("onClientMarkerHit", getLocalPlayer, createMarker) 

؟؟؟

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted
marker = createMarker(..) 
addEventHanlder("onClientMarkerHit",marker, 
function() 
sound = playSound3D(..) 
setTime(..) 
end) 

It's Handler not Hanlder -.-

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
  
createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) 
playSound3D ( "i.wav", -2326, 1839, 11.14753, true ) 
       
addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ),  
    function ( ) 
        setTime ( 4, 0 ) 
    end 
) 
  

Posted
marker = createMarker(..) 
addEventHanlder("onClientMarkerHit",marker, 
function() 
sound = playSound3D(..) 
setTime(..) 
end) 

It's Handler not Hanlder -.-

ادري بس انا كتبت مستعجل و ما شفت الرد

#~BlackBird~#

Posted
  
createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) 
playSound3D ( "i.wav", -2326, 1839, 11.14753, true ) 
       
addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ),  
    function ( ) 
        setTime ( 4, 0 ) 
    end 
) 
  

يعني ذا الكود يخلي لمن الشخص يدخل الماركر يسمع الصوت طول ماهو في الماركر ؟؟ ولا احداثيات ... انا ابي لمن يدخل اللاعب يجيه الصوت ولمن يطلع يروح الصوت

ولمن يدخل يصير الوقت عنده 4:0

اتمنى اللي فادوني يفهموني =]

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted
marker = createMarker( ... ) 
addEventHandler('onClientMarkerHit',marker, 
function() 
sound = playSound( .. ) 
setTime(4,00) 
end) 
addEventHandler('onClientMarkerLeave',marker, 
function() 
stopSound(sound) 
end) 

#~BlackBird~#

Posted
شل كود انشاء الماركر من الفنكشن

+

انت ماحطيت احداثيات حقت الصوت

الاعتماد على النفس خير وسيله للنجاح

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted
شل كود انشاء الماركر من الفنكشن

+

انت ماحطيت احداثيات حقت الصوت

الاعتماد على النفس خير وسيله للنجاح

انا فاهمك اخوي طلعت الماركر من الوظيفهه بس اخوي انا مابي الصوت عند احداثيات محدده ابي من يدخل الماركر ويمشي فيها وهو يسمع الصوت

ويصير الوقت عندهـ هو فقطط 4:0

يعني مو بس عند بدايه الماركر ولا عند احداثي محدد =]

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted

طيب إستخدم

playSound

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted
createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) 
  
    local sound = playSound("i.wav")  
    setSoundVolume(sound, 0.5) 
       
addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ),  
    function ( ) 
        setTime ( 4, 0 ) 
    end 
) 

???????؟؟؟؟؟

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted
createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) 
  
    local sound = playSound("i.wav")  
    setSoundVolume(sound, 0.5) 
       
addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ),  
    function ( ) 
        setTime ( 4, 0 ) 
    end 
) 

???????؟؟؟؟؟

Stop Sound ?

  

Posted
marker = createMarker( ... ) 
addEventHandler('onClientMarkerHit',marker, 
function() 
sound = playSound( .. ) 
setTime(4,00) 
end) 
addEventHandler('onClientMarkerLeave',marker, 
function() 
stopSound(sound) 
end) 

#~BlackBird~#

Posted
marker = createMarker( 2133.59,-1149.29, 23.3, "cylinder", 3, 255, 0, 0, 127 ) 
addEventHandler('onClientMarkerHit',marker, 
function() 
sound = playSound( i.wav ) 
setTime(4,00) 
end) 
addEventHandler('onClientMarkerLeave',marker, 
function() 
stopSound(sound) 
end) 

؟؟

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted

مو شغال

الماركر موجود لكن الـ وقت مايتغير + مافي نغمةة

meta.xml

  
    "Island!" author="TD[M]ER" version="v.1" /> 
     
    
    "6ARAT.map" dimension="0">

  

visit server x[ Q.5 ]x Drift & zombies & war

350x20.png

we have a chance for change ...

let's try something new =D

2yl0do6.png
27y64bt.png
Posted
مو شغال

الماركر موجود لكن الـ وقت مايتغير + مافي نغمةة

meta.xml

  
    "Island!" author="TD[M]ER" version="v.1" /> 
     
    
    "6ARAT.map" dimension="0">

  

ما تشتغل wav اتوقع صيغه

#~BlackBird~#

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