Jw8. Posted December 10, 2016 Share Posted December 10, 2016 سلام عليكم ورحمةة الله وبركاته ابغى كوود كل ما اموت يررسببن في المستشفى ؟ لاهنت Link to comment
Abu-Solo Posted December 10, 2016 Share Posted December 10, 2016 (edited) o onPlayerWasted ; --- تضيف ايفينت triggerServerEvent ; ---- تسوي ترايقر لـ السيرفر spawnPlayer ; ----- تخش علي الويكي وتشوف المطلوب, ولازم يكون فيه احداثيات المستشفي معاك Edited December 10, 2016 by Abu-Solo @ Link to comment
SycroX Posted December 10, 2016 Share Posted December 10, 2016 11 minutes ago, Abu-Solo said: o onPlayerWasted ; --- تضيف ايفينت triggerServerEvent ; ---- تسوي ترايقر لـ السيرفر spawnPlayer ; ----- تخش علي الويكي وتشوف المطلوب, ولازم يكون فيه احداثيات المستشفي معاك معلش بس عندك حاجة غلط ,, هوا الحدث اصلا سيرفر فا مش هتحتاج تسوي له تريقر تمام ؟ يعني هيكون addEventHandler("onPlayerWasted") spawnPlayer or addEventHandler("onPlayerSpawn") setElementPosition Link to comment
Abu-Solo Posted December 10, 2016 Share Posted December 10, 2016 Just now, #Skrillex said: معلش بس عندك حاجة غلط ,, هوا الحدث اصلا سيرفر فا مش هتحتاج تسوي له تريقر تمام ؟ يعني هيكون addEventHandler("onPlayerWasted") spawnPlayer or addEventHandler("onPlayerSpawn") setElementPosition اها, انا حسبته يبي يسوي كود فـ الكلينت ونفس الشئ لما يسوي الكود هذا يرسبنه في المستشفي, مشكور علي التنبية Link to comment
SycroX Posted December 10, 2016 Share Posted December 10, 2016 Just now, Abu-Solo said: اها, انا حسبته يبي يسوي كود فـ الكلينت ونفس الشئ لما يسوي الكود هذا يرسبنه في المستشفي, مشكور علي التنبية عفوا + لو يباه كلنت "onClientPlayerWasted" Link to comment
F_F Posted December 10, 2016 Share Posted December 10, 2016 (edited) not test function a ( Splayer ) spawnPlayer( Splayer, x, y, z ) end addEventHandler("onPlayerWasted", getRootElement(), a) Edited December 10, 2016 by F_F Link to comment
N3xT Posted December 10, 2016 Share Posted December 10, 2016 1 minute ago, F_F said: not test function a ( Splayer ) spawnPlayer( Splayer, x, y, z ) end addEventHandler("onPlayerLogin", getRootElement(), a) لا وألف لا Link to comment
#Soking Posted December 10, 2016 Share Posted December 10, 2016 (edited) addEventHandler('onPlayerWasted', getRootElement( ) , function ( ) setTimer ( spawnPlayer , 1500 , 1 , source, x, y, z ) end ) Edited December 10, 2016 by #Soking Link to comment
Abu-Solo Posted December 10, 2016 Share Posted December 10, 2016 (edited) 18 minutes ago, #Soking said: addEventHandler('onPlayerWasted', getRootElement( ) , function ( ) setTimer ( spawnPlayer , 1500 , 1 , source, x, y, z ) end ) وش الفرق بين getRootElement( ) و الفرق بين root الحين لما اسوي addEventHandler("onClientGUIClick",root, وش الفرق بينها وبين addEventHandler("onClientGUIClick",getRootElement() Edited December 10, 2016 by Abu-Solo Link to comment
#Soking Posted December 10, 2016 Share Posted December 10, 2016 مافي فرق بس هم حأطين root للاختصار لاكن انا متعود من زمان اكتبها getRootElement ( ) 1 Link to comment
Abu-Solo Posted December 10, 2016 Share Posted December 10, 2016 1 minute ago, #Soking said: مافي فرق بس هم حأطين root للاختصار لاكن انا متعود من زمان اكتبها getRootElement ( ) يعــطيك العـافية Link to comment
Jw8. Posted January 3, 2017 Author Share Posted January 3, 2017 On ١٠/١٢/٢٠١٦ at 6:25 AM, #Soking said: مافي فرق بس هم حأطين root للاختصار لاكن انا متعود من زمان اكتبها getRootElement ( ) لو سمحت فقط لتيم No Team ابي اخليه يرسبن Link to comment
Abu-Solo Posted January 3, 2017 Share Posted January 3, 2017 1 minute ago, DmAr511 said: لو سمحت فقط لتيم No Team ابي اخليه يرسبن سوي تحقق وبعدين الوظيفة هذي getTeamName Link to comment
Jw8. Posted January 3, 2017 Author Share Posted January 3, 2017 2 minutes ago, Abu-Solo said: سوي تحقق وبعدين الوظيفة هذي getTeamName addEventHandler('onPlayerWasted', getRootElement( ) , function ( ) setTimer ( spawnPlayer , 7000 , 1 , source,1200.73132,-1326.42163,13.39844) local playerTeam = getPlayerTeam,No Team(source) end ) Link to comment
iPrestege Posted January 3, 2017 Share Posted January 3, 2017 addEventHandler ( 'onPlayerWasted',root, function ( ) if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( 'No Team' ) then spawnPlayer( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) end end ) Link to comment
Jw8. Posted January 3, 2017 Author Share Posted January 3, 2017 4 minutes ago, iPrestege said: addEventHandler ( 'onPlayerWasted',root, function ( ) if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( 'No Team' ) then spawnPlayer( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) end end ) مشكله انا ابيه تايمر addEventHandler('onPlayerWasted', getRootElement( ) , function ( ) if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( 'No Team' ) then setTimer ( spawnPlayer , 7000 , 1 , source,1200.73132,-1326.42163,13.39844) end ) لوسمحت عدله لي Link to comment
MR.Mosa Posted January 4, 2017 Share Posted January 4, 2017 (edited) 20 hours ago, iPrestege said: addEventHandler ( 'onPlayerWasted',root, function ( ) if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( 'No Team' ) then setTimer ( spawnPlayer , 7000 , 1 , source,1200.73132,-1326.42163,13.39844) end end ) Edited January 4, 2017 by MR.Mosa 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