TAPL Posted November 20, 2012 Share Posted November 20, 2012 1- لا تحط أكثر من مشاركة ورا بعض 2- https://wiki.multitheftauto.com/wiki/setTimer Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 الحين ذا حق وش setTimer(giveWeapon,15000,1,source,Id,ammo) وش اسوي فيه اشرحلي Link to comment
w7eeD Posted November 20, 2012 Share Posted November 20, 2012 على حسب الايفنت اللي انت حاطه بالكود , هذا : setTimer(giveWeapon,15000,1,source,Id,ammo) يعطيه سلاح بعد 15 ثانية من بعد ما يموت , وانت اكتب اي دي السلاح وعدد الايمو ووكمل الكود ><" حاول تشوف شوب مهو مشفر مثل حق مجرم او اي واحد وتتعلم منه Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 شوفو كودي انا ابيه اول مايدخل معه اسلحه انا احدهها addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 0, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("team 1") then setTimer(spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer(giveWeapon,15000,1,source,Id,ammo) elseif Team == getTeamFromName("team 2") then setTimer(spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449) setTimer(giveWeapon,15000,1,source,Id,ammo) end else setTimer(spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875) end end) صح ولالا Link to comment
./BlackBird# Posted November 20, 2012 Share Posted November 20, 2012 خطا ذذ لما يموت بعد 15 ثانيه يعطي سلاح و يسوي ريسبون Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 بالله الكود جاهز ارجوكم مشغول وراي اختبارات ثنويه Link to comment
3NAD Posted November 21, 2012 Share Posted November 21, 2012 رح ذاكر دروسك و قفل الموضوع ذا Link to comment
Blaawee Posted November 21, 2012 Share Posted November 21, 2012 local firstTeamWeapon = "25" -- سلاح التيم الاول local firstTeamModel = "46" -- اي دي شخصيه التيم الاول local secondTeamWeapon = "26" -- سلاح التيم الثآني local secondTeamModel = "30" -- اي دي شخصيه التيم الثآني addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds.", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, firstTeamWeapon, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( setElementModel, 15000, 1, source, secondTeamModel ) setTimer( giveWeapon,15000,1, secondTeamWeapon, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) Link to comment
ABO-SR777777A Posted November 21, 2012 Author Share Posted November 21, 2012 طيب لو ابي 3 اسلحه Link to comment
w7eeD Posted November 21, 2012 Share Posted November 21, 2012 طيب لو ابي 3 اسلحه حتى الطرق السهله " تفضل هذا 3 اسلحة لكل فريق .. local firstTeamWeapon1 = "25" -- السلاح الاول للتيم الاول local firstTeamWeapon2 = "25" -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = "25" -- السلاح الثالث للتيم الاول local firstTeamModel = "46" -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = "26" -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = "26" -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = "26" -- السلاح الثالث للتيم الثاني local secondTeamModel = "30" -- اي دي شخصيه التيم الثآني addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds ...", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( setElementModel, 15000, 1, source, secondTeamModel ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) تم .. عآد انت حط اي دي الاسلحة واللي تبي .. Link to comment
ABO-SR777777A Posted November 21, 2012 Author Share Posted November 21, 2012 بس مو شغال !!!!!!!!!!!!!!!!!!!!!!! Link to comment
Bhrany-danger Posted November 21, 2012 Share Posted November 21, 2012 بس مو شغال!!!!!!!!!!!!!!!!!!!!!!! حطيته server ولا client? Link to comment
TAPL Posted November 21, 2012 Share Posted November 21, 2012 local firstTeamWeapon1 = "25" -- السلاح الاول للتيم الاول local firstTeamWeapon2 = "25" -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = "25" -- السلاح الثالث للتيم الاول local firstTeamModel = "46" -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = "26" -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = "26" -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = "26" -- السلاح الثالث للتيم الثاني local secondTeamModel = "30" -- اي دي شخصيه التيم الثآني ^ ^ ^ local firstTeamWeapon1 = 25 -- السلاح الاول للتيم الاول local firstTeamWeapon2 = 25 -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = 25 -- السلاح الثالث للتيم الاول local firstTeamModel = 46 -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = 26 -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = 26 -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = 26 -- السلاح الثالث للتيم الثاني local secondTeamModel = 30 -- اي دي شخصيه التيم الثآني Link to comment
ABO-SR777777A Posted November 21, 2012 Author Share Posted November 21, 2012 الثاني صح اجل Link to comment
TAPL Posted November 21, 2012 Share Posted November 21, 2012 setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) ^ ^ ^ setTimer( giveWeapon,15000,1, source, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon3, 30, true ) Link to comment
ABO-SR777777A Posted November 21, 2012 Author Share Posted November 21, 2012 يعني كذا الكود يكون addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds.", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon3, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) Link to comment
TAPL Posted November 21, 2012 Share Posted November 21, 2012 يعني كذا الكود يكون addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds.", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon3, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) Link to comment
nony Posted November 21, 2012 Share Posted November 21, 2012 (edited) local firstTeamWeapon1 = 25 -- السلاح الاول للتيم الاول local firstTeamWeapon2 = 25 -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = 25 -- السلاح الثالث للتيم الاول local firstTeamModel = 46 -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = 26 -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = 26 -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = 26 -- السلاح الثالث للتيم الثاني local secondTeamModel = 30 -- اي دي شخصيه التيم الثآني addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds.", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon3, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) Edited November 21, 2012 by Guest Link to comment
./BlackBird# Posted November 21, 2012 Share Posted November 21, 2012 local firstTeamWeapon1 = "25" -- السلاح الاول للتيم الاول local firstTeamWeapon2 = "25" -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = "25" -- السلاح الثالث للتيم الاول local firstTeamModel = "46" -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = "26" -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = "26" -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = "26" -- السلاح الثالث للتيم الثاني local secondTeamModel = "30" -- اي دي شخصيه التيم الثآني addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds.", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon3, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) local firstTeamWeapon1 = "25" -- السلاح الاول للتيم الاول local firstTeamWeapon2 = "25" -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = "25" -- السلاح الثالث للتيم الاول local firstTeamModel = "46" -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = "26" -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = "26" -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = "26" -- السلاح الثالث للتيم الثاني local secondTeamModel = "30" -- اي دي شخصيه التيم الثآني ^ ^ ^ local firstTeamWeapon1 = 25 -- السلاح الاول للتيم الاول local firstTeamWeapon2 = 25 -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = 25 -- السلاح الثالث للتيم الاول local firstTeamModel = 46 -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = 26 -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = 26 -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = 26 -- السلاح الثالث للتيم الثاني local secondTeamModel = 30 -- اي دي شخصيه التيم الثآني Link to comment
nony Posted November 21, 2012 Share Posted November 21, 2012 ماشفت مشاركه تابل عدلت الكود Link to comment
nony Posted November 21, 2012 Share Posted November 21, 2012 وش الصح local firstTeamWeapon1 = 25 -- السلاح الاول للتيم الاول local firstTeamWeapon2 = 25 -- السلاح الثاني للتيم الاول local firstTeamWeapon3 = 25 -- السلاح الثالث للتيم الاول local firstTeamModel = 46 -- اي دي شخصيه التيم الاول local secondTeamWeapon1 = 26 -- السلاح الاول للتيم الثاني local secondTeamWeapon2 = 26 -- السلاح الثاني للتيم الثاني local secondTeamWeapon3 = 26 -- السلاح الثالث للتيم الثاني local secondTeamModel = 30 -- اي دي شخصيه التيم الثآني addEventHandler("onPlayerWasted", root, function() outputChatBox( "Wait 15 seconds.", source, 255, 255, 0, true ) local Team = getPlayerTeam( source ) if Team then if Team == getTeamFromName("team 1") then setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) setTimer( setElementModel, 15000, 1, source, firstTeamModel ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, source, secondTeamWeapon3, 30, true ) elseif Team == getTeamFromName( "team 2" ) then setTimer( spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449 ) setTimer( giveWeapon,15000,1, firstTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, firstTeamWeapon3, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon1, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon2, 30, true ) setTimer( giveWeapon,15000,1, secondTeamWeapon3, 30, true ) end else setTimer( spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875 ) end end ) Link to comment
ABO-SR777777A Posted November 21, 2012 Author Share Posted November 21, 2012 برضه ماشتغل Link to comment
abu5lf Posted November 21, 2012 Share Posted November 21, 2012 الكود سيرفر ^ فيه اخطاء؟ debugscript 3 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