Jump to content

تصحيح كود ماركر


Recommended Posts

وين الخطأ هني ؟؟

  
addEventHandler ("onMarkerHit",marker3,  
function (playerWhoUses) 
  if (source == copPickup) and (getPlayerWantedLevel (playerWhoUses) == 0) then 
    giveWeapon (playerWhoUses, 3, 1, true) 
    setPlayerNametagText (playerWhoUses, "[COP]" .. getPlayerName (playerWhoUses)) 
    setElementData (playerWhoUses, "job", "police") 
    setPlayerTeam ( playerWhoUses, PoliceTeam ) 
    setPedSkin ( playerWhoUses, 280 ) 
    outputChatBox ("اعتقل المطلوبين بهروتك , اكتب فالشات /wanted", playerWhoUses, 0, 0, 255, false) 
    outputChatBox ("لتعتقل المجرمين فقط اضربهم بالهروة", playerWhoUses, 0, 0, 255, false) 
    outputChatBox ("لترى المطلوبين /wanted اكتب.", playerWhoUses, 0, 0, 255, false) 
  elseif not (getPlayerWantedLevel (playerWhoUses) == 0) and (source == copPickup) then 
    outputChatBox ("لا يمكنك ان تصبح شرطي لأنك مطلوب", playerWhoUses, 0, 0, 255, false) 
  end 
end) 

Link to comment
addEventHandler ( 'onMarkerHit', copPickup, function ( playerWhoUses ) 
    if getElementType ( playerWhoUses ) == 'player' then 
        if getPlayerWantedLevel ( playerWhoUses ) == 0 then 
            giveWeapon ( playerWhoUses, 3, 1, true ) 
            setPlayerNametagText ( playerWhoUses, '[COP]' .. getPlayerName ( playerWhoUses ) ) 
            setElementData ( playerWhoUses, 'job', 'police' ) 
            setPlayerTeam ( playerWhoUses, PoliceTeam ) 
            setPedSkin ( playerWhoUses, 280 ) 
            outputChatBox ( 'اعتقل المطلوبين بهروتك , اكتب فالشات /wanted', playerWhoUses, 0, 0, 255, false ) 
            outputChatBox ( 'لتعتقل المجرمين فقط اضربهم بالهروة', playerWhoUses, 0, 0, 255, false ) 
            outputChatBox ( 'لترى المطلوبين /wanted اكتب.', playerWhoUses, 0, 0, 255, false ) 
        else 
            outputChatBox ( 'لا يمكنك ان تصبح شرطي لأنك مطلوب', playerWhoUses, 0, 0, 255, false ) 
        end 
    end 
end ) 

Link to comment
addEventHandler ( 'onMarkerHit', copPickup, function ( playerWhoUses ) 
    if getElementType ( playerWhoUses ) == 'player' then 
        if getPlayerWantedLevel ( playerWhoUses ) == 0 then 
            giveWeapon ( playerWhoUses, 3, 1, true ) 
            setPlayerNametagText ( playerWhoUses, '[COP]' .. getPlayerName ( playerWhoUses ) ) 
            setElementData ( playerWhoUses, 'job', 'police' ) 
            setPlayerTeam ( playerWhoUses, PoliceTeam ) 
            setPedSkin ( playerWhoUses, 280 ) 
            outputChatBox ( 'اعتقل المطلوبين بهروتك , اكتب فالشات /wanted', playerWhoUses, 0, 0, 255, false ) 
            outputChatBox ( 'لتعتقل المجرمين فقط اضربهم بالهروة', playerWhoUses, 0, 0, 255, false ) 
            outputChatBox ( 'لترى المطلوبين /wanted اكتب.', playerWhoUses, 0, 0, 255, false ) 
        else 
            outputChatBox ( 'لا يمكنك ان تصبح شرطي لأنك مطلوب', playerWhoUses, 0, 0, 255, false ) 
        end 
    end 
end ) 

هني في خطأ

addEventHandler ( 'onMarkerHit', copPickup, function ( playerWhoUses ) 

:roll:

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