mr.Extreme Posted November 1, 2013 Share Posted November 1, 2013 اسلام عليكم شبااب انا بدي لو واحد قتل فريقة ينقص فلوسة هذا الكود function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then givePlayerMoney ( killer, 1000 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) وشكرا Link to comment
فاّرس Posted November 1, 2013 Share Posted November 1, 2013 جرب كذا, addEventHandler('onPlayerWasted',root,function(_,killer) if killer and killer ~= source and getElementType(killer) == 'player' then if getTeamName(getPlayerTeam(killer)) == getTeamName(getPlayerTeam(source)) then givePlayerMoney(killer,getPlayerMoney(killer) - 100) 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