ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 تم التطوير ههههههههه g_Players = getElementsByType("player") for i,aPlayer in ipairs(g_Players) if aPlayer == getLocalPlayer() then g_CurrentSpectated = i break end end function spectatePrevious(player) if g_CurrentSpectated == 1 then g_CurrentSpectated = #g_Players else g_CurrentSpectated = g_CurrentSpectated - 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end function spectateNext() if g_CurrentSpectated == #g_Players then g_CurrentSpectated = 1 else g_CurrentSpectated = g_CurrentSpectated + 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end bindKey("arrow_l", "down", spectatePrevious) bindKey("arrow_r", "down", spectateNext) function delayedChat ( text ) outputChatBox ( "Delayed text: " .. text ) end function mainFunction() outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction() function greetingHandler ( message ) outputChatBox ( "The client says: " .. message, source ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) Link to comment
TAPL Posted August 28, 2012 Share Posted August 28, 2012 قصدك نسخت مثال الويكي و الظاهر أنك نسيت تقرأ This is an example of how one could implement a spectator function. Using the left and right arrow keys you can view other players. Note that this code isn't complete as it doesn't take into account joining or quitting players. Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 قصدك نسخت مثال الويكيو الظاهر أنك نسيت تقرأ This is an example of how one could implement a spectator function. Using the left and right arrow keys you can view other players. Note that this code isn't complete as it doesn't take into account joining or quitting players. لول اقول شكله تابل حافظ الويكي ض1 Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 طيب انا عارف انه بالاسهم ياتابل Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 بس كيف ؟ هههه ض1 Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 عدلي الخطا ياتبال Link to comment
TAPL Posted August 28, 2012 Share Posted August 28, 2012 أنت بالأول وضح وش الي تبي تسويه بالضبط تراك ناسخ أمثلة الويكي وحاطها بالموضوع Link to comment
AHMAD1234 Posted August 28, 2012 Share Posted August 28, 2012 طيب انا عارف انه بالاسهم ياتابل اللي يقصده تابل اللي في كلامه بالانجليزي انه المود غير مكتمل ولا ياخذ في عين الاعتبار دخول الللاعب في فريق Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 تابل انا ابياسوي كود يتفجر على الاعبين Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 قصدي يتفرج setCameraTarget Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 ؟هذا الاعب ينضر اليك Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 g_Players = getElementsByType("player") for i,aPlayer in ipairs(g_Players) if aPlayer == getLocalPlayer() then g_CurrentSpectated = i break end end function spectatePrevious(player) if g_CurrentSpectated == 1 then g_CurrentSpectated = #g_Players else g_CurrentSpectated = g_CurrentSpectated - 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end function spectateNext() if g_CurrentSpectated == #g_Players then g_CurrentSpectated = 1 else g_CurrentSpectated = g_CurrentSpectated + 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end bindKey("arrow_l", "down", spectatePrevious) bindKey("arrow_r", "down", spectateNext) function delayedChat ( text ) outputChatBox ( "Delayed text: " .. text ) end function mainFunction() outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction() function greetingHandler ( message ) outputChatBox ( "The client says: " .. message, source ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler صح ولالالالالالالالالا وقلي الخطا Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 سويت كود سوبر نار صح ولالا وفولو لي الخطا function delayedChat ( player ) outputChatBox ( "Delayed text: " .. text ) end setTimer ( delayedChat, 1000, 1, "Hello, World!" ) function takeCash ( thePlayer, command, amount ) local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1500) then ر takePlayerMoney(source,1500) function mainFunction(player) outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction(player) Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 ارجو من الادارة اغلاق الموضوع قبل ينسخ الويكي كله ويجيبه هنا Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 وش بلاك انت يالخوي واحد باتعلم مو عاجبك لا ترد ولا اتشرف بردك هع هع Link to comment
./BlackBird# Posted August 28, 2012 Share Posted August 28, 2012 بغيت اقولك ان الكود حقك ملحوس عشانه كله من الويكي Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 طيب مساعده ممنك Link to comment
abu5lf Posted August 28, 2012 Share Posted August 28, 2012 سويت كود سوبر نار صح ولالا وفولو لي الخطا function delayedChat ( player ) outputChatBox ( "Delayed text: " .. text ) end setTimer ( delayedChat, 1000, 1, "Hello, World!" ) function takeCash ( thePlayer, command, amount ) local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1500) then ر takePlayerMoney(source,1500) function mainFunction(player) outputChatBox ("Instant text!") setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 ) end mainFunction(player) جايب كود من الويكي ولآصقه ومخربط فيه وضايف اشياء وسويت وسويت كود تراك منت متعلم بهذي الطريقة Link to comment
TAPL Posted August 28, 2012 Share Posted August 28, 2012 بدل ما تجلس تنسخ بأكواد الويكي و تحطها هنا وتقول صح أو لا جربها بنفسك و شوفها تشتغل أو لا و إذا ما تشتغل تعال و حط كودك و قل وش المشكلة و أيش أنت تبي تسوي بالضبط و الي مو داري وش الطبخه لا يرد الموضوع وصل 5 صفحات Link to comment
ABO.SR7777A Posted August 28, 2012 Author Share Posted August 28, 2012 تاابل الكود مو شغال طرحته فوق Link to comment
3NAD Posted August 28, 2012 Share Posted August 28, 2012 تاابل الكود مو شغال طرحته فوق و إذا ما تشتغل تعال و حط كودك و قل وش المشكلة و أيش أنت تبي تسوي بالضبط Link to comment
Tete omar Posted August 29, 2012 Share Posted August 29, 2012 بدل ما تجلس تنسخ بأكواد الويكي و تحطها هنا وتقول صح أو لاجربها بنفسك و شوفها تشتغل أو لا و إذا ما تشتغل تعال و حط كودك و قل وش المشكلة و أيش أنت تبي تسوي بالضبط و الي مو داري وش الطبخه لا يرد الموضوع وصل 5 صفحات صح عليك والله 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