Bassam*Syria Posted December 3, 2014 Share Posted December 3, 2014 السلام عليكم شباب انا سويت وظيفه بسيطه لما شخص ياخذ الوظيفه و يقتل اي شخص ثاني في السيرفر يجيه فلوس بس واجهتني مشكله وقت يجيه الكلام المشكله انو يجي الكلام الي قتل و الي مات ومادري ليش هه اي مساعده ذذ ؟ addEventHandler("onPlayerWasted",root, function (_,killer) outputTopChat(" You Killed Player And Get $1000", root ) if isElement(killer) and getElementType(killer) == "player" and source ~= killer and getPlayerTeam(killer) == Team then givePlayerMoney(killer,1000) end end ) Link to comment
Ahmed Abo-elezz Posted December 3, 2014 Share Posted December 3, 2014 outputTopChat(" You Killed Player And Get $1000", Killer) Link to comment
فاّرس Posted December 3, 2014 Share Posted December 3, 2014 -- Server Side # addEventHandler("onPlayerWasted", root, function (_,killer) if isElement(killer) and killer ~= source and getElementType(killer) == "player" then if getPlayerTeam(killer) and getTeamName ( getPlayerTeam(killer) ) == Team then givePlayerMoney(killer,1000) outputTopChat(" You Killed Player And Get $1000", killer) end end end ) Link to comment
</Mr.Tn6eL> Posted December 5, 2014 Share Posted December 5, 2014 -- Server Side # addEventHandler("onPlayerWasted", root, function (_,killer) if isElement(killer) and killer ~= source and getElementType(killer) == "player" then if getPlayerTeam(killer) and getTeamName ( getPlayerTeam(killer) ) == Team then givePlayerMoney(killer,1000) outputTopChat(" You Killed Player And Get $1000", killer) end end end ) احتمال ان الفنكشن outputTopChat من مود ثاني يحتاج export Link to comment
The Killer Posted December 5, 2014 Share Posted December 5, 2014 مب شرط export امكن هو ضايف المود حق الرساله في نفس المود حق القتل او مسويه في نفس الملف مو في كل الاحوال يحتاج export Link to comment
</Mr.Tn6eL> Posted December 5, 2014 Share Posted December 5, 2014 اعرف بهذا الامر لكن انا كاتب احتمال يكون الفنكشن يعني يليت تركز بالكلام 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