-
Posts
570 -
Joined
-
Last visited
Everything posted by z24d
-
طلعتلي لوحة بدون ازرار\\ وشلون استخدم الديبق
-
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(336, 137, 402, 480, "VIP Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(10, 446, 156, 30, "Created By #Monster", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-small") guiLabelSetColor(GUIEditor.label[1], 254, 0, 0) Vbtn = guiCreateButton(23, 72, 126, 49, "CreateVehicle", false, GUIEditor.window[1]) guiSetProperty(Vbtn, "NormalTextColour", "FFAAAAAA") Dmg = guiCreateButton(251, 72, 126, 49, "No Vehicle Dmg", false, GUIEditor.window[1]) guiSetProperty(Dmg, "NormalTextColour", "FFAAAAAA") Weapon = guiCreateButton(23, 178, 126, 49, "VIP Weapons", false, GUIEditor.window[1]) guiSetProperty(Weapon, "NormalTextColour", "FFAAAAAA") Stats = guiCreateButton(251, 178, 126, 49, "VIP Stats", false, GUIEditor.window[1]) guiSetProperty(Stats, "NormalTextColour", "FFAAAAAA") Skin = guiCreateButton(23, 281, 126, 49, "VIP Skin", false, GUIEditor.window[1]) guiSetProperty(Skin, "NormalTextColour", "FFAAAAAA") Health = guiCreateButton(251, 281, 126, 49, "VIP Health / Armor", false, GUIEditor.window[1]) guiSetProperty(Health, "NormalTextColour", "FFAAAAAA") Close = guiCreateButton(40, 361, 317, 49, "Close VIP Panel ", false, GUIEditor.window[1]) guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Vbtn ) then triggerServerEvent ( "GiveCar", localPlayer ) end end )
-
الله يعطيك العافية يخوي بس الوحة ماتطلع يعني اضغط اف5 ماتطلع الوحة
-
والله حتى انا حست نفسي ابغا فنكش اذا ضغط زر يخلي السياره اذا صدمت ماتتدمج واذا ضغط مره ثانية يخليها تتدمج
-
طيب اخوي addEventHandler("onVehicleDamage" , getRootElement(), function() cancelEvent() end) اخوي بغيت الكود يخلي السيارة مايجيها دامج اذا صدم او صارلة شيء! ماضبط
-
server local Vehicle = { }; addEvent ( "GiveCar", true ) addEventHandler ( "GiveCar", root, function ( ) if ( isElement ( Vehicle[source] ) ) then destroyElement ( Vehicle[source] ) else local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( 411, x, y, z ) addVehicleUpgrade ( Vehicle[source], 1074 ) addVehicleUpgrade ( Vehicle[source], 1087 ) addVehicleUpgrade ( Vehicle[source], 1010 ) outputChatBox("Welcome To The Car", source, 255, 255, 0) warpPedIntoVehicle ( source, Vehicle[source] ) end end ) addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) if ( isElement ( Vehicle[source] ) ) then destroyElement ( Vehicle[source] ) Vehicle[source] = nil end end ) addEventHandler ( "onPlayerQuit", resourceRoot, function ( ) if ( isElement ( Vehicle[source] ) ) then destroyElement ( Vehicle[source] ) Vehicle[source] = nil end end ) client addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(336, 137, 402, 480, "VIP Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(10, 446, 156, 30, "Created By #Monster", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-small") guiLabelSetColor(GUIEditor.label[1], 254, 0, 0) Vbtn = guiCreateButton(23, 72, 126, 49, "CreateVehicle", false, GUIEditor.window[1]) guiSetProperty(Vbtn, "NormalTextColour", "FFAAAAAA") Dmg = guiCreateButton(251, 72, 126, 49, "No Vehicle Dmg", false, GUIEditor.window[1]) guiSetProperty(Dmg, "NormalTextColour", "FFAAAAAA") Weapon = guiCreateButton(23, 178, 126, 49, "VIP Weapons", false, GUIEditor.window[1]) guiSetProperty(Weapon, "NormalTextColour", "FFAAAAAA") Stats = guiCreateButton(251, 178, 126, 49, "VIP Stats", false, GUIEditor.window[1]) guiSetProperty(Stats, "NormalTextColour", "FFAAAAAA") Skin = guiCreateButton(23, 281, 126, 49, "VIP Skin", false, GUIEditor.window[1]) guiSetProperty(Skin, "NormalTextColour", "FFAAAAAA") Health = guiCreateButton(251, 281, 126, 49, "VIP Health / Armor", false, GUIEditor.window[1]) guiSetProperty(Health, "NormalTextColour", "FFAAAAAA") Close = guiCreateButton(40, 361, 317, 49, "Close VIP Panel ", false, GUIEditor.window[1]) guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") end ) bindKey ( "F5", "down", function ( ) \ guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Vbtn ) then triggerServerEvent ( "GiveCar", localPlayer ) end end ) وبغيت فنكشات اذا صدم مايجيه شيء ..
-
السلام عليكم ورحمة الله وبركاتة اليوم بالسيرفر عطيت واحد ميوت ثانيه!! ولا انفك اول اتذكر سويت حركة وخليتة ينفك لحاله لاكن الحين ماينفك لحاله وش المشكلة ابي شرح شلون اخلية ينفك من الكونسل نفسة
-
السلام عليكم ورحمة الله وبركاتة هذا الكود اذا جا عند الماركر وماهو كونسل مايفتح واذا طلع من الماركر يكتب بالشات الكونسل طلع من الماركر ! وش الغلط طيب ؟ local x1, y1, z1 = 1275.3000488281 , -783.79998779297 , 1091.6999511719 local x2, y2, z2 = 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 removeEventHandler ( "onMarkerLeave", root, markergo ) 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( x1, y1 ,z1 ),math.random( x2, y2, z2 ) ) 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 )
-
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^ الزبدة حطيت حركتين للفتح ماضبطت ض
-
طيب شف ماضبط 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 )
-
محترف جابك الله اسمع انا سويت ماركر جوا البيت وضيفتة يوخر الابجكت وماجاني الابجكت اساساًً بالبيت ! الكود local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end 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 ) end end ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) local myObjects = createObject ( 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) function MarkerHit ( player ) outputChatBox( "*Console Has Been Opened the Gate", player, 254, 120, 0,false) if ( getElementType ( player ) == "player" ) and ( source == gatemarker ) then if ( isPedInVehicle ( player ) ) then return end moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end addEventHandler ( "onMarkerHit" , MarkerHit )
-
[01:20:08] SCRIPT ERROR: sasa\server.lua:30: unexpected symbol near ',' [01:20:08] ERROR: Loading script failed: sasa\server.lua:30: unexpected symbol near ',' بالكونسل
-
الله يعطيك العافية ماقصرت ^^ انا زودت كم شيء يعني عل مود انو تفتحلي بوابة وانا بالقصر يعني اخش الماركر يسوي موف اوبجكت لاكن ماضبط ! local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end 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 ) end end ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) local myObjects = createObject (, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) function MarkerHit ( player ) outputChatBox( "*Console Has Been Opened the Gate", player, 254, 120, 0,false) if ( getElementType ( player ) == "player" ) and ( source == gatemarker ) then if ( isPedInVehicle ( player ) ) then return end moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end addEventHandler ( "onMarkerHit" , MarkerHit )
-
local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) function () setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) end
-
local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) بقي ماطلعلي الماركر بالانتيريور
