S4MuEL Posted May 26, 2013 Share Posted May 26, 2013 ي شبآب وش آلخطأ ههنآ , آبي إذآ لمست مآركر .. يودني انتريور رقمهة 17 .. local marker = createMarker ( ......) addEventHandler("onMarkerHit", marker, function(player) if ( getElementType(player)==("player")) then setElementInterior(player,17) setElementDimension(player,0) end end ) Link to comment
PaiN^ Posted May 26, 2013 Share Posted May 26, 2013 server ! local marker = createMarker ( ...... ) addEventHandler( 'onMarkerHit', marker, function( player ) if getElementType( player ) == 'player' then setElementInterior( player, 17 ) setElementDimension( player, 0 ) end end ) Link to comment
S4MuEL Posted May 26, 2013 Author Share Posted May 26, 2013 نففس آلشي مآ ظظبط , وش آلفرقق بين كودي وكودكـ بآلله ؟ ! Link to comment
PaiN^ Posted May 26, 2013 Share Posted May 26, 2013 كان عندك أقواس مالها داعي ذذ الماركر في أي إنتيريور ؟ في أخطاء بالديبج ؟ + إطرح الميتا Link to comment
S4MuEL Posted May 26, 2013 Author Share Posted May 26, 2013 آلمآركر برآ .. مو بألأنتريور .. آلميتآ , ذذ [b]> author="Samuel" version="1.1" type="script" name = "ZzZ"/> ="Script.lua" type="server" /> >[/b] Link to comment
кιηg-αвα∂у Posted May 26, 2013 Share Posted May 26, 2013 اذا كان الاعب في عالم 0 مايحتاج تحط هذي setElementDimension( player, 0 ) جرب بدون تغير العالم -- server side local marker = createMarker ( ......) addEventHandler("onMarkerHit", marker, function( playerHit ) if ( getElementType( playerHit ) == ( "player" ) ) then setElementInterior( playerHit, 17 ) end end ) اذا ماضبط debugscript 3 Link to comment
PaiN^ Posted May 26, 2013 Share Posted May 26, 2013 > author="Samuel" version="1.1" type="script" name="ZzZ"/> ="Script.lua" type="server" />> Link to comment
S4MuEL Posted May 26, 2013 Author Share Posted May 26, 2013 جربتهآ بدون آلـ dimension آول , مآ ظبطت ولآ طريققةة .. + آلديبوقق مآ يقول شي ! Link to comment
PaiN^ Posted May 26, 2013 Share Posted May 26, 2013 عدلت الميتا و سويت ريفريش ؟ + متأكد من إسم الملف ؟ Link to comment
кιηg-αвα∂у Posted May 26, 2013 Share Posted May 26, 2013 local marker = createMarker ( ......) addEventHandler("onClientMarkerHit", marker, function( playerHit ) if ( getElementType( playerHit ) == ( "player" ) ) then setElementInterior( playerHit, 17 ) end end ) "Samuel" version="1.1" type="script" name = "ZzZ"/> Link to comment
iPrestege Posted May 26, 2013 Share Posted May 26, 2013 المشكلة انة يوم تلمسة بس يوديك تراهـ مايحطك باحداثيات ! Link to comment
PaiN^ Posted May 26, 2013 Share Posted May 26, 2013 ؟ ! الأكواد صحيحة كلها أكيد إسم الملف غلط أو إنك حاطه داخل مجلد + وش اللي ما يشتغل بالضبط ؟ Link to comment
][sojn][ Posted May 26, 2013 Share Posted May 26, 2013 local Doorentry = createMarker( 1477.6306152344, -1617.5650634766, 14.039297103882, "cylinder", 2, 255, 255, 255, 150 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then setElementInterior(player,17) setElementPosition ( player, posX, posY, posZ ) setElementDimension(player,0) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore ) Link to comment
AhmeD~9MoD Posted May 26, 2013 Share Posted May 26, 2013 Client Side -- addEventHandler ( "onClientMarkerHit", Marker-Name, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then setElementInterior( hitPlayer, 17 ) setElementPosition ( hitPlayer, x, y, z ) end end,false ) بدل Marker-Name بأسم الماركر + احداثيات اللاعب داخل الانتيرور x , y , z + meta -- "Samuel" version="1.0" type="script" name = "Marker"/> وشكراً Link to comment
AhmeD~9MoD Posted May 26, 2013 Share Posted May 26, 2013 local Doorentry = createMarker( 1477.6306152344, -1617.5650634766, 14.039297103882, "cylinder", 2, 255, 255, 255, 150 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then setElementInterior(player,17) setElementPosition ( player, posX, posY, posZ ) setElementDimension(player,0) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore ) setElementDimension(player,0) ?? مالها داعي , خله يشوف كودي اتوقع شغال Link to comment
][sojn][ Posted May 26, 2013 Share Posted May 26, 2013 local Doorentry = createMarker( 1477.6306152344, -1617.5650634766, 14.039297103882, "cylinder", 2, 255, 255, 255, 150 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then setElementInterior(player,17) setElementPosition ( player, posX, posY, posZ ) setElementDimension(player,0) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore ) setElementDimension(player,0) ?? مالها داعي , خله يشوف كودي اتوقع شغال لا تسوي فاهم زياده هو يبيه كذا Link to comment
][sojn][ Posted May 26, 2013 Share Posted May 26, 2013 Client Side -- addEventHandler ( "onClientMarkerHit", Marker-Name, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then setElementInterior( hitPlayer, 17 ) setElementPosition ( hitPlayer, x, y, z ) end end,false ) بدل Marker-Name بأسم الماركر + احداثيات اللاعب داخل الانتيرور x , y , z + meta -- "Samuel" version="1.0" type="script" name = "Marker"/> وشكراً ما غيرت شيء كل الي فوقك نفس الشيء 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