Jump to content

x[ طلب كود ]x


Recommended Posts

سلام عليكم

ابي اسوي لو الشخص كتب صوت باف 8

يحطله داتا معينة ويطلعله رسالة

ولو كتبها تاني يطلع رسالة جديدة ويشيل الداتا حقت setElementData

Edited by Mr.Mostafa
Link to comment
addCommandHandler("صوت",
  function(plr)
    if ( getElementData(plr,"اسم_الداتا") == false ) then
    setElementData(plr, "اسم_الداتا",true)
    outputChatBox("Done successfuly tarned data to true",plr,0,255,0,true)
    triggerClientEvent(plr, "mySound", plr)
      else
      outputChatBox("Done successfuly tarned data to false",plr,0,255,0,true)
    setElementData(plr, "اسم_الداتا",false)
  end
end
)

----------Client
addEvent("mySound",true)
addEventHandler("mySound",root,
  function( )
playSound("اسم_الصوت.mp3")
end
)

 

Edited by #DesTroeyR
Link to comment
  On 02/06/2018 at 01:15, #DesTroeyR said:

addCommandHandler("صوت",
  function(plr)
    if ( getElementData(plr,"اسم_الداتا") == false ) then
    setElementData(plr, "اسم_الداتا",true)
    triggerClientEvent(plr, "mySound", plr)
      else
    setElementData(plr, "اسم_الداتا",false)
  end
end
)

----------Client
addEvent("mySound",true)
addEventHandler("mySound",root,
  function( )
playSound("اسم_الصوت.mp3")
end
)

 

Expand  

اشتغل اخيرا - تسلم ما قصرت 

*( شوف الخاص )*

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