Jump to content

مشكلة حفظ المكان


Recommended Posts

السسلام عليكم ورحمة الله

كيكفكم شباب

عندي مود حفظ مكان المشكله لو الاعب كان في انترو غير عن صفر وطلع وخل مايرجع نفس الانترو

المشكله مايحفظ الانترو ومادري وش الحل

انترو ؟

:lol:

انتريور يولددددد

Link to comment
getTeamColor 
getPlayerTeam 

كذا؟

-- server --

  
function () 
r, g, b = getTeamColor(team) 
if getPlayerTeam ( team ) 
end 
 end) 

لا غلط

قوس زائد + مافي حدث عشان يشتغل الفنكشن في الوقت ذاك , -_-

يعني فنكشن صامت ,

Link to comment
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
function () 
r, g, b = getTeamColor(team) 
if getPlayerTeam ( team ) 
addEventHandler ( " ؟ ",root, 
end 
 end 

فنكشنك ماراح يسوي شيء حتى لو صار حدث ,

يعني ماراح تستفيد , منه

لانه يجلب لون التيم وتيم الاعب

ولا يسوي شيء

هو يسويه في التاج مثلا , يخلي لون الكلام على حسب لون التيم , ذذ

فلذالك كودك ماله فايدة بس يجلب ولا يسوي شيء

Link to comment
function () 
r, g, b = getTeamColor(team) 
if getPlayerTeam ( team ) 
addEventHandler ( " ؟ ",root, 
end 
 end 

فنكشنك ماراح يسوي شيء حتى لو صار حدث ,

يعني ماراح تستفيد , منه

لانه يجلب لون التيم وتيم الاعب

ولا يسوي شيء

هو يسويه في التاج مثلا , يخلي لون الكلام على حسب لون التيم , ذذ

فلذالك كودك ماله فايدة بس يجلب ولا يسوي شيء

طيب اخوي ساعدني بكود يكون لون الاعب بشات نفس لون تيمة بالضبط

Link to comment
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
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

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
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 
 ) 

كفو والله

ycb90010.gif

بجربةة

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...