#DRAGON!FIRE Posted December 10, 2013 Share Posted December 10, 2013 (edited) ادري اني زودتها بس والله مالي غيركم الحين طلعتلي مشكله جديده لما اختار هجوله او سنايبر لما يموت ما يرجع لنفس التيم ولا يرجع للبدايه تطلع الكامرا على فوق ولا يرجع لما يموت من جديد يا ترى وش الحل ! addEventHandler("onPlayerWasted",root, function () local team = getPlayerTeam (source) if ( team and getTeamName (team) == ("Hajwalah")) then fadeCamera( source,true ) spawnPlayer ( source, -3447.00244, -3015.31152, 222.91719, 0, getPlayerSkin( source ) ) elseif ( team and getTeamName (team) == ("iA7bK")) then giveWeapon ( source , 34,9999 ) giveWeapon ( source , 34,9999 ) fadeCamera( source,true ) spawnPlayer ( source, 455.85739,-2519.79443,136.28281, 0,115, 0, 0 ) elseif ( team and getTeamName (team) == ("iA7bK1")) then giveWeapon ( source , 34,9999 ) giveWeapon ( source , 33,9999 ) fadeCamera( source,true ) spawnPlayer ( source, 581.84247,-2542.72754,136.28281, 0,102, 0, 0 ) end end ) addEventHandler("onPlayerWasted", root, function ( ) if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "Hajwalah" ) then fadeCamera( source,true ) setCameraTarget( source ) spawnPlayer ( source, -3447.00244, -3015.31152, 222.91719, 0, getElementModel ( source ) ) setPlayerTeam(source, Hajwalah) elseif getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "iA7bK" ) then giveWeapon ( source , 34, 9999 ) setPlayerTeam(source, iA7bK) fadeCamera( source,true ) setCameraTarget( source ) spawnPlayer ( source, 455.85739,-2519.79443,136.28281, 0,115, 0, 0 ) elseif getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "iA7bK1" ) then setPlayerTeam(source, iA7bK1) giveWeapon ( source , 34, 9999 ) fadeCamera( source,true ) spawnPlayer ( source, 581.84247,-2542.72754,136.28281, 0,102, 0, 0 ) end end ) Edited December 10, 2013 by Guest Link to comment
jafar Posted December 10, 2013 Share Posted December 10, 2013 getPlayerSkin انتهى ,, استخدم getElementModel وعشان يدخل الفريق مرة ثانية setPlayerTeam أو تقدر في فنكشن السباون نفسه ^ Link to comment
iA7bk# Posted December 10, 2013 Author Share Posted December 10, 2013 اشكر كل من ساعدني وكل الشكر الى 1: jafar 2: #♡ ZĂ7Ḟ 3: The Best الله يعطيكم الف عافيه ما قصرتو معي واسف اذا تعبتكم _____________________________ Link to comment
#DRAGON!FIRE Posted December 10, 2013 Share Posted December 10, 2013 اشكر كل من ساعدني وكل الشكر الى 1: jafar 2: #♡ ZĂ7Ḟ 3: The Best الله يعطيكم الف عافيه ما قصرتو معي واسف اذا تعبتكم _____________________________ # حياك الله بـ اي وقت , + عدلت الرد كان في شي نسيته , خذه Link to comment
jafar Posted December 10, 2013 Share Posted December 10, 2013 اشكر كل من ساعدني وكل الشكر الى 1: jafar 2: #♡ ZĂ7Ḟ 3: The Best الله يعطيكم الف عافيه ما قصرتو معي واسف اذا تعبتكم _____________________________ حياك الله , Link to comment
iA7bk# Posted December 10, 2013 Author Share Posted December 10, 2013 اشكر كل من ساعدني وكل الشكر الى 1: jafar 2: #♡ ZĂ7Ḟ 3: The Best الله يعطيكم الف عافيه ما قصرتو معي واسف اذا تعبتكم _____________________________ # حياك الله بـ اي وقت , + عدلت الرد كان في شي نسيته , خذه والله حطيت التعديل حقك وخرب رجع مثل ما كان لما يموت الكام يرتفع فوق ولا يرجع للتيم نفسه قبل تعديلك على الكود كان مضبوط لو تقدر يالغلا رجعه مثل قبل Link to comment
jafar Posted December 10, 2013 Share Posted December 10, 2013 جرب, addEventHandler("onPlayerWasted", root, function ( ) if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "Hajwalah" ) then fadeCamera( source,true ) setCameraTarget( source ) spawnPlayer ( source, -3447.00244, -3015.31152, 222.91719, 0, getElementModel ( source ) ) setPlayerTeam(source, getTeamFromName ( "Hajwalah" ) ) elseif getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "iA7bK" ) then giveWeapon ( source , 34, 9999 ) setPlayerTeam(source, getTeamFromName ( "iA7bK" ) ) fadeCamera( source,true ) setCameraTarget( source ) spawnPlayer ( source, 455.85739,-2519.79443,136.28281, 0,115, 0, 0 ) elseif getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "iA7bK1" ) then setPlayerTeam(source, getTeamFromName ( "iA7bK1" ) ) giveWeapon ( source , 34, 9999 ) fadeCamera( source,true ) spawnPlayer ( source, 581.84247,-2542.72754,136.28281, 0,102, 0, 0 ) end end ) Link to comment
iA7bk# Posted December 10, 2013 Author Share Posted December 10, 2013 jafar مشكور يا تمام الحين شغال 100%100 Link to comment
jafar Posted December 10, 2013 Share Posted December 10, 2013 jafar مشكور يا تمام الحين شغال 100%100 العفو 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