Jump to content

Error In my code


#Soking

Recommended Posts

addEventHandler("onClientPlayerDamage", root, 
function(attacker) 
    if attacker and getElementType(attacker) == "player" and attacker ~= localPlayer then 
    if getElementData(attacker,'Jobs') ~= 25 then 
    if getElementData(localPlayer,'Jobs') == 25 then 
setPlayerWantedLevel(attacker,6) 
                end 
            end 
        end 
    end 
) 

المفروض ال مماا معه القيمه 25 وضرب المعه القيمه 25 ياخد نجوم ؟

Link to comment
addEventHandler("onClientPlayerDamage", root, 
function(attacker) 
    if attacker and getElementType(attacker) == "player" and attacker ~= localPlayer then 
    if getElementData(attacker,'Jobs') ~= 25 then 
    if getElementData(localPlayer,'Jobs') == 25 then 
setPlayerWantedLevel(attacker,6) 
                end 
            end 
        end 
    end 
) 

المفروض ال مماا معه القيمه 25 وضرب المعه القيمه 25 ياخد نجوم ؟

وش تبي تسوي بالضبط وضح

Link to comment

كلنت

  
addEventHandler("onClientPlayerDamage", localPlayer, 
   function( attacker ) 
      if getElementData(attacker) == "player" then 
         if getElementData(localPlayer, "Jobs") == 25 and getElementData(attacker, "Jobs") ~= 25 then 
             triggerServerEvent("onPoliceDamage", attacker) 
         else return end 
      else return end 
   end 
) 

سيرفر

  
addEvent("onPoliceDamage", true) 
addEventHandler("onPoliceDamage", root, 
   function(  ) 
      setPlayerWantedLevel(source, 6) 
   end 
) 
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...