Ahmed Eka Posted July 30, 2016 Share Posted July 30, 2016 بسم الله الرحمن الرحيم هاد الكود مسويه لما يقتل السوات حد معاه نجوم ينقله لمكان لمده معينه و يعطي السوات فلوس الحين انا جربتو يعطي الفلوس بس ما ينقل من مكانو ارجو الافاده !؟ addEventHandler( "onPlayerWasted", root, function ( _,killer ) if ( killer and killer ~= source and getElementType( killer ) == "player" ) then if ( getPlayerTeam( killer ) and getPlayerTeam( killer ) == getTeamFromName ( "Swat" ) ) then if ( getPlayerWantedLevel ( source ) > 0 ) then givePlayerMoney ( killer, 7000 ) exports["guimessages"]:outputClient("*" .. getPlayerName(killer) .. "Jailed" .. getPlayerName(source) .. "",root,0,0,255,true) setTimer ( setElementPosition, 100, 1,source , 263.53342, 77.61669, 1001.03906 ) setTimer ( setElementPosition, 2*60, 1,source , 2289.52686, 579.96320, 7.78125 ) end end end end ) Link to comment
فاّرس Posted July 30, 2016 Share Posted July 30, 2016 سطر ٩ زود وقت التامر، لأن حسب علمي ان اللاعب للحين ما رسبن. Link to comment
HassoN Posted July 30, 2016 Share Posted July 30, 2016 أستخدم spawnPlayer لآن ماتقدر تحط احداثيات لشخص ميت فـ لازم ترسبنه اول Link to comment
فاّرس Posted July 30, 2016 Share Posted July 30, 2016 ^ هو مسوي تايمر يعني التايمر بيكون بعد ما يرسبن اللاعب، هذا اذا عنده كود يسوي ريسباون للاعب، واذا ماعنده يستخدم الوظيفه اللي عطيته انت. Link to comment
Me[Z]oO Posted July 30, 2016 Share Posted July 30, 2016 addEventHandler( "onPlayerWasted", root, function ( _,killer ) if ( killer and killer ~= source and getElementType( killer ) == "player" ) then if ( getPlayerTeam( killer ) and getPlayerTeam( killer ) == getTeamFromName ( "Swat" ) ) then if ( getPlayerWantedLevel ( source ) > 0 ) then givePlayerMoney ( killer, 7000 ) exports["guimessages"]:outputClient("*" .. getPlayerName(killer) .. "Jailed" .. getPlayerName(source) .. "",root,0,0,255,true) setTimer ( setElementPosition, 100, 1,source , 263.53342, 77.61669, 1001.03906 ) setTimer ( setElementPosition, 100, 1,killer , 2289.52686, 579.96320, 7.78125 ) end end end end ) Link to comment
!#NssoR_) Posted July 30, 2016 Share Posted July 30, 2016 addEventHandler( "onPlayerWasted", root, function ( _,killer ) if ( killer and killer ~= source and getElementType( killer ) == "player" ) then if ( getPlayerTeam( killer ) and getPlayerTeam( killer ) == getTeamFromName ( "Swat" ) ) then if ( getPlayerWantedLevel ( source ) > 0 ) then givePlayerMoney ( killer, 7000 ) exports["guimessages"]:outputClient("*" .. getPlayerName(killer) .. "Jailed" .. getPlayerName(source) .. "",root,0,0,255,true) setTimer ( setElementPosition, 100, 1,source , 263.53342, 77.61669, 1001.03906 ) setTimer ( setElementPosition, 100, 1,killer , 2289.52686, 579.96320, 7.78125 ) end 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