AhmeD~9MoD Posted June 8, 2013 Share Posted June 8, 2013 السلآم عليكم , ذا الكود تمام كل شي , بس المشكلة ان لما اضغط ع R مايتغير لون الشمس بس يطلع الكلام في الشات ! Client Side -- function suncolor ( player ) setSunColor(0, 0, 255, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Blue", player, 0, 255, 0) end bindKey("R", "down", suncolor) Link to comment
فاّرس Posted June 8, 2013 Share Posted June 8, 2013 الكود صحيح, يعني لو سويته كذآ , function Set(player) setSunColor(255, 255, 0, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Red", player, 0, 255, 0) end bindKey("R", "down",Set) بيصير لون الشمس اخضر, في الوان ما تقدر تحطها اتوقع انه بق, Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 الكود صحيح,يعني لو سويته كذآ , function Set(player) setSunColor(255, 255, 0, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Red", player, 0, 255, 0) end bindKey("R", "down",Set) بيصير لون الشمس اخضر, في الوان ما تقدر تحطها اتوقع انه بق, انا قلت اكيد مافيه خطأ لاني ماشفت شي غلط .. وزي ماقلت يمكن في الوان ماتقدر تحطها .. Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 (edited) tocolor جرب استخدم , يمكن تضبط,, كيف اخليه يسوي لون الشمس ازرق مثلاً ؟؟ function SunColor( ) local sunColor = tocolor(0, 0, 255, 255) setSunColor ( 0 ,0 ,255 ,0 ,0 ,0) end bindKey("S", "down", SunColor) Edited June 8, 2013 by Guest Link to comment
3NAD Posted June 8, 2013 Share Posted June 8, 2013 هو اللي ضاغط الزر localPlayer في الكلنت يصير لأنه بيصير للكلنت نفسه player و عندك خطأ بمخرج النص مآيحتاج تحط تعريف Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 خـلآص ششبآأب يعطيكم العأأأفيةةة ~ Link to comment
فاّرس Posted June 8, 2013 Share Posted June 8, 2013 ما جربته, function Set() setSunColor(tocolor(255, 0, 0,0), 0, 0, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Red") end bindKey("R", "down",Set) The best = عاشق الشرق ؟ لآ Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 ما جربته, function Set() setSunColor(tocolor(255, 0, 0,0), 0, 0, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Red") end bindKey("R", "down",Set) The best = عاشق الشرق ؟ لآ خخ ماضبط , خـلآص ششبآأب يعطيكم العأأأفيةةة ~ Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 setSunColor(tocolor(255, 0, 0,0), 0, 0, 0, 0, 0) ي بيست كيف الوضوح مخليه 0 ؟ اللون ماراح يبين , بجرب راح اخليه 255 ماضبط Link to comment
iMr.Dawix~# Posted June 8, 2013 Share Posted June 8, 2013 Client Side function Set() setSunColor(255, 255, 0, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Red") end bindKey("R", "down",Set) Link to comment
فاّرس Posted June 8, 2013 Share Posted June 8, 2013 setSunColor(tocolor(255, 0, 0,0), 0, 0, 0, 0, 0) ي بيست كيف الوضوح مخليه 0 ؟ اللون ماراح يبين , بجرب راح اخليه 255 ماضبط ما انتبهت حسبتها 3 ارقومنتات, واذا ما ضبط, فإن فيها بق, Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 setSunColor(tocolor(255, 0, 0,0), 0, 0, 0, 0, 0) ي بيست كيف الوضوح مخليه 0 ؟ اللون ماراح يبين , بجرب راح اخليه 255 ماضبط ما انتبهت حسبتها 3 ارقومنتات, واذا ما ضبط, فإن فيها بق, لا هم 4 ارقمنتات لون و لون و لون و وضوح Link to comment
3NAD Posted June 8, 2013 Share Posted June 8, 2013 -- Server Side onSunColor = function ( player ) setSunColor ( 0, 0, 255, 0, 0, 50 ) outputChatBox ( "The Color Of Sun Has Been Set To Blue", player, 0, 255, 0, true ) end onAddKey = function ( player ) bindKey ( player, "r", "down", onSunColor ) end for _, v in ipairs ( getElementsByType ( "player" ) ) do onAddKey ( v ) end addEventHandler ( "onPlayerJoin", root, function ( ) onAddKey ( source ) end ) Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 -- Server Side onSunColor = function ( player ) setSunColor ( 0, 0, 255, 0, 0, 50 ) outputChatBox ( "The Color Of Sun Has Been Set To Blue", player, 0, 255, 0, true ) end onAddKey = function ( player ) bindKey ( player, "r", "down", onSunColor ) end for _, v in ipairs ( getElementsByType ( "player" ) ) do onAddKey ( v ) end addEventHandler ( "onPlayerJoin", root, function ( ) onAddKey ( source ) end ) ماضبط Link to comment
فاّرس Posted June 8, 2013 Share Posted June 8, 2013 (edited) setSunColor(tocolor(255, 0, 0,0), 0, 0, 0, 0, 0) ي بيست كيف الوضوح مخليه 0 ؟ اللون ماراح يبين , بجرب راح اخليه 255 ماضبط ما انتبهت حسبتها 3 ارقومنتات, واذا ما ضبط, فإن فيها بق, لا هم 4 ارقمنتات لون و لون و لون و وضوح وانا وش قلت ؟ int tocolor ( int red, int green, int blue [, int alpha = 255] ) آخر ارقومنت الفا وهو اختياري , انت احذفه, function Set() setSunColor(tocolor(255, 0, 0), 0, 0, 0, 0, 0) outputChatBox("The Color Of Sun Has Been Set To Red") end bindKey("R", "down",Set) كان نفسي اجربه لكن الشمس مختفيه عندي Edited July 26, 2013 by Guest Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 انا الشمس ماتطلع عندي خخ Link to comment
jafar Posted June 8, 2013 Share Posted June 8, 2013 وانت ليش تبي تتعلف في الشمس ؟ خلها في حالها Link to comment
AhmeD~9MoD Posted June 8, 2013 Author Share Posted June 8, 2013 وانت ليش تبي تتعلف في الشمس ؟ خلها في حالها 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