saifProgenuis Posted May 9, 2015 Share Posted May 9, 2015 عايز الكود اول حاجة بدل تيم شرطه يبقو 3 يعني police , army ,swat و تاني حاجة عايز لما الشخص يموت البليب يختفي local kills = {} addEventHandler("onPlayerWasted", root, function(_, killer) if killer and getElementType(killer) == "player" and killer ~= source then local playerTeam = getPlayerTeam (source) if ( playerTeam ) then if getTeamName(playerTeam) == "Police Team " then -- put police team here kills[killer] = (kills[killer] or 0) + 1 check(killer) end end end end) -- 3 حقق ما إذا كان قد قتل أكثر من function check(killer) if isElement (killer) then if kills[killer]>= 3 then myBlip = createBlipAttachedTo ( killer, 52 ) end end end Link to comment
Ac[T]ioN Posted May 9, 2015 Share Posted May 9, 2015 local kills = {} addEventHandler("onPlayerWasted", root, function(_, killer) if killer and getElementType(killer) == "player" and killer ~= source then local playerTeam = getPlayerTeam (source) if ( playerTeam ) then if getTeamName(playerTeam) == "Police Team" and getTeamName(playerTeam) == "No Team" and getTeamName(playerTeam) == "Gang" then -- put police team here kills[killer] = (kills[killer] or 0) + 1 check(killer) end end end end) -- 3 حقق ما إذا كان قد قتل أكثر من addEventHandler("onPlayerWasted", root, function check(killer) if isElement (killer) then if kills[killer]>= 3 then myBlip = createBlipAttachedTo ( killer, 52 ) end end end removeEventHandler("onPlayerWasted",check) جرب 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