baba Posted November 17, 2014 Share Posted November 17, 2014 ابي كود اي حد يدخل السيرفر يكون الرسباون حقه في مكان انا احدده اول ما يدخل السيرفر ينقله على المكان الي انا احدده واذا مات يرجع للمكان نفسه Link to comment
Mr.R Posted November 17, 2014 Share Posted November 17, 2014 (edited) جرب كذا .. جانب سيرفر addEventHandler("onPlayerSpawn", root, function( ) setElementPosition( source, x, y, z ) outputChatBox("مرحباً بك في البدايه", source, 255, 255, 255, true ) end ) addEventHandler("onPlayerWasted", root, function( ) setElementPosition( source, x, y, z ) outputChatBox("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true ) end ) x, y, z بدل تحط الاحداثيات حقتك Edited November 17, 2014 by Guest Link to comment
#DRAGON!FIRE Posted November 17, 2014 Share Posted November 17, 2014 @ Mr.R : setElementPosition with "onPlayerSpawn" !! setElementPosition with "onPlayerWasted" !! Link to comment
AboShanab Posted November 17, 2014 Share Posted November 17, 2014 جرب كذا .. جانب سيرفر addEventHandler("onPlayerSpawn", root, function( ) setElementPosition( source, x, y, z ) outputChatBox("مرحباً بك في البدايه", source, 255, 255, 255, true ) end ) addEventHandler("onPlayerWasted", root, function( ) setElementPosition( source, x, y, z ) outputChatBox("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true ) end ) x, y, z بدل تحط الاحداثيات حقتك Link to comment
Mr.R Posted November 17, 2014 Share Posted November 17, 2014 @ Mr.R : setElementPosition with "onPlayerSpawn" !! setElementPosition with "onPlayerWasted" !! what setElementPosition with "onPlayerSpawn" and setElementPosition with "onPlayerWasted no problem : ) Link to comment
#DRAGON!FIRE Posted November 17, 2014 Share Posted November 17, 2014 وش يوم يموت ما ينفع setElementPosition تستخدم وبعد ما يترسبن تسوي له نقل ومو سبوان كمان Link to comment
Mr.R Posted November 17, 2014 Share Posted November 17, 2014 وش يوم يموت ما ينفع setElementPosition تستخدم وبعد ما يترسبن تسوي له نقل ومو سبوان كمان طيب صححه ولا عليك امر نبي نستفيد Link to comment
The Killer Posted November 18, 2014 Share Posted November 18, 2014 استخدم spawnPlayer بدال setElementPosition Link to comment
TAPL Posted November 18, 2014 Share Posted November 18, 2014 ابي كوداي حد يدخل السيرفر يكون الرسباون حقه في مكان انا احدده اول ما يدخل السيرفر ينقله على المكان الي انا احدده استخدم حدث عند دخول لاعب إلى السيرفر 'onPlayerJoin' ثم سباون للاعب الي دخل السيرفر في المكان الي انت تبيه spawnPlayer ---------------------------------- واذا مات يرجع للمكان نفسه استخدم حدث عند موت لاعب 'onPlayerWasted' ثم سباون للاعب الي مات في المكان الي انت تبيه spawnPlayer ** جميع الأحداث و الفنكشن في جانب السيرفر Link to comment
Mr.R Posted November 18, 2014 Share Posted November 18, 2014 سويت الكود وجربته وظبط .. اهم شيء تعلمت من خطأي ... يصير كذا addEventHandler("onPlayerJoin", root, function( ) spawnPlayer( source, 1815.40515, 870.14069, 10.53743 ) outputChatBox("مرحباً بك في البدايه", source, 255, 255, 255, true ) end ) addEventHandler("onPlayerWasted", root, function( ) spawnPlayer( source, 1815.40515, 870.14069, 10.53743 ) outputChatBox("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true ) end ) : ) Link to comment
baba Posted November 18, 2014 Author Share Posted November 18, 2014 ابيه من اول ما يدخل يعطوه شخصيه معينه Link to comment
#DRAGON!FIRE Posted November 18, 2014 Share Posted November 18, 2014 Syntax bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) Link to comment
baba Posted November 18, 2014 Author Share Posted November 18, 2014 ممكن تركب الكود على بعض وتوضع ؟ Link to comment
abu5lf Posted November 19, 2014 Share Posted November 19, 2014 واضح ياخوي حط بعد اخر رقم 0, id skin ) رقم الشخصية = id skin 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