Jump to content

فنكشن


Recommended Posts

Posted (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 
) 

تم سويت لك :mrgreen:

Edited by Guest
  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted
1439150974541.png

loop = ظبط

بس طلعلي مشاكل ثانيه

طبعاً رح تطلع مشاكل

انتم متحققين ان السيارة في قروب الكونسول وهذا اعجاز علمي

Posted
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 
) 

تم سويت لك :mrgreen:

جرب ذذ

Posted
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 
) 

تم سويت لك :mrgreen:

جرب ذذ

')' expected (to close '(' at line 2) near 'end'

unexpected symbol near ')'

Posted (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 by Guest
Posted
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 
) 

كذا

Posted
لم يتم التجربه
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

الي هي السيارات في قروب كونسل ?

نفس خطأي :lol:

Posted (edited)

المفروض الوب يكون على الاعب #

تم التعديل

جرب الكود الي طرحته مرة ثانية الوب كان على الاعبين مو على السيارات لكن نسيت اعدلها

Edited by Guest
Posted
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 
) 

كذا

143915171341.png

Posted
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 ?

Posted
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 ?

Posted
لم يتم التجربه
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

لازم تتحقق ان السيارة موجودة

موب كل اللاعبين راح يكون عندهم سيارة

اذا اللاعب ما عنده سيارة بيجي خطأ بالدي بق

Posted
لم يتم التجربه
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

لازم تتحقق ان السيارة موجودة

موب كل اللاعبين راح يكون عندهم سيارة

اذا اللاعب ما عنده سيارة بيجي خطأ بالدي بق

صح :)

لكن المهم يرد لنا جواب اذا شغال عشان نعدل :P

Posted
شكرا تمت الافاده

ابي كمان فنكشن\

ابي لما اعمل نافذه وكل شيئ ابي لما اضغط عا البوتون تتفجر كل سياره بل سيرفر كل سياره

او كل السيارات بصيغه الجمع

المهم لا تبخلو علينا عا نعمل سيرفر وعا نبرمج انا واحد

العفو بالخدمه

Posted

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 ====


Posted
# 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 
) 
Posted
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 ) 
  
  

Posted
# 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.

Posted
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 ) 

. سفاح راجع الصفحه الي تحت لاهنت

ترتيب الاكواد ضروري

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...