Jump to content

تصحيح كود


Recommended Posts

تصحيح كود ::

outputChatBox("Police Job By AhmedSmood - Started",255,0,0,true) 
  
GUIEditor = { 
    memo = {}, 
    button = {}, 
    window = {}, 
} 
  
  
GUIEditor.window[1] = guiCreateWindow(244, 197, 346, 242, "Police Job - By AhmedSmood", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetAlpha(GUIEditor.window[1], 0.81) 
guiSetVisible (GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "NormalTextColour", "FFFCFA3E") 
  
  
GUIEditor.memo[1] = guiCreateMemo(9, 18, 328, 119, "Police Job : You Have To Arrest Wanted Pepole , and You Will Have some Cash $", false, GUIEditor.window[1]) 
  
  
GUIEditor.button[1] = guiCreateButton(10, 162, 140, 47, "Take Job", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
  
  
GUIEditor.button[2] = guiCreateButton(196, 162, 140, 47, "Exit", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") 
  
  
marker1 = createMarker (1555.5,-1675.6015625,16.1953125, "cylinder", 2,0, 0, 255,255) 
  
function PlayerGo(player) 
              setElementPosition (player,246.580078125,66.603515625,1003.640625) 
              setElementInterior(player,6) 
end 
addEventHandler("onClientMarkerHit", marker1, PlayerGo) 
  
marker2 = createMarker (246.7275390625,62.3232421875,1003.640625, "cylinder", 2,0, 0, 255,255) 
setElementInterior(marker2, 6) 
  
function PlayerGo2(player) 
setElementPosition (player,1545.0732421875, -1674.9462890625, 13.559651374817) 
              setElementInterior(player,0) 
end 
addEventHandler("onClientMarkerHit", marker2, PlayerGo2) 
  
local marker3 = createMarker ( 257.06851196289,69.218521118164,1003.640625, 'cylinder',2, 0, 255, 0, 255 ) 
setElementInterior ( marker3, 6 ) 
  
      
addEventHandler ( 'onClientGUIClick', GUIEditor.button[1], 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, Police ) 
            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("onClientGUIClick",GUIEditor.button[2], 
    function ( ) 
     guiSetVisible(GUIEditor.window[1],false) 
     showCursor(false) 
end,false) 
  
  
 addEventHandler ( "onClientMarkerHit", marker3, 
 function ( hitPlayer ) 
 if ( hitPlayer == localPlayer ) then 
 guiSetVisible ( GUIEditor.window[1], true ) 
 showCursor ( true ) 
 end 
 end,false 
) 
  

:roll:

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