Jump to content

تصحيح كود


Recommended Posts

Posted

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

يا شباب يا ريت تصلحولي هالاكواد والله وجع قلبي

local marker50 = createMarker (1390.4000244141,566.40002441406,137.5,"arrow",2,20,245,9,255) 
local marker30 = createMarker (1375.4000244141,542.90002441406,5000.9,"arrow",2,29,255,0,255) 
local marker40 = createMarker (1390.8000488281,561.29998779297,135.19999694824,"cylinder",1,245,9,9,255) 
local marker60 = createMarker (1497.6999511719,580.5,133.30000305176,"cylinder",2,127,126,126,255) 
  
     
    function teleport1 (thePlayer) 
    if (getElementData(thePlayer,"Group") == "[saW]") then 
    setElementPosition(thePlayer,1378.5999755859,544.70001220703,4999.3999023438) 
        outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("انت لست من عصابة سـآو",thePlayer,255,255,255,true) 
    end 
end 
    addEventHandler("onMarkerHit", marker50, teleport1) 
     
        function teleport2 (thePlayer) 
    if (getElementData(thePlayer,"Group") == "[saW]") then 
    setElementPosition(thePlayer,1393.5,571.29998779297,136.19999694824) 
        outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("انت لست من عصـآبة سـآو",thePlayer,255,255,255,true) 
    end 
end 
  
    addEventHandler("onMarkerHit", marker30, teleport2) 
     
        function health (thePlayer) 
            if (getElementData(thePlayer,"Group") == "[saW]") then 
            setPedArmor ( thePlayer,100 ) 
            setElementHealth ( thePlayer,100 ) 
            end 
            end 
             
            addEventHandler("onMarkerHit",health,marker40) 
             
    function fixcar (theVehicle) 
    if (getElementData(thePlayer,"Group") == "[saW]") then 
    fixVehicle ( theVehicle ) 
    end 
    end 
     
    addEventHandler("onMarkerHit",fixcar,marker60) 

Posted (edited)

انا جديد بالبرمجة يعني

شوي شوي علي

والجداول اول مرة اسمع فيها

وياليت تعدله لي

الفنكشن الاول والثاني للانتقال بس لقروب ساو

والفنكشن الثالث ماركر يعبي دم ودرع

والرابع تصليح سيارة

كل الفنكشات لقروب ساو

مو قروب ACL

قروب داتا مثل حرب العصابات

ياريت تصلحه لي تكفى الله يخليك :(

edit :

تكفووؤن ردو

: (

Edited by Guest
Posted

لم يتم التجربة

-- # Server Side! 
local marker50 = createMarker (1390.4000244141,566.40002441406,137.5,"arrow",2,20,245,9,255) 
local marker30 = createMarker (1375.4000244141,542.90002441406,5000.9,"arrow",2,29,255,0,255) 
local marker40 = createMarker (1390.8000488281,561.29998779297,135.19999694824,"cylinder",1,245,9,9,255) 
local marker60 = createMarker (1497.6999511719,580.5,133.30000305176,"cylinder",2,127,126,126,255) 
  
function teleport1 ( thePlayer ) 
    if getElementType ( thePlayer ) == 'player' then 
    if getElementData ( thePlayer,'Group' ) == '[saW]' then 
          setElementPosition( thePlayer,1378.5999755859,544.70001220703,4999.3999023438 ) 
            outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("انت لست من عصـآبة سـآو",thePlayer,255,255,255,true)  
        end 
    end 
end 
    
function teleport2 ( thePlayer ) 
    if getElementType ( thePlayer ) == 'player' then 
    if getElementData ( thePlayer,'Group' ) == '[saW]' then 
          setElementPosition(thePlayer,1393.5,571.29998779297,136.19999694824) 
            outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("انت لست من عصـآبة سـآو",thePlayer,255,255,255,true)   
        end 
    end 
end 
     
  
function health ( thePlayer ) 
    if getElementType ( thePlayer ) == 'player' then 
    if getElementData ( thePlayer,'Group' ) == '[saW]' then 
        setPedArmor ( thePlayer,100 ) 
        setElementHealth ( thePlayer,100 ) 
        end 
    end 
end 
         
function fixcar ( thePlayer ) 
    if getElementType ( thePlayer ) == 'player' and isPedInVehicle ( thePLayer ) then 
    if getElementData ( thePlayer,'Group' ) == '[saW]' then 
            fixVehicle ( getPedOccupiedVehicle( thePlayer ) ) 
        end 
    end 
end 
  
addEventHandler("onMarkerHit", marker30,teleport2) 
addEventHandler("onMarkerHit", marker50,teleport1) 
addEventHandler("onMarkerHit",marker40,health) 
addEventHandler("onMarkerHit",marker60,fixcar) 
  
  

  • 3 months later...

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