Jump to content

مساعده


Recommended Posts

بسم الله الرحمن الرحيم

هاد الكود مسويه لما يقتل السوات حد معاه نجوم ينقله لمكان لمده معينه

و يعطي السوات فلوس

الحين انا جربتو

يعطي الفلوس بس ما ينقل من مكانو

ارجو الافاده !؟

  
  
    addEventHandler( "onPlayerWasted", root, function ( _,killer ) 
      if ( killer and killer ~= source and getElementType( killer ) == "player" ) then 
        if ( getPlayerTeam( killer ) and getPlayerTeam( killer ) == getTeamFromName ( "Swat" ) ) then 
          if ( getPlayerWantedLevel ( source ) > 0 ) then 
              givePlayerMoney ( killer, 7000 ) 
              exports["guimessages"]:outputClient("*" .. getPlayerName(killer) .. "Jailed" .. getPlayerName(source) .. "",root,0,0,255,true) 
                setTimer ( setElementPosition, 100, 1,source ,  263.53342, 77.61669, 1001.03906 ) 
                setTimer ( setElementPosition, 2*60, 1,source , 2289.52686, 579.96320, 7.78125 ) 
             end 
            end 
          end 
       end 
    )                                                  
  

Link to comment
addEventHandler( "onPlayerWasted", root,  
    function ( _,killer ) 
        if ( killer and killer ~= source and getElementType( killer ) == "player" ) then 
            if ( getPlayerTeam( killer ) and getPlayerTeam( killer ) == getTeamFromName ( "Swat" ) ) then 
                if ( getPlayerWantedLevel ( source ) > 0 ) then 
                    givePlayerMoney ( killer, 7000 ) 
                    exports["guimessages"]:outputClient("*" .. getPlayerName(killer) .. "Jailed" .. getPlayerName(source) .. "",root,0,0,255,true) 
                    setTimer ( setElementPosition, 100, 1,source ,  263.53342, 77.61669, 1001.03906 ) 
                    setTimer ( setElementPosition, 100, 1,killer , 2289.52686, 579.96320, 7.78125 ) 
                end 
            end 
        end 
    end 
)       

Link to comment
addEventHandler( "onPlayerWasted", root,  
    function ( _,killer ) 
        if ( killer and killer ~= source and getElementType( killer ) == "player" ) then 
            if ( getPlayerTeam( killer ) and getPlayerTeam( killer ) == getTeamFromName ( "Swat" ) ) then 
                if ( getPlayerWantedLevel ( source ) > 0 ) then 
                    givePlayerMoney ( killer, 7000 ) 
                    exports["guimessages"]:outputClient("*" .. getPlayerName(killer) .. "Jailed" .. getPlayerName(source) .. "",root,0,0,255,true) 
                    setTimer ( setElementPosition, 100, 1,source ,  263.53342, 77.61669, 1001.03906 ) 
                    setTimer ( setElementPosition, 100, 1,killer , 2289.52686, 579.96320, 7.78125 ) 
                end 
            end 
        end 
    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...