baba Posted February 10, 2015 Share Posted February 10, 2015 سلام عليكم كيفكم انا عندي كود حق الريسباون في مكان انا احدده بس ابيح لي قروب 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 ) Link to comment
ALw7sH Posted February 10, 2015 Share Posted February 10, 2015 كيف قروب ؟ تيم ؟ المنت داتا؟ اكونت داتا؟ Link to comment
baba Posted February 10, 2015 Author Share Posted February 10, 2015 لا الكود ذا اذا دخلت السيرفر ينقلني على المكان الرسباون الي انا احدده واذا مت ينقلني على المكان نفسه بس المشكله انو ما في شخصيه محدده يرسبن فيها اذا مات ويرجع للمكان الي حددتو بينزل بس الشخصيه غير وصلت يا غالي؟ Link to comment
# L 7 N Posted February 10, 2015 Share Posted February 10, 2015 يعني تبي تثبت الشخصيه اذ ماتت او اذ دخل يرسبن وبشخصيه ثابته ؟ Link to comment
nxFairlywell Posted February 10, 2015 Share Posted February 10, 2015 لاالكود ذا اذا دخلت السيرفر ينقلني على المكان الرسباون الي انا احدده واذا مت ينقلني على المكان نفسه بس المشكله انو ما في شخصيه محدده يرسبن فيها اذا مات ويرجع للمكان الي حددتو بينزل بس الشخصيه غير وصلت يا غالي؟ الشخصيه ترجع سي جي ؟ .. Link to comment
Mohamed Posted February 10, 2015 Share Posted February 10, 2015 addEventHandler("onPlayerSpawn", root, function( ) if ( getElementData(source, "Group" ) ~= "Name Group" ) then setElementPosition( source, x, y, z ) outputChatBox("مرحباً بك في البدايه", source, 255, 255, 255, true ) end end) addEventHandler("onPlayerWasted", root, function( ) if ( getElementData(source, "Group" ) ~= "Name Group" ) then setElementPosition( source, x, y, z ) outputChatBox("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true ) end end) Link to comment
baba Posted February 10, 2015 Author Share Posted February 10, 2015 يا اخي يا اخي :@ انا ما قلت ابيها لي قروب ___________________ لا يا نيكي يتغير الشخصيه مثلن اكون انا حاطها 230 بعد ما اموت تسير 217 ____________________ يعني الشخصيه مو ثابته فهمني؟ Link to comment
#MFGR7OM Posted February 10, 2015 Share Posted February 10, 2015 Event... "onPlayerWasted" setElementID Link to comment
# L 7 N Posted February 11, 2015 Share Posted February 11, 2015 Event... "onPlayerWasted" setElementID setElementID setElementModel Link to comment
# L 7 N Posted February 11, 2015 Share Posted February 11, 2015 جرب local skinID = 0 -- رقم الشخصيه function spawn(player) if (getElementData (source, "Group") ~= "Name Group") then setElementPosition (source, x, y, z) outputChatBox ("مرحباً بك في البدايه", source, 255, 255, 255, true) setElementModel (source, skinID) repeat until setElementModel(player,skinID) end end function spawnW(player) if (getElementData (source, "Group") ~= "Name Group") then setElementPosition (source, x, y, z) outputChatBox ("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true) repeat until setElementModel(player,skinID) end end addEventHandler("onPlayerSpawn", root, function() setTimer(spawn, 1800, 1, source) end) addEventHandler("onPlayerWasted", root, function() setTimer(spawnW, 1800, 1, source) end) Link to comment
baba Posted February 16, 2015 Author Share Posted February 16, 2015 يا اخي انا قلت ما ابيه لي قروب Link to comment
shwaeki Posted February 16, 2015 Share Posted February 16, 2015 ^ قول ايش بدك بظبط عشين نساعدك Link to comment
baba Posted February 16, 2015 Author Share Posted February 16, 2015 يا حبيب ابي كود اول ما حد يدخل السيرفر ينزل في مكان انا احدده وصلت؟ Link to comment
#MFGR7OM Posted February 16, 2015 Share Posted February 16, 2015 سهلة Event "onPlayerJoin" spawnPlayer Link to comment
shwaeki Posted February 16, 2015 Share Posted February 16, 2015 local x, y, z = 0,0,5 addEventHandler("onPlayerJoin", getRootElement(), function () spawnPlayer (source, x, y, z) fadeCamera (source, true) setCameraTarget (source, source) 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