khaledmhammed Posted September 16, 2015 Share Posted September 16, 2015 السسلام عليكم ورحمة الله كيكفكم شباب عندي مود حفظ مكان المشكله لو الاعب كان في انترو غير عن صفر وطلع وخل مايرجع نفس الانترو المشكله مايحفظ الانترو ومادري وش الحل Link to comment
` Allawi Posted September 16, 2015 Share Posted September 16, 2015 getElementInterior setElementInterior Link to comment
MR.GRAND Posted September 16, 2015 Share Posted September 16, 2015 السسلام عليكم ورحمة اللهكيكفكم شباب عندي مود حفظ مكان المشكله لو الاعب كان في انترو غير عن صفر وطلع وخل مايرجع نفس الانترو المشكله مايحفظ الانترو ومادري وش الحل انترو ؟ انتريور يولددددد Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 getElementInteriorsetElementInterior يعطيك العافية اخوي .. لو سمحتو ابي كود يخلي لون الاعب بشات نفس لون تيمة بالضبطط افيدوني جزاكم الله خير Link to comment
` Allawi Posted September 16, 2015 Share Posted September 16, 2015 getTeamColor getPlayerTeam Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 getTeamColor getPlayerTeam كذا؟ -- server -- function () r, g, b = getTeamColor(team) if getPlayerTeam ( team ) end end) Link to comment
LoOs Posted September 16, 2015 Share Posted September 16, 2015 getTeamColor getPlayerTeam كذا؟ -- server -- function () r, g, b = getTeamColor(team) if getPlayerTeam ( team ) end end) لا غلط قوس زائد + مافي حدث عشان يشتغل الفنكشن في الوقت ذاك , يعني فنكشن صامت , Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 getTeamColor getPlayerTeam كذا؟ -- server -- function () r, g, b = getTeamColor(team) if getPlayerTeam ( team ) end end) لا غلط قوس زائد + مافي حدث عشان يشتغل الفنكشن في الوقت ذاك , يعني فنكشن صامت , ماحط لي فنكشن حدث احسب مايحتاج ماعرف وش هو الحدث لذي function () r, g, b = getTeamColor(team) if getPlayerTeam ( team ) addEventHandler ( " ؟ ",root, end end Link to comment
LoOs Posted September 16, 2015 Share Posted September 16, 2015 function () r, g, b = getTeamColor(team) if getPlayerTeam ( team ) addEventHandler ( " ؟ ",root, end end فنكشنك ماراح يسوي شيء حتى لو صار حدث , يعني ماراح تستفيد , منه لانه يجلب لون التيم وتيم الاعب ولا يسوي شيء هو يسويه في التاج مثلا , يخلي لون الكلام على حسب لون التيم , ذذ فلذالك كودك ماله فايدة بس يجلب ولا يسوي شيء Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 function () r, g, b = getTeamColor(team) if getPlayerTeam ( team ) addEventHandler ( " ؟ ",root, end end فنكشنك ماراح يسوي شيء حتى لو صار حدث , يعني ماراح تستفيد , منه لانه يجلب لون التيم وتيم الاعب ولا يسوي شيء هو يسويه في التاج مثلا , يخلي لون الكلام على حسب لون التيم , ذذ فلذالك كودك ماله فايدة بس يجلب ولا يسوي شيء طيب اخوي ساعدني بكود يكون لون الاعب بشات نفس لون تيمة بالضبط Link to comment
` Allawi Posted September 16, 2015 Share Posted September 16, 2015 function teamInfo ( source ) local r, g, b local playerTeam = getPlayerTeam( source ) -- Make a string to print out the player's team information local text = getPlayerName ( source ) if ( playerTeam ) then -- If the player is on a team (team is not false) -- Add the team name to the string text = text .. " is on " .. getTeamName ( playerTeam ) -- Get the red, green, and blue values of the team's color r, g, b = getTeamColor ( playerTeam ) -- Convert the colors to strings and add them to the string text = text .. " with team colors: " .. tostring(r) .. ", " .. tostring(g) .. ", " .. tostring(b) else -- if he's not on a team text = text .. " is not on a team." end -- Print the string with the player's team information outputChatBox ( text ) end -- Add console command to print out your team information addCommandHandler ( "teamInfo", teamInfo ) عود نفسك على فهم امثلة الويكي لانك راح تحصل على حاجتك في امثلة الويكي Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 function teamInfo ( source ) local r, g, b local playerTeam = getPlayerTeam( source ) -- Make a string to print out the player's team information local text = getPlayerName ( source ) if ( playerTeam ) then -- If the player is on a team (team is not false) -- Add the team name to the string text = text .. " is on " .. getTeamName ( playerTeam ) -- Get the red, green, and blue values of the team's color r, g, b = getTeamColor ( playerTeam ) -- Convert the colors to strings and add them to the string text = text .. " with team colors: " .. tostring(r) .. ", " .. tostring(g) .. ", " .. tostring(b) else -- if he's not on a team text = text .. " is not on a team." end -- Print the string with the player's team information outputChatBox ( text ) end -- Add console command to print out your team information addCommandHandler ( "teamInfo", teamInfo ) عود نفسك على فهم امثلة الويكي لانك راح تحصل على حاجتك في امثلة الويكي `ذا اف 8 ي رجل ابي بدون اف 8 ع ططول وان شاءالله نتعودد ع الامثلة Link to comment
iMr.SFA7 Posted September 16, 2015 Share Posted September 16, 2015 addEventHandler ("onPlayerChat",root, function (msg) team = getPlayerTeam ( source ) Name = getPlayerName ( source ) if ( team ) then r,b,g = getTeamColor ( team ) cancelEvent ( ) outputChatBox (""..Name..": #FFFFFF"..msg, root, r, b, g, true ) end end ) Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 addEventHandler ("onPlayerChat",root, function (msg) team = getPlayerTeam ( source ) Name = getPlayerName ( source ) if ( team ) then r,b,g = getTeamColor ( team ) cancelEvent ( ) outputChatBox (""..Name..": #FFFFFF"..msg, root, r, b, g, true ) end end ) كفو والله بجربةة Link to comment
khaledmhammed Posted September 16, 2015 Author Share Posted September 16, 2015 تممام زبط يعطيك الف عافية 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