ABO-SR777777A Posted October 20, 2012 Share Posted October 20, 2012 السلام عليكم شباب ابي كود الى يموت بعد 15 ثانيه يجيله ادد Link to comment
ABO-SR777777A Posted October 20, 2012 Author Share Posted October 20, 2012 يعني يعيد مره ثانيه ويجي كلام بالشات انتضر 15 ثانيه Link to comment
TAPL Posted October 20, 2012 Share Posted October 20, 2012 يعني يعيد مره ثانيه ويجي كلام بالشات انتضر 15 ثانيه -- Server Side -- addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- x, y, z الأحداثيات الي يعيد فيها end) Link to comment
ABO-SR777777A Posted October 20, 2012 Author Share Posted October 20, 2012 ايت احداثيات Link to comment
nony Posted October 20, 2012 Share Posted October 20, 2012 ايت احداثيات الي يرجع فيها الاعب بعد 15 ثانيه Link to comment
ABO-SR777777A Posted October 20, 2012 Author Share Posted October 20, 2012 المكان الى يعيد فيه Link to comment
ABO-SR777777A Posted October 20, 2012 Author Share Posted October 20, 2012 يعني الثواني بس كيف Link to comment
nony Posted October 20, 2012 Share Posted October 20, 2012 يعني الثواني بس كيف روح المكان الي تبي الاعب يرجع فيه واخذ احداثياته من الادمنيه وحط الاحداثيات الي اخذتها بدال x, y, z Link to comment
ABO-SR777777A Posted October 20, 2012 Author Share Posted October 20, 2012 طيب لو ميه واحد مات من الفرق الاول خمسه والثاني خمسه يجون نفس المكان Link to comment
nony Posted October 20, 2012 Share Posted October 20, 2012 طيب لو ميه واحد مات من الفرق الاول خمسه والثاني خمسه يجون نفس المكان احسب القيم مود play Link to comment
ABO-SR777777A Posted October 20, 2012 Author Share Posted October 20, 2012 طيب الحين كيف؟؟ Link to comment
nony Posted October 20, 2012 Share Posted October 20, 2012 طيب الحين كيف؟؟ يفيدونك الشباب انا ماعندي خبره ^^ Link to comment
TAPL Posted October 20, 2012 Share Posted October 20, 2012 طيب لو ميه واحد مات من الفرق الاول خمسه والثاني خمسه يجون نفس المكان addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("اسم التيم الأول") then setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- التيم الأول x, y, z الأحداثيات الي يعيد فيها elseif Team == getTeamFromName("اسم التيم الثاني") then setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- التيم الثاني x, y, z الأحداثيات الي يعيد فيها end else -- لو كان بدون تيم setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- بدون تيم x, y, z الأحداثيات الي يعيد فيها end end) Link to comment
hassan.k.s.a Posted October 20, 2012 Share Posted October 20, 2012 addEventHandler("onPlayerWasted", root, function Wasted()--Create function local team1 = getTeamFromName("TeamName")--Add Team Name local team2 = getTeamFromName("TeamName")--Add Team Name local pteam = getPlayerTeam(source) if ( pteam == team1 ) then spawnPlayer (source, x,y,z, 0,0,0,0,team1)--Add Position x,y,z fadeCamera(source,true) setCameraTarget(source,source) elseif ( pteam == team2 ) then spawnPlayer (source, x,y,z, 0,0,0,0,team2)--Add Position x,y,z fadeCamera(source,true) setCameraTarget(soure,source) end--if end--function ) Link to comment
ABO-SR777777A Posted October 21, 2012 Author Share Posted October 21, 2012 جزاكم الله خير ججربتته شغال ميه ميه Link to comment
Blaawee Posted October 21, 2012 Share Posted October 21, 2012 addEventHandler("onPlayerWasted", root, function Wasted()--Create function local team1 = getTeamFromName("TeamName")--Add Team Name local team2 = getTeamFromName("TeamName")--Add Team Name local pteam = getPlayerTeam(source) if ( pteam == team1 ) then spawnPlayer (source, x,y,z, 0,0,0,0,team1)--Add Position x,y,z fadeCamera(source,true) setCameraTarget(source,source) elseif ( pteam == team2 ) then spawnPlayer (source, x,y,z, 0,0,0,0,team2)--Add Position x,y,z fadeCamera(source,true) setCameraTarget(soure,source) end--if end--function ) addEventHandler("onPlayerWasted", root, function Wasted()--Create function local team1 = getTeamFromName( "TeamName" ) --Add Team Name local team2 = getTeamFromName( "TeamName" ) --Add Team Name local pteam = getPlayerTeam( source ) if ( pteam == team1 ) then spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z fadeCamera( source, true ) setCameraTarget( source ,source ) elseif ( pteam == team2 ) then spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z fadeCamera( source, true ) setCameraTarget( source, source ) -- [b]خطآ[/b] end--close the 'if' end)--close the function Link to comment
ABO-SR777777A Posted October 21, 2012 Author Share Posted October 21, 2012 معليش بس انا سويت تيمين ابي اي واحد يدخل يدخله في اي تيم الاول او الثاني ولو انتهي القيم الى في الفريق الاول يروحون الفريق الثاني ولي في الفريق الثاني يرحون للفريق الاول لاهنتم Link to comment
ABO-SR777777A Posted October 21, 2012 Author Share Posted October 21, 2012 سويت للكود كذا ماشتغل حطينه في سيرفر addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("Police") then setTimer(spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) elseif Team == getTeamFromName("Green") then setTimer(spawnPlayer, 15000, 1, source, 2057.1586914063, 1527.6525878906, 10.671875) end else setTimer(spawnPlayer, 15000, 1, source, 2005, 1543, 13.590750694275) end Link to comment
TAPL Posted October 21, 2012 Share Posted October 21, 2012 سويت للكود كذا ماشتغل حطينه في سيرفر addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("Police") then setTimer(spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) elseif Team == getTeamFromName("Green") then setTimer(spawnPlayer, 15000, 1, source, 2057.1586914063, 1527.6525878906, 10.671875) end else setTimer(spawnPlayer, 15000, 1, source, 2005, 1543, 13.590750694275) end أنت ما نسخت الكود كامل ناقص الأند و القوس الي بالأخير أرجع أنسخه كامل Link to comment
hassan.k.s.a Posted October 21, 2012 Share Posted October 21, 2012 (edited) addEventHandler("onPlayerWasted", root, function Wasted()--Create function local team1 = getTeamFromName("TeamName")--Add Team Name local team2 = getTeamFromName("TeamName")--Add Team Name local pteam = getPlayerTeam(source) if ( pteam == team1 ) then spawnPlayer (source, x,y,z, 0,0,0,0,team1)--Add Position x,y,z fadeCamera(source,true) setCameraTarget(source,source) elseif ( pteam == team2 ) then spawnPlayer (source, x,y,z, 0,0,0,0,team2)--Add Position x,y,z fadeCamera(source,true) setCameraTarget(soure,source) end--if end--function ) addEventHandler("onPlayerWasted", root, function Wasted()--Create function local team1 = getTeamFromName( "TeamName" ) --Add Team Name local team2 = getTeamFromName( "TeamName" ) --Add Team Name local pteam = getPlayerTeam( source ) if ( pteam == team1 ) then spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z fadeCamera( source, true ) setCameraTarget( source ,source ) elseif ( pteam == team2 ) then spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z fadeCamera( source, true ) setCameraTarget( source, source ) -- [b]خطآ[/b] end--close the 'if' end)--close the function مشكور ع التصحيح خطأ آملآئي ^.^ وبنسبه لـ end--if end--function كاتبها سريع ولتوضيح بس وواضحه هي لأنه ال end--if لـ والثانيه end-- function لـ لأنه مايعرف اأنجليزي ^.^ Edited October 21, 2012 by Guest Link to comment
ABO-SR777777A Posted October 21, 2012 Author Share Posted October 21, 2012 اوكي جزاك الله خير تابل وحسن بس ابي الشي الى طلبته فوق Link to comment
hassan.k.s.a Posted October 21, 2012 Share Posted October 21, 2012 معليش بس انا سويت تيمين ابي اي واحد يدخل يدخله في اي تيم الاول او الثاني ولو انتهي القيم الى في الفريق الاول يروحون الفريق الثاني ولي في الفريق الثاني يرحون للفريق الاوللاهنتم ماعرف اخليه لما ينتهي الماب لاكن اعرف اخليه لما يموت يتغير التيم حقه ^.^ 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