Jump to content

- | طلب فنكش | -


Recommended Posts

أبي فنكش أذا لاعب قتل واحد من تيم معين

يآخذ سلاب الي قتله

لاهنتو شوفوا الخطاء تحت

:!:

function abortAllStealthKills(targetPlayer) 
    if isPlayerInTeam ( targetPlayer,"Staff" ) then 
    killPed ( sourcePlayer, sourcePlayer ) 
    cancelEvent() 
    end 
end 
addEventHandler("onClientPlayerStealthKill", getLocalPlayer(), abortAllStealthKills) 
  
function cancelPedDamage ( attacker ) 
    if isPlayerInTeam ( targetPlayer,"Staff" ) then 
    killPed ( sourcePlayer, sourcePlayer ) 
    end 
end 
addEventHandler ( "onClientPedDamage", getRootElement(), cancelPedDamage ) 

Link to comment

 theTeam = "اسم التيم"  
addEventHandler("onPlayerWasted", getRootElement(   ), 
function     (   ammo,  killer   ) 
      local playerTeam = getPlayerTeam( source ) 
           if playerTeam then 
                    if getTeamName( playerTeam ) == theTeam then 
                              killPed( killer ) 
                    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...