αвυ-wαleed Posted January 19, 2014 Share Posted January 19, 2014 ابغى كود ماركر اذا دخلته وظغطت زر مثل التاب يسوي حركة يرقص يعني Link to comment
al-Kobra Posted January 19, 2014 Share Posted January 19, 2014 createMarker Event : 'onMarkerHit' bindKey setPedAnimation Link to comment
αвυ-wαleed Posted January 19, 2014 Author Share Posted January 19, 2014 ابغى جاهزز + اذا ضغط الزر الحركة تجي مرة بس وتوقف Link to comment
al-Kobra Posted January 19, 2014 Share Posted January 19, 2014 local Marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler( "onMarkerHit", Marker, function animation ( hitElement ) if getElementType ( hitElement ) == "source" then setTimer ( setPedAnimation, 3*1000, 1, hitElement, "DANCING", "اسم الرقصة" ) end end ) bindKey ( hitElement, "tab", "down", animation ) جربه Link to comment
jafar Posted January 19, 2014 Share Posted January 19, 2014 onMarkerHit isElementWithinMarker Link to comment
al-Kobra Posted January 19, 2014 Share Posted January 19, 2014 onMarkerHitisElementWithinMarker local Marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) function animation ( ) if isElementWithinMarker( source, Marker ) then setTimer ( setPedAnimation, 3*1000, 1, source, "DANCING", "اسم الرقصة" ) end end bindKey ( source, "tab", "down", animation ) كذا ؟؟ Link to comment
The Killer Posted January 19, 2014 Share Posted January 19, 2014 local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) bindKey ( "tab", "down", function ( ) if isElementWithinMarker( source, marker ) then setAnim (source, "DANCE", "The dance") end end ) function setAnim (player, group, anim) setPedAnimation(player, group, anim) setTimer (setPedAnimation, 5000, 1, player, false) end بدل 'The dance' بأسم الرقصه الي تبيها !! Link to comment
#DRAGON!FIRE Posted January 19, 2014 Share Posted January 19, 2014 local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) bindKey ( "tab", "down", function ( ) if isElementWithinMarker( source, marker ) then setAnim (source, "DANCE", "The dance") end end ) function setAnim (player, group, anim) setPedAnimation(player, group, anim) setTimer (setPedAnimation, 5000, 1, player, false) end بدل 'The dance' بأسم الرقصه الي تبيها !! bindKey ناقص ارقمنت ... Link to comment
#DRAGON!FIRE Posted January 19, 2014 Share Posted January 19, 2014 ججرب : local marker = createMarker(x, y, z, "cylinder", 2, 255, 0, 0) addEventHandler( "onResourceStart", resourceRoot, function ( ) for _,plrs in ipairs( getElementsByType("player") ) do bindKey( plrs, "tab", "Down", Animation) end end ) addEventHandler( "onPlayerJoin", root, function ( ) bindKey( source, "tab", "Down", Animation) end ) function setAnim (player, group, anim) setPedAnimation(player, group, anim) setTimer ( setPedAnimation, 5000, 1, player, false ) end function Animation ( plr ) if isElementWithinMarker( plr, marker ) then setAnim ( plr, "DANCE", "The dance" ) end end Link to comment
αвυ-wαleed Posted January 19, 2014 Author Share Posted January 19, 2014 (edited) local marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) addEventHandler( "onResourceStart", resourceRoot, function ( ) for _,plrs in ipairs( getElementsByType("player") ) do bindKey( plrs, "tab", "Down", EAT_Burger) end end ) addEventHandler( "onPlayerJoin", root, function ( ) bindKey( source, "tab", "Down", EAT_Burger) end ) function setAnim (player, group, anim) setPedAnimation(player, group, anim) setTimer ( setPedAnimation, 5000, 1, player, false ) end function Animation ( plr ) if isElementWithinMarker( plr, marker ) then setAnim ( plr, "DANCE", "EAT_Burger" ) end end جربت اش الخذا Edited January 20, 2014 by Guest Link to comment
αвυ-wαleed Posted January 20, 2014 Author Share Posted January 20, 2014 (edited) ..... وين الرد Edited January 20, 2014 by Guest Link to comment
</Mr.Tn6eL> Posted January 20, 2014 Share Posted January 20, 2014 لم تتم التجربه Marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) function Anim () setPedAnimation ( source, "DANCING", "dnce_m_b") end addEventHandler( "onMarkerHit", Marker, function ( player ) if getElementType ( player ) == "source" then bindKey( player, "tab", "down", Anim) end end) addEventHandler( "onMarkerLeave ", Marker, function ( player ) unbindKey( player, "tab", "down", Anim) end) Link to comment
AboShanab Posted January 20, 2014 Share Posted January 20, 2014 (edited) -- # Server Side # -- local marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) addEventHandler( "onResourceStart", resourceRoot, function ( ) for _,plrs in ipairs( getElementsByType("player") ) do bindKey( plrs, "tab", "down", Animation) end end) addEventHandler( "onPlayerJoin", root, function ( ) bindKey( source, "tab", "down", Animation) end) function Animation ( plr ) if isElementWithinMarker( plr, marker ) then setPedAnimation(plr, "DANCE", "EAT_Burger") end end Edited January 20, 2014 by Guest Link to comment
AboShanab Posted January 20, 2014 Share Posted January 20, 2014 لم تتم التجربه Marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) function Anim () setPedAnimation ( source, "DANCING", "dnce_m_b") end addEventHandler( "onMarkerHit", Marker, function ( player ) if getElementType ( player ) == "source" then bindKey( player, "tab", "down", Anim) end end) addEventHandler( "onMarkerLeave ", Marker, function ( player ) unbindKey( player, "tab", "down", Anim) end) هريسةةة بعدين بسالكـ if getElementType ( player ) == "source" then على اي اساس انت حطيتها source ?? شوف الويكي وش يقول An element is a generic class that can represent almost all in-game entities. The built-in element types are:Player Ped Vehicle Object Pickup Marker Collision shape Blip Radar area Projectile Team Server console GUI widgets: Button Checkbox Combobox Edit field Gridlist Memo Progress bar Radio button Scrollbar Scrollpane Static image Tab panel Tab Text label Window TXD DFF COL Sound Material Texture Shader DX font GUI font Weapon لازم انه يتضمن ذول source مو منهم Link to comment
αвυ-wαleed Posted January 20, 2014 Author Share Posted January 20, 2014 ابو شنب الكود ما اشتغل Link to comment
AboShanab Posted January 20, 2014 Share Posted January 20, 2014 ابو شنب الكود ما اشتغل متاكد انه ملف سيرفر ؟ وش الخطا اللي يجي بالدي بق ؟ Link to comment
αвυ-wαleed Posted January 20, 2014 Author Share Posted January 20, 2014 مافي أي خطا لكن اروح الماركر اضغط تاب مايسوي الحركة Link to comment
αвυ-wαleed Posted January 20, 2014 Author Share Posted January 20, 2014 كمان ما اشتغل يبو شنب Link to comment
AboShanab Posted January 20, 2014 Share Posted January 20, 2014 اكيد في شي مخرب عندك بملف سيرفر اطرح ملف سيرفر # Link to comment
αвυ-wαleed Posted January 20, 2014 Author Share Posted January 20, 2014 هذا ملف السيرفر local marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) addEventHandler( "onResourceStart", resourceRoot, function ( ) for _,plrs in ipairs( getElementsByType("player") ) do bindKey( plrs, "tab", "down", Animation) end end) addEventHandler( "onPlayerJoin", root, function ( ) bindKey( source, "tab", "down", Animation) end) function Animation ( plr ) if isElementWithinMarker( plr, marker ) then setPedAnimation(plr, "DANCE", "EAT_Burger") end end وهذا الميتا author="ABU-WALEED" name="aaaa" type="script" version="1" /> Link to comment
jafar Posted January 20, 2014 Share Posted January 20, 2014 (edited) -- # Server Side # -- local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, p in ipairs( getElementsByType ( "player" ) ) do bindKey ( plrs, "tab", "down", Animation ); end end ); addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "tab", "down", Animation ); end ); function Animation ( plr ) if isElementWithinMarker ( plr, marker ) then setPedAnimation ( plr, "FOOD", "EAT_Burger" ); end end Edited January 20, 2014 by Guest Link to comment
αвυ-wαleed Posted January 20, 2014 Author Share Posted January 20, 2014 مشكور جعفر صلح يا خوي باقي حاجة ابغاه يسوي الحركة مرة وحده ويوقف 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