xAbdullaiH Posted March 30, 2015 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 ) تم نقل الحساب آلى : http://forum.mtasa.com/memberlist.php?mode=viewprofile&u=81640
nxFairlywell Posted March 30, 2015 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 مدري ليه مصعب الموضوع . Discord ID : nxFairlywell#6895
xAbdullaiH Posted March 30, 2015 Author Posted March 30, 2015 يغلق تم الافادة تم نقل الحساب آلى : http://forum.mtasa.com/memberlist.php?mode=viewprofile&u=81640
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