Jump to content

فنكشن


Recommended Posts

Posted (edited)

السلام عليكم

ابي فنكشن

مثال عندي ام 4 ابي ابدله بام 4 انا اجيبه من الانترنت ممكن بالله محتاجهم باسرع وقت

وشكرا ..

Edited by Guest
  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

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

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

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

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

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

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

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

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

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

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

لا تزود مشاركات سوي طلباتك في موضوع واحد :|

Posted (edited)
addEventHandler('onClientGUIClick',root, 
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('dd',localPlayer) 
 end 
end ) 
  
-------------------------------------------------------- 
  
addEvent("dd", true) 
addEventHandler("dd", root, 
 function  (  ) 
   for i, v in next, getElementsByType ( v ) do  
   blowVehicle ( Vehicle , true ) 
   outputChatBox("تم تفجير سيارتك من قبل الكونسل", source, 255, 0, 0) 
  if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (source)), aclGetGroup ("Console")) then 
   blowVehicle ( Vehicle , false ) 
   outputChatBox("لم يتم تفجير سيارتك لانك كونسل !!", source, 255, 0, 0) 
   end --- end function 
  end  --- end do 
 end ---- end if 
end )---- اند تحقق و اغلاق قوس 
  
  

كذا يصير ؟؟

حطيت انه يفجر كل لاعبين ويقلهم تم تفجير من قبل كونسل و كمان اذا كان الاعب بقروب كونسل ما يفجرله سيارته لو سمحت شفلي الكود لو فيه اي خطا

Edited by Guest
Posted

عندك اخطاء بالسيرفر

انت سويت لوب وسميت السيارات v

ايش جاب المتغير Vehicle ??

حط بدله v

وغير plr ل source

Posted (edited)

تم

addEvent("dd", true) 
addEventHandler("dd", root, 
 function  (  ) 
   for i, v in next, getElementsByType ( v ) do  
   blowVehicle ( v , true ) 
   outputChatBox("تم تفجير سيارتك من قبل الكونسل", source, 255, 0, 0) 
  if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (plr)), aclGetGroup ("Console")) then 
   blowVehicle ( v , false ) 
   outputChatBox("لم يتم تفجير سيارتك لانك كونسل !!", source, 255, 0, 0) 
   end --- end function 
  end  --- end do 
 end ---- end if 
end )---- اند تحقق و اغلاق قوس 
Edited by Guest
Posted

addEventHandler('onClientGUIClick',root, 
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('dd',localPlayer) 
 end 
end ) 
  
  
addEvent("dd", true) 
addEventHandler("dd", root, 
    function  (  ) 
        for i, v in next, getElementsByType ( v ) do 
            blowVehicle ( v , true ) 
                outputChatBox("تم تفجير سيارتك من قبل الكونسل", source, 255, 0, 0) 
                    if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (source)), aclGetGroup ("Console")) then 
                        blowVehicle ( v , false ) 
                            outputChatBox("لم يتم تفجير سيارتك لانك كونسل !!", source, 255, 0, 0) 
                        end 
                end 
        end 
end ) 
  
  
Posted
addEventHandler('onClientGUIClick',root, 
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('dd',localPlayer) 
 end 
end ) 
  
  
addEvent("dd", true) 
addEventHandler("dd", root, 
    function  (  ) 
        for i, v in next, getElementsByType ( v ) do 
            blowVehicle ( v , true ) 
                outputChatBox("تم تفجير سيارتك من قبل الكونسل", source, 255, 0, 0) 
                    if not isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (source)), aclGetGroup ("Console")) then 
                        blowVehicle ( v , false ) 
                            outputChatBox("لم يتم تفجير سيارتك لانك كونسل !!", source, 255, 0, 0) 
                        end 
                end 
        end 
end ) 
  
  
getElementsByType ( v ) 

:o

Posted
addEventHandler('onClientGUIClick',root, 
function ( ) 
if ( source == GUIEditor.button[1] ) then 
triggerServerEvent('dd',localPlayer) 
 end 
end ) 
  
-------------------------------------------------------- 
  
addEvent("dd", true) 
addEventHandler("dd", root, 
 function  (  ) 
   for i, v in ipairs getElementsByType ( "vehicle" ) do 
   local Player = getPedOccupiedVehicle ( v ) 
  if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (Player)), aclGetGroup ("Console")) then 
   outputChatBox("لم يتم تفجير سيارتك لانك كونسل !!", Player, 255, 0, 0) 
else 
blowVehicle ( v , true ) 
outputChatBox("تم تفجير سيارتك من قبل الكونسل ", Player, 255, 0, 0) 
   end --- end function 
  end  --- end do 
 end ---- end if 
)---- اند تحقق و اغلاق قوس 
  
  

Posted
  
   local Player = getPedOccupiedVehicle ( v ) 
  if isObjectInACLGroup ("user." .. getAccountName (getPlayerAccount (Player)), aclGetGroup ("Console")) then 
   outputChatBox("لم يتم تفجير سيارتك لانك كونسل !!", Player, 255, 0, 0) 
  
  
  

تتحقق ان السيارة بـ قروب كونسول ؟

getPedOccupiedVehicle ( ped thePed )  

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

..

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