z24d Posted July 30, 2015 Posted July 30, 2015 السلام عليكم local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) وش اسوي عشان اكنسل الحدث اذا كان مو كونسل لاحدد يعدل علكود ابي اعرف وش الفنكشات وايش احتاج بس
z24d Posted July 30, 2015 Author Posted July 30, 2015 خلاص سوي تحقق وسوي اذا مو كونسول else -- your code طيب شف ماضبط local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) local myObjects = createObject ( 980, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then else outputChatBox ( "*You Are Not Console !!", player, 255, 0, 0, true ) cancelEvent() if ( getElementType ( player ) == "player" ) then if ( isPedInVehicle ( player ) ) then return end if ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) elseif ( source == newmarker ) then setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player, 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) elseif ( source == gatemarker ) then outputChatBox( "*Console Has Been Opened the Gate", root, 254, 120, 0,false) moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end end end ) function markergo( leaveElement , matchingDimension ) if getElementType( leaveElement ) == "player" then outputChatBox ( "Player has left a marker", getRootElement(), 255, 255, 0 ) moveObject ( myObjects, 3000, 1283.1999511719, -783.79998779297, 1091.6999511719 ) end end addEventHandler( "onMarkerLeave", gatemarker, markergo )
#DRAGON!FIRE Posted July 30, 2015 Posted July 30, 2015 ليه ما تكمل بموضوعكـ ؟؟ ! local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) local myObjects = createObject ( 980, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) then if ( isPedInVehicle ( player ) ) then return end if ( getPlayerAccount ( player ) and not isGuestAccount ( getPlayerAccount ( player ) ) ) then if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup( "Console" ) ) ) then return outputChatBox ( "*You Are Not Console !!", player, 255, 0, 0, true ) end if ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) elseif ( source == newmarker ) then setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player, 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) elseif ( source == gatemarker ) then outputChatBox( "*Console Has Been Opened the Gate", root, 254, 120, 0, false ) moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end end end ) addEventHandler ( "onMarkerLeave", resourceRoot, function ( player ) if ( source == gatemarker ) then if ( getElementType ( player ) == "player" ) then outputChatBox ( "Player has left a marker", root, 255, 255, 0 ) moveObject ( myObjects, 3000, 1283.1999511719, -783.79998779297, 1091.6999511719 ) end end end )
z24d Posted July 30, 2015 Author Posted July 30, 2015 ليه ما تكمل بموضوعكـ ؟؟ ! local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) local myObjects = createObject ( 980, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) then if ( isPedInVehicle ( player ) ) then return end if ( getPlayerAccount ( player ) and not isGuestAccount ( getPlayerAccount ( player ) ) ) then if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup( "Console" ) ) ) then return outputChatBox ( "*You Are Not Console !!", player, 255, 0, 0, true ) end if ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) elseif ( source == newmarker ) then setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player, 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) elseif ( source == gatemarker ) then outputChatBox( "*Console Has Been Opened the Gate", root, 254, 120, 0, false ) moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end end end ) addEventHandler ( "onMarkerLeave", resourceRoot, function ( player ) if ( source == gatemarker ) then if ( getElementType ( player ) == "player" ) then outputChatBox ( "Player has left a marker", root, 255, 255, 0 ) moveObject ( myObjects, 3000, 1283.1999511719, -783.79998779297, 1091.6999511719 ) end end end ) ماودي ازود طلباتي عليك ض
z24d Posted July 30, 2015 Author Posted July 30, 2015 local sa = 1275.3000488281 , -783.79998779297 , 1091.6999511719 local se = 1282.4000244141 , -784.5 , 1091.6999511719 , 0 , 0 , 100 local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) local gatemarker = createMarker ( 1282.47302, -783.39587, 1089.93750 ,"corona", 1.2, 254, 120, 0, 0 ) local myObjects = createObject ( 980, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getPlayerAccount ( player ) and not isGuestAccount ( getPlayerAccount ( player ) ) ) then if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup( "Console" ) ) ) then return exports ["guimessages"] : outputServer (player, "*Your Not Console !!" , math.random(255), math.random(255), math.random(255)) end if ( getElementType ( player ) == "player" ) then if ( isPedInVehicle ( player ) ) then return end if ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) elseif ( source == newmarker ) then setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player, 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) elseif ( source == gatemarker ) then outputChatBox( "*Console Has Been Opened the Gate", root, 254, 120, 0,false) moveObject ( myObjects, 300, math.random(sa,se) ) end end end end ) function markergo( leaveElement , matchingDimension ) if getElementType( leaveElement ) == "player" then exports ["guimessages"] : outputServer (root, "*Console Left The Marker" , math.random(255), math.random(255), math.random(255)) moveObject ( myObjects, 3000, 1283.1999511719, -783.79998779297, 1091.6999511719 ) end end addEventHandler( "onMarkerLeave", gatemarker, markergo ) [08:37:48] WARNING: sasa\server.lua:35: Bad argument @ 'moveObject' [Expected number at argument 4, got none] Debug^ الزبدة حطيت حركتين للفتح ماضبطت ض
#DRAGON!FIRE Posted July 30, 2015 Posted July 30, 2015 ليه تعدل الاكواد .. ! فقط x المهم انه بسطر 35 انت حاط ارقمنت ناقص y, z math.random ( ... ), math.random ( ... ), math.random ( ... )
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