SAM!! Posted June 26, 2018 Share Posted June 26, 2018 السلام عليكم ابي تصحيح للكود ذا لانة مايشتغل ابي لما شخص يقتل شخص يجي مثلا man killed by sam ياريت تصحيح addEventHandler("onPlayerWasted", root, function(_,killer) outputChatBox( killer .. " من قبل" .. getPlayerName(source) .. " لقد قُتل الاعب" ) end) Link to comment
Trefeor Posted June 26, 2018 Share Posted June 26, 2018 addEventHandler ( "onPlayerWasted" , root , function ( _ , killer ) if ( killer and isElement ( killer ) and getElementType ( killer ) == "player" ) then outputChatBox ( getPlayerName ( source ) .. " killed by "..getPlayerName(killer) ) end end ) Link to comment
N3xT Posted June 26, 2018 Share Posted June 26, 2018 13 minutes ago, Trefeor said: addEventHandler ( "onPlayerWasted" , root , function ( _ , killer ) if ( killer and isElement ( killer ) and getElementType ( killer ) == "player" ) then outputChatBox ( getPlayerName ( source ) .. " killed by "..getPlayerName(killer) ) end end ) لازم يكون فيه تحقق ان القاتل ماهو السورس لأن اللاعب لو انتحر بيطلع له انه قتل نفسه بنفسه 2 Link to comment
Trefeor Posted June 26, 2018 Share Posted June 26, 2018 @N3xT مشكور على التنبيه addEventHandler ( "onPlayerWasted" , root , function ( _ , killer ) if ( killer and isElement ( killer ) and getElementType ( killer ) == "player" and killer ~= source ) then outputChatBox ( getPlayerName ( source ) .. " killed by "..getPlayerName(killer) ) end end ) 1 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