#kAsR Posted July 3, 2016 Share Posted July 3, 2016 (edited) سلام عليكم ورحمة الله وبركاته هل يوجد حدث عند اللاعب يتحرك ؟ او في طريقة اسوي يوم اللاعب يتحرك يصير شيء ؟؟ Edited July 3, 2016 by Guest Link to comment
!#NssoR_) Posted July 3, 2016 Share Posted July 3, 2016 function isElementMoving ( theElement ) if isElement ( theElement ) then local x, y, z = getElementVelocity( theElement ) return x ~= 0 or y ~= 0 or z ~= 0 end return false end مثال من الويكي local screenWidth, screenHeight = guiGetScreenSize () -- Get the screen resolution (width and height) function idleCheck () local state = "Unknown" local element = getPedOccupiedVehicle ( localPlayer ) or localPlayer -- Check whether the player is moving or not. if isElementMoving ( element ) then state = "moving" else state = "idling" end -- Write our state string to the lower left corner of the screen dxDrawText ( "You are " .. state .. "!", 40, screenHeight - 40, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default" ) end -- Keep the text visible with onClientRender. addEventHandler ( "onClientRender", root, idleCheck ) Link to comment
#kAsR Posted July 3, 2016 Author Share Posted July 3, 2016 يعطيك العافيه , تمت الافادة Link to comment
!#NssoR_) Posted July 3, 2016 Share Posted July 3, 2016 يعطيك العافيه , تمت الافادة الله يعافيك يالذيب 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