terreus Posted August 9, 2015 Share Posted August 9, 2015 (edited) addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end end ) تم سويت لك Edited August 9, 2015 by Guest Link to comment
; Mr.T76eM # Posted August 9, 2015 Share Posted August 9, 2015 loop = ظبط بس طلعلي مشاكل ثانيه طبعاً رح تطلع مشاكل انتم متحققين ان السيارة في قروب الكونسول وهذا اعجاز علمي Link to comment
~Mr.Hassan Posted August 9, 2015 Author Share Posted August 9, 2015 تم حل مشكله الاككونت ظلت ذي getPedOccupiedVehicle Link to comment
terreus Posted August 9, 2015 Share Posted August 9, 2015 addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end end ) تم سويت لك جرب ذذ Link to comment
~Mr.Hassan Posted August 9, 2015 Author Share Posted August 9, 2015 addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end end ) تم سويت لك جرب ذذ ')' expected (to close '(' at line 2) near 'end' unexpected symbol near ')' Link to comment
; Mr.T76eM # Posted August 9, 2015 Share Posted August 9, 2015 (edited) لم يتم التجربه addEvent("dd", true) addEventHandler("dd", root, function () for i,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (v)), aclGetGroup ("Console")) then return end local veh = getPedOccupiedVehicle ( v ) blowVehicle(veh) end end ) * Edited Edited August 9, 2015 by Guest Link to comment
~Mr.Hassan Posted August 9, 2015 Author Share Posted August 9, 2015 ذذ خربتو ام الكود انا كودي شغال بس ال local veh = getPedOccupiedVehicle ( v ) لي خربه Link to comment
terreus Posted August 9, 2015 Share Posted August 9, 2015 addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end ) كذا Link to comment
iMr.SFA7 Posted August 9, 2015 Share Posted August 9, 2015 لم يتم التجربه addEvent("dd", true) addEventHandler("dd", root, function () for i,v in ipairs (getElementsByType("vehicle")) do if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (v)), aclGetGroup ("Console")) then return end local veh = getPedOccupiedVehicle ( v ) blowVehicle(veh) end end ) سويت لوب وتحققت ان v الي هي السيارات في قروب كونسل ? نفس خطأي Link to comment
; Mr.T76eM # Posted August 9, 2015 Share Posted August 9, 2015 (edited) المفروض الوب يكون على الاعب # تم التعديل جرب الكود الي طرحته مرة ثانية الوب كان على الاعبين مو على السيارات لكن نسيت اعدلها Edited August 9, 2015 by Guest Link to comment
~Mr.Hassan Posted August 9, 2015 Author Share Posted August 9, 2015 addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end ) كذا Link to comment
; Mr.T76eM # Posted August 9, 2015 Share Posted August 9, 2015 addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end ) كذا شغل النسخ لصق ذا ما ينفع ؟ plr ? غير معرفه source ? Link to comment
terreus Posted August 9, 2015 Share Posted August 9, 2015 addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end ) كذا نسخ لصق مم ياله يا قوي سوي لنا كود شغل النسخ لصق ذا ما ينفع ؟ plr ? غير معرفه source ? Link to comment
iMr.SFA7 Posted August 9, 2015 Share Posted August 9, 2015 لم يتم التجربه addEvent("dd", true) addEventHandler("dd", root, function () for i,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (v)), aclGetGroup ("Console")) then return end local veh = getPedOccupiedVehicle ( v ) blowVehicle(veh) end end ) * Edited لازم تتحقق ان السيارة موجودة موب كل اللاعبين راح يكون عندهم سيارة اذا اللاعب ما عنده سيارة بيجي خطأ بالدي بق Link to comment
; Mr.T76eM # Posted August 9, 2015 Share Posted August 9, 2015 لم يتم التجربه addEvent("dd", true) addEventHandler("dd", root, function () for i,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (v)), aclGetGroup ("Console")) then return end local veh = getPedOccupiedVehicle ( v ) blowVehicle(veh) end end ) * Edited لازم تتحقق ان السيارة موجودة موب كل اللاعبين راح يكون عندهم سيارة اذا اللاعب ما عنده سيارة بيجي خطأ بالدي بق صح لكن المهم يرد لنا جواب اذا شغال عشان نعدل Link to comment
i S6O Posted August 9, 2015 Share Posted August 9, 2015 شكرا تمت الافادهابي كمان فنكشن\ ابي لما اعمل نافذه وكل شيئ ابي لما اضغط عا البوتون تتفجر كل سياره بل سيرفر كل سياره او كل السيارات بصيغه الجمع المهم لا تبخلو علينا عا نعمل سيرفر وعا نبرمج انا واحد العفو بالخدمه Link to comment
~Mr.Hassan Posted August 9, 2015 Author Share Posted August 9, 2015 نقدر نعمل كذا if ( getPedOccupiedVehicle(source) == false then Link to comment
iMr.SFA7 Posted August 9, 2015 Share Posted August 9, 2015 لا مو شغال اطرح كودك كامل بانشاء السيارة شكلك ما حطيت اسم السيارة بدل veh Link to comment
~Mr.Hassan Posted August 9, 2015 Author Share Posted August 9, 2015 server addEvent("dd",true) addEventHandler("dd",root, function (player) if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then local player = getPlayerFromName(player) local carss = getPedOccupiedVehicle(player) blowVehicle(carss) outputChatBox("تم تفجير سيارتك من قبل الكونسل",source,0,255,0) outputChatBox("تم تفجير سيارتك من قبل " .. getPlayerName(source),player,255,0,0) end end ) client -- GUIEditor = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(320, 206, 155, 93, "", false) guiSetAlpha(GUIEditor.button[1], 0.00) end ) function Dx() dxDrawLine(241 - 1, 148 - 1, 241 - 1, 367, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(564, 148 - 1, 241 - 1, 148 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(241 - 1, 367, 564, 367, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(564, 367, 564, 148 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(241, 148, 323, 219, tocolor(242, 239, 12, 255), false) dxDrawLine(240, 162, 561, 166, tocolor(238, 15, 15, 255), 1, false) dxDrawText("Blow all Cars Server !!", 308, 149, 492, 166, tocolor(238, 15, 15, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(323 - 1, 206 - 1, 323 - 1, 299, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(475, 206 - 1, 323 - 1, 206 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(323 - 1, 299, 475, 299, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(475, 299, 475, 206 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(323, 206, 152, 93, tocolor(40, 14, 238, 255), false) dxDrawText("Blow", 322 - 1, 205 - 1, 475 - 1, 299 - 1, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, false, true, false) dxDrawText("Blow", 322 + 1, 205 - 1, 475 + 1, 299 - 1, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, false, true, false) dxDrawText("Blow", 322 - 1, 205 + 1, 475 - 1, 299 + 1, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, false, true, false) dxDrawText("Blow", 322 + 1, 205 + 1, 475 + 1, 299 + 1, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, false, false, true, false) dxDrawText("Blow", 322, 205, 475, 299, tocolor(242, 9, 9, 255), 1.00, "default", "center", "center", false, false, false, true, false) end ----------------------------------- addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent('dd',localPlayer) end end ) ----------------------------- bindKey ( "F3", "down", function () if removeEventHandler("onClientRender",root,Dx) then removeEventHandler("onClientRender",root,Dx) showCursor(false) outputChatBox ( "The Panel Now Is Close !!", 255, 255, 255, true ) else addEventHandler("onClientRender",root,Dx) showCursor(true) outputChatBox ( "The Panel Now Is Open !!", 255, 255, 255, true ) end end) meta ==== Link to comment
i S6O Posted August 9, 2015 Share Posted August 9, 2015 # Not Tested : * Client Side : addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'dd',localPlayer ) end end ) * Server Side : addEvent ( 'dd', true ) addEventHandler ( 'dd', root, function ( player ) for i, v in ipairs ( getElementsByType ( 'vehicle' ) ) do if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( 'Console' ) ) then blowVehicle ( v , false ) outputChatBox ( ' !! لم تم تفجير سيارتك لانك كونسل', player, 255, 0, 0 ) else blowVehicle ( v , true ) outputChatBox ( 'تم تفجير سيارتك لانك لست كونسل', player, 255, 0, 0 ) end end end ) Link to comment
iMr.SFA7 Posted August 9, 2015 Share Posted August 9, 2015 addEvent("dd", true) addEventHandler("dd", root, function () for i,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (v)), aclGetGroup ("Console")) then return end local veh = getPedOccupiedVehicle ( v ) if veh then blowVehicle(veh) end end end ) Link to comment
; Mr.T76eM # Posted August 9, 2015 Share Posted August 9, 2015 # Not Tested : * Client Side : addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'dd',localPlayer ) end end ) * Server Side : addEvent ( 'dd', true ) addEventHandler ( 'dd', root, function ( player ) for i, v in ipairs ( getElementsByType ( 'vehicle' ) ) do if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( 'Console' ) ) then blowVehicle ( v , false ) outputChatBox ( ' !! لم تم تفجير سيارتك لانك كونسل', player, 255, 0, 0 ) else blowVehicle ( v , true ) outputChatBox ( 'تم تفجير سيارتك لانك لست كونسل', player, 255, 0, 0 ) end end end ) blowVehicle ( vehicle vehicleToBlow, [ bool explode=true ] ) لا يعني انها ما تنفجر false الارقمنت الثاني اذا خليته explode: if this argument is true then the vehicle will explode, otherwise it will just be blown up silently. Link to comment
i S6O Posted August 9, 2015 Share Posted August 9, 2015 addEvent("dd", true) addEventHandler("dd", root, function () for i,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (v)), aclGetGroup ("Console")) then return end local veh = getPedOccupiedVehicle ( v ) if veh then blowVehicle(veh) end end end ) . سفاح راجع الصفحه الي تحت لاهنت ترتيب الاكواد ضروري 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