xAbdullaiH Posted March 30, 2015 Share Posted March 30, 2015 أبي فنكش أذا لاعب قتل واحد من تيم معين يآخذ سلاب الي قتله لاهنتو شوفوا الخطاء تحت 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
nxFairlywell Posted March 30, 2015 Share Posted March 30, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now