Jump to content

مشكلة بسيطة باذن الله


Recommended Posts

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

انا سويت سكريبت لسيرفري الشوتر السكريبت هو انه لما اقتل احد اخد تصليح لسيارتي بشكل تلقائي بس للاسف ما اشتغل

ياريت تفيدوني وتساعدوني وين المشكلة

client

  
        addEventHandler('onClientVehicleDamage',root, 
            function(attacker) 
                if attacker and getElementType(attacker) == 'player' and attacker ~= getVehicleOccupant(source)  then 
                    triggerServerEvent('shooter:setData',getVehicleOccupant(source),'killer1222',attacker) 
                    setTimer(triggerServerEvent,4000,1,'shooter:setData',getVehicleOccupant(source,0),'killer1222',false) 
                end 
            end 
        ) 
      
        -- 
        addEventHandler('onClientPlayerWasted',root, 
            function(killer) 
                if getElementData(source,'killer1222') ~= false and getElementData(source,'killer1222') ~= source  then 
              fixVehicle(killer1222) 
                end 
            end 
        ) 
      
  

  
server 
  
      
    addEvent('shooter:setData',true) 
    addEventHandler('shooter:setData',root, 
        function(dataname,datavalue) 
            setElementData(client,dataname,datavalue) 
        end 
    ) 
  

Edited by Guest
Link to comment

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